Options for parsing binary data.

interface BinaryReadOptions {
    readUnknownFields: boolean;
    readerFactory: ((bytes) => IBinaryReader);
}

Properties

readUnknownFields: boolean

Retain unknown fields during parsing? The default behavior is to retain unknown fields and include them in the serialized output.

For more details see https://developers.google.com/protocol-buffers/docs/proto3#unknowns

readerFactory: ((bytes) => IBinaryReader)

Type declaration

    • (bytes): IBinaryReader
    • Allows to use a custom implementation to decode binary data.

      Parameters

      • bytes: Uint8Array

      Returns IBinaryReader

Generated using TypeDoc