Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
class channel.Chunker
extends BaseBuffer
import { channel } from "https://deno.land/x/neo4j_lite_client@4.4.6/bolt-connection/index.js";
const { Chunker } = channel;

Looks like a writable buffer, chunks output transparently into a channel below.

Constructors

new
Chunker(channel, bufferSize)

Methods

_ensure(size)

Ensure at least the given size is available for writing

Bolt messages are encoded in one or more chunks, and the boundary between two messages is encoded as a 0-length chunk, 00 00. This inserts such a message boundary, closing any currently open chunk as needed

putBytes(position, data)
putFloat64(position, val)
putInt8(position, val)
putUInt8(position, val)