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
Base classes
Section titled “Base classes”Members below are declared on this class. Inherited Pydantic methods and generated constructor signatures are not expanded.
Methods
Section titled “Methods”as_usize
Section titled “as_usize”def as_usize(self) -> int:
Return the byte bound already checked to fit Rust platform address size.
Source: python/yosoi/scalars.py:267
to_byte_limit
Section titled “to_byte_limit”def to_byte_limit(self) -> ByteLimit:
Convert to a positive byte limit; the value is measured in bytes.