libp2p
    Preparing search index...

    Interface LengthPrefixedDecoderInit

    interface LengthPrefixedDecoderInit {
        maxBufferSize?: number;
        maxDataLength?: number;
        encodingLength?(length: number): number;
        lengthDecoder?(data: Uint8Array<ArrayBufferLike> | Uint8ArrayList): number;
    }
    Index

    Properties

    maxBufferSize?: number

    How large the internal buffer is allowed to grow - attempting to store more data than this will throw

    maxDataLength?: number

    Throw an error if the message that would be read from the buffer is larger than this value

    Methods