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

2.2.1 • 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

/structured-buffer/

    Package Sidebar

    Install

    npm i structured-buffer

    Weekly Downloads

    1

    Version

    2.2.1

    License

    MIT

    Unpacked Size

    25.7 kB

    Total Files

    16

    Last publish

    Collaborators

    • miguelexe