Skip to content

Conversation

@danrbailey
Copy link
Contributor

When using the PointIndexLeafNode::readBuffers() function without the CoordBBox, I/O is broken due to not reading the zero auxiliary data byte. This fixes that and adds a unit test to validate the fix.


// Reserved for future use
Index64 auxDataBytes = Index64(0);
is.read(reinterpret_cast<char*>(&auxDataBytes), sizeof(Index64));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to eat the dead bytes like the other version.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the extra few lines to discard these bytes now, thanks.

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.

2 participants