Skip to content

6.0.0#14

Merged
pro100andrey merged 2 commits into
mainfrom
6.0.0
Jun 1, 2026
Merged

6.0.0#14
pro100andrey merged 2 commits into
mainfrom
6.0.0

Conversation

@pro100andrey
Copy link
Copy Markdown
Owner

BREAKING CHANGES:

  • BinaryReader: removed peekByte() — use reader.getUint8(reader.offset) instead
  • BinaryWriter: removed writeUint8At(int position, int value) — use writer[position] = value or setUint8(position, value) instead

New Features:

  • BinaryReader: added getInt8(int position) — read signed Int8 at arbitrary position without advancing offset
  • BinaryWriter: added getInt8(int position) — read signed Int8 at arbitrary position
  • BinaryWriter: added setInt8(int position, int value) — write signed Int8 at arbitrary position (range: -128..127)
  • BinaryWriter: added reserve(int count) — reserve bytes for later backpatching, returns starting offset

Tests:

  • Added 14 new tests

**BREAKING CHANGES:**

- **BinaryReader**: removed `peekByte()` — use `reader.getUint8(reader.offset)` instead
- **BinaryWriter**: removed `writeUint8At(int position, int value)` — use `writer[position] = value` or `setUint8(position, value)` instead

**New Features:**

- **BinaryReader**: added `getInt8(int position)` — read signed Int8 at arbitrary position without advancing offset
- **BinaryWriter**: added `getInt8(int position)` — read signed Int8 at arbitrary position
- **BinaryWriter**: added `setInt8(int position, int value)` — write signed Int8 at arbitrary position (range: -128..127)
- **BinaryWriter**: added `reserve(int count)` — reserve bytes for later backpatching, returns starting offset

**Tests:**

- Added 14 new tests
@pro100andrey pro100andrey merged commit 2518f7b into main Jun 1, 2026
3 checks passed
@pro100andrey pro100andrey deleted the 6.0.0 branch June 1, 2026 00:14
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