Skip to content
YosoiDocs

AddressableByteLimit

yosoi.scalars.AddressableByteLimit

class AddressableByteLimit(ValidatedInteger):

Positive u64 byte bound that also fits the Rust platform address size.

Source: python/yosoi/scalars.py:262

ValidatedInteger

Members below are declared on this class. Inherited Pydantic methods and generated constructor signatures are not expanded.

def as_usize(self) -> int:

Return the byte bound already checked to fit Rust platform address size.

Source: python/yosoi/scalars.py:267

def to_byte_limit(self) -> ByteLimit:

Convert to a positive byte limit; the value is measured in bytes.

Source: python/yosoi/scalars.py:271