@std/bytes

Getting Started

No install step: the module ships inside the compiler. Import what you need:

.rnx
import { ByteBuffer } from "@std/bytes";

Quickstart

Copy this into a file or open it straight in the playground:

.rnx
import { ByteBuffer } from "@std/bytes";


let buf = ByteBuffer.allocate(16);
buf.writeInt32BE(0, 0x01020304);
print(buf.readInt32BE(0));
print(buf.writeString(4, "Rasmalai"));
print(buf.readString(4, 8));