https://github.com/miguelexe/structured-buffer
Structured-based buffers
https://github.com/miguelexe/structured-buffer
buffer nodejs struct structure
Last synced: 3 months ago
JSON representation
Structured-based buffers
- Host: GitHub
- URL: https://github.com/miguelexe/structured-buffer
- Owner: MiguelEXE
- License: mit
- Created: 2023-09-05T06:58:01.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-23T21:14:16.000Z (over 1 year ago)
- Last Synced: 2024-04-25T23:01:57.094Z (about 1 year ago)
- Topics: buffer, nodejs, struct, structure
- Language: TypeScript
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/MiguelEXE/structured-buffer/tree/master/examples/struct-in-struct.ts)See [examples](https://github.com/MiguelEXE/structured-buffer/tree/master/examples) folder for example usage