wire_bytes library

Functions

decodeBytes(List<int> buffer, int offset) Map<String, Object>
Decode length-delimited bytes from buffer at offset.
decodeString(List<int> buffer, int offset) Map<String, Object>
Decode a string from length-delimited UTF-8 bytes at offset.
encodeBytes(List<int> buffer, List<int> data) List<int>
Append length-delimited raw bytes to buffer.
encodeString(List<int> buffer, String value) List<int>
Encode a string as length-delimited UTF-8 bytes.
makeBuffer() List<int>
Create an empty byte buffer.