buffer
buffer
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:24 |
Tags
Installation
nimble install buffer
choosenim install buffer
git clone https://github.com/bung87/buffer
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| buffer | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/bung87/buffer |
|---|---|
| Homepage | https://github.com/bung87/buffer |
| Registry Source | nimble_official |
README
buffer
buffer module write in Nim provide api similar to Nodejs buffer module.
note: read,write api optional param offset read from head, write from end
usage
import buffer
var buf = Buffer.from([1'u8, 2'u8, 3'u8, 4'u8, 5'u8, 6'u8, 7'u8, 8'u8]);
check buf.readDoubleBE == 8.20788039913184e-304
var buf = newBuffer(2);
buf.writeInt8(2, some(0) );
check buf.data == "\2\0"