structured-buffer
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

Structured buffer

C-like structs in javascript

Supports:

  • Creating and parsing buffers with a given struct
  • Calculating size of a struct
  • Unsigned and signed integer from 8 to 64 bits
  • Chars (converts int8 to string)
  • Standard C99 booleans
  • Structs inside another structs

See examples folder for example usage

Package Sidebar

Install

npm i structured-buffer

Weekly Downloads

2

Version

2.1.0

License

MIT

Unpacked Size

19.8 kB

Total Files

18

Last publish

Collaborators

  • miguelexe