2.7.0 • Published 6 months ago
@serenityjs/binarystream v2.7.0
@serenityjs/binarystream
Binarystream is a simple Rust package designed to simplify the streaming of binary data in Javascript and Typescript. While containing the super speeds of Rust, and the ecosystem of Javascript!
Example Usage
import { BinaryStream } from "@serenityjs/binarystream"
// Create a new stream without a given buffer.
const stream = new BinaryStream()
// Reading / Writing is allowed on the fly,
// which will automatically update the cursor offset depending on the type of call.
stream.writeUint8(255)
stream.writeString16("Hello, World!")
// Converting the stream to a buffer!
const buffer = stream.getBuffer()
// Create another stream based on our output buffer from the previous stream.
const output = new BinaryStream(buffer)
// Reading the data in order.
stream.readUint8() // Expected output: 255
stream.readString16() // Expected output: "Hello, World!"
2.7.0
6 months ago
0.1.0-beta.0
1 year ago
2.5.2
1 year ago
2.0.0
1 year ago
0.0.11
1 year ago
0.0.12
1 year ago
2.6.5
12 months ago
2.6.6
12 months ago
0.1.0
1 year ago
1.1.0-beta.1
1 year ago
0.0.0
1 year ago
1.1.0-beta.0
1 year ago
1.0.11
1 year ago
1.0.10
1 year ago
0.0.8
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.7
1 year ago
1.3.4
1 year ago
1.3.1
1 year ago
1.3.0
1 year ago
1.2.6
1 year ago
1.2.5
1 year ago
1.2.4
1 year ago
1.2.3
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
1.2.0
2 years ago
1.1.4
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago