_algopy_testing.primitives.bytes
¶
Module Contents¶
Classes¶
A python implementation of an AVM []byte. |
API¶
- class Bytes(value: bytes = b'')¶
A python implementation of an AVM []byte.
Initialization
- property length: _algopy_testing.primitives.uint64.UInt64¶
Returns the length of the Bytes.
- static from_base32(value: str) _algopy_testing.primitives.bytes.Bytes ¶
Creates Bytes from a base32 encoded string e.g.
Bytes.from_base32("74======")
- static from_base64(value: str) _algopy_testing.primitives.bytes.Bytes ¶
Creates Bytes from a base64 encoded string e.g.
Bytes.from_base64("RkY=")
- static from_hex(value: str) _algopy_testing.primitives.bytes.Bytes ¶
Creates Bytes from a hex/octal encoded string e.g.
Bytes.from_hex("FF")