algopy_testing.primitives.bytes
Module Contents
Section titled “Module Contents”Classes
Section titled “Classes”Bytes | A python implementation of an AVM []byte. |
|---|
class Bytes
Section titled “class Bytes”A python implementation of an AVM []byte.
value : bytes
Section titled “value : bytes”property length : UInt64
Section titled “property length : UInt64”Returns the length of the Bytes.
static from_base32(value: str) → Bytes
Section titled “static from_base32(value: str) → Bytes”Creates Bytes from a base32 encoded string e.g. Bytes.from_base32(“74======”)
static from_base64(value: str) → Bytes
Section titled “static from_base64(value: str) → Bytes”Creates Bytes from a base64 encoded string e.g. Bytes.from_base64(“RkY=”)
static from_hex(value: str) → Bytes
Section titled “static from_hex(value: str) → Bytes”Creates Bytes from a hex/octal encoded string e.g. Bytes.from_hex(“FF”)