Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for up to 2 bytes per label #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

Krixtalx
Copy link
Collaborator

This pull request includes changes to the PcdReader.cs file to improve the handling of label sizes and update the Point3D structure. The most important changes include adding support for different label sizes and modifying the Point3D structure to accommodate these changes.

Improvements to label size handling:

  • PcdReader.cs: Added a check for label size and assigned the appropriate size based on the field's size in ReadBinaryData method.
  • PcdReader.cs: Added support for label sizes of 2 and 4 bytes in the ReadBinaryData method, allowing the conversion of bytes to UInt16 and UInt32 respectively.

Updates to Point3D structure:

  • PcdReader.cs: Changed the label field in the Point3D structure from byte to UInt16 to support larger label sizes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant