Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Bytes

An expression that represents a byte string.

Hierarchy

Index

Constructors

constructor

  • new Bytes(args?: string[]): Bytes
  • "Create a new byte string. Depending on the encoding, there are different arguments to pass:

    For UTF-8 strings: Pass the string as the only argument. For example, new Bytes("content"). For base16, base32, or base64 strings: Pass the base as the first argument and the string as the second argument. For example, new Bytes("base16", "636F6E74656E74"), new Bytes("base32", "ORFDPQ6ARJK"), new Bytes("base64", "Y29udGVudA=="). Special case for base16: The prefix "0x" may be present in a base16 byte string. For example, new Bytes("base16", "0x636F6E74656E74"). `

    Parameters

    • args: string[] = []

    Returns Bytes

Properties

base

base: string

byteStr

byteStr: string

Methods

And

  • Take the logical And of this expression and another one.

    This expression must evaluate to uint64.

    This is the same as using And() with two arguments.

    Parameters

    Returns Expr

Or

  • Take the logical Or of this expression and another one.

    This expression must evaluate to uint64.

    This is the same as using Or() with two arguments.

    Parameters

    Returns Expr

add

and

eq

ge

gt

invert

le

lt

mod

mul

ne

or

sub

teal

toString

  • toString(): string

truediv

typeOf

xor

Generated using TypeDoc