mirror of
https://github.com/duckietm/Nitro_Render_V3.git
synced 2026-06-19 15:06:20 +00:00
999b8187d663e314c9a4a959de1b89605a2d57b5
bytesAvailable is a boolean (IMessageDataWrapper.bytesAvailable: boolean, returns 'there is at least one byte left'); the parser was doing 'wrapper.bytesAvailable < 12' as if it were a count, which both mis-compares boolean to number and short-circuits incorrectly when exactly 11 bytes remain. Align with every other parser in the codebase: 'if(!wrapper || !wrapper.bytesAvailable) return false;'. The downstream readInt calls already throw on truncated packets so the explicit length check was load-bearing only against malformed inputs that wouldn't parse anyway.
Nitro Renderer
nitro-renderer is a Javascript library for rendering Nitro in the browser using PixiJS
Installation
npm
npm install @nitrots/nitro-renderer
yarn
yarn add @nitrots/nitro-renderer
Languages
TypeScript
99.9%
JavaScript
0.1%