class documentation

class BinaryWriter: (source)

View In Hierarchy

Append primitive protobuf values to a byte buffer.

Method __init__ Undocumented
Method to_bytes Undocumented
Method write_bool Undocumented
Method write_bytes Undocumented
Method write_double Undocumented
Method write_fixed32 Undocumented
Method write_fixed64 Undocumented
Method write_float Undocumented
Method write_int32 Undocumented
Method write_int64 Undocumented
Method write_packed Undocumented
Method write_raw Undocumented
Method write_sfixed32 Undocumented
Method write_sfixed64 Undocumented
Method write_sint32 Undocumented
Method write_sint64 Undocumented
Method write_string Undocumented
Method write_tag Undocumented
Method write_uint32 Undocumented
Method write_uint64 Undocumented
Method write_varint Undocumented
Class Variable __slots__ Undocumented
Instance Variable _data Undocumented
def __init__(self): (source)

Undocumented

def to_bytes(self) -> bytes: (source)

Undocumented

def write_bool(self, value: bool): (source)

Undocumented

def write_bytes(self, value: bytes | bytearray | memoryview): (source)

Undocumented

def write_double(self, value: float): (source)

Undocumented

def write_fixed32(self, value: int): (source)

Undocumented

def write_fixed64(self, value: int): (source)

Undocumented

def write_float(self, value: float): (source)

Undocumented

def write_int32(self, value: int): (source)

Undocumented

def write_int64(self, value: int): (source)

Undocumented

def write_packed(self, values: Iterable[T], write_value: Callable[[BinaryWriter, T], None]): (source)

Undocumented

def write_raw(self, data: bytes | bytearray | memoryview): (source)

Undocumented

def write_sfixed32(self, value: int): (source)

Undocumented

def write_sfixed64(self, value: int): (source)

Undocumented

def write_sint32(self, value: int): (source)

Undocumented

def write_sint64(self, value: int): (source)

Undocumented

def write_string(self, value: str): (source)

Undocumented

def write_tag(self, field_number: int, wire_type: int): (source)

Undocumented

def write_uint32(self, value: int): (source)

Undocumented

def write_uint64(self, value: int): (source)

Undocumented

def write_varint(self, value: int): (source)

Undocumented

__slots__: tuple[str, ...] = (source)

Undocumented

Undocumented