Skip to content

Bytes

Bytes

Bases: Generic[N]

[De]serialize a raw byte string of length N using the syntax Bytes[N]

__class_getitem__ classmethod

__class_getitem__(item: int) -> type

from_bytes classmethod

from_bytes(bytes_: bytes, ver: Version = Version(0)) -> bytes

from_file classmethod

from_file(filepath: str) -> bytes

from_stream classmethod

from_stream(value: ByteStream, ver: Version = Version(0)) -> bytes

to_bytes classmethod

to_bytes(value: bytes) -> bytes

to_file classmethod

to_file(filepath: str, value: bytes)

void

Bases: Bytes[0]

An alias for Bytes[0]. Effectively a no-op but useful for adding retriever related hooks right at the beginning of a struct