lib/nbt: return correct error type from read functions #17
Labels
No Label
Bug
Build Problems
Discussion
Distribution
Enhancement
Far Future
Fix Later
TODO
WONTFIX
Workflow
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: BodgeMaster/FOSS-VG#17
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
I added
ErrorCodes::OVERRUN_ERROR
. Might be useful to know what kind of error occurred.Make the NBT::helper::readIntN functions use the correct error code for what happened.to NBT: Make the NBT::helper::readIntN functions use the correct error code for what happened.NBT: Make the NBT::helper::readIntN functions use the correct error code for what happened.to lib/nbt: Make the NBT::helper::readIntN functions use the correct error code for what happened.Many of them only return
OUT_OF_RANGE
where they should return eitherOUT_OF_RANGE
orOVERRUN
depending on what happened.OUT_OF_RANGE
whencurrentPosition
is out of boundsOVERRUN
when reading would would go out of boundslib/nbt: Make the NBT::helper::readIntN functions use the correct error code for what happened.to lib/nbt: return correct error type from read functions