Interface LengthDelimitedCodecOptions

interface LengthDelimitedCodecOptions {
    read?: (r: Bytes) => null | number;
    write?: (w: ISyncWritable, n: number) => void;
}

Properties

Properties

read?: (r: Bytes) => null | number

function that will be called to read the length of the frame

`read.uint32le`
write?: (w: ISyncWritable, n: number) => void

function that will be called to write the length of the frame

`write.uint32le`