Files
Nitro_Render_V3/packages/utils/src
simoleo89 98662e7399 test(utils): add BinaryReader / BinaryWriter round-trip coverage (23 cases)
Cover every public method on the binary pair, plus the typical packet
shape (header + mixed payload) the composer/parser pipeline emits:

- byte / short / int round-trips, including signed-edge values
  (int8 -1 from 0xFF, int16 / int32 boundaries)
- big-endian wire-order assertions on writeShort / writeInt (matches
  Arcturus's DataInputStream)
- string round-trip with length prefix + bare (includeLength=false)
  + UTF-8 multibyte byte count + empty-string edge
- writeBytes for both number[] and ArrayBuffer payloads
- readBytes slice returns an independent reader whose position is
  decoupled from the outer reader
- remaining() decrements correctly across mixed-size reads
- readFloat / readDouble decode IEEE-754 big-endian values
  (the writer has no float/double counterparts — buffer is built via
  DataView for these cases)
- writer position getter + explicit setter (caller-managed reposition)
- two independent writers concatenate cleanly into a single reader

Suite: 127/127 (was 104/104). typecheck clean.
2026-05-18 20:42:17 +02:00
..
2024-07-04 15:03:26 +02:00
2024-04-03 09:27:56 +02:00
2024-04-25 11:35:50 +02:00
2024-04-03 09:27:56 +02:00
2024-04-03 09:27:56 +02:00
2024-04-25 11:35:50 +02:00
2024-04-03 09:27:56 +02:00
2024-04-03 09:27:56 +02:00
2024-04-03 09:27:56 +02:00
2024-04-03 09:27:56 +02:00
2024-04-03 09:27:56 +02:00
2024-04-03 09:27:56 +02:00
2024-04-03 09:27:56 +02:00
🆙 Updates
2026-01-31 16:18:03 +01:00
2024-04-03 09:27:56 +02:00
2024-04-03 09:27:56 +02:00
2024-04-03 09:27:56 +02:00
2024-04-03 09:27:56 +02:00
2026-03-19 09:40:49 +01:00
2024-04-03 09:27:56 +02:00
2024-04-03 09:27:56 +02:00
2024-04-03 09:27:56 +02:00
2024-04-03 09:27:56 +02:00
2026-04-03 10:48:13 +02:00
2024-04-03 09:27:56 +02:00