Variable protoDelimitedConst
protoDelimited: { dec<T>(type,
bytes,
options?): T; decStream<T_1>(type,
iterable): AsyncGenerator<T_1, void, unknown>; enc(message,
options?): Uint8Array; peekSize(data): { eof: false; offset: number; size: number; } | { eof: true; offset: null; size: null; }; } Type declaration
dec:function
- dec<T>(type, bytes, options?): T
Returns T
decStream:function
- decStream<T_1>(type, iterable): AsyncGenerator<T_1, void, unknown>
Returns AsyncGenerator<T_1, void, unknown>
enc:function
- enc(message, options?): Uint8Array
Returns Uint8Array
peekSize:function
- peekSize(data): {
eof: false;
offset: number;
size: number;
} | {
eof: true;
offset: null;
size: null;
} Returns {
eof: false;
offset: number;
size: number;
} | {
eof: true;
offset: null;
size: null;
}
protoDelimited provides functions to serialize and parse size-delimited messages.
A size-delimited message is a varint size in bytes, followed by exactly that many bytes of a message serialized with the binary format.
This size-delimited format is compatible with other implementations. For details, see https://github.com/protocolbuffers/protobuf/issues/10229