Bases: object
Accumulates serialized records in a bytearray: appends are amortized O(1) and
a record’s length is patched in with a slice assignment.
-
property count: int
-
end() → bytearray[source]
Hands over the buffer and starts a new one.
-
finish_record()[source]
-
start_record(opcode: Opcode)[source]
-
write(data: bytes | bytearray | memoryview)[source]
-
write1(value: int)[source]
-
write2(value: int)[source]
-
write4(value: int)[source]
-
write8(value: int)[source]
-
write_prefixed_string(value: str)[source]