Skip to content

bytes

@algorandfoundation/algorand-typescript


@algorandfoundation/algorand-typescript / index / bytes

bytes: object

Defined in: packages/algo-ts/src/primitives.ts:101

A sequence of zero or more bytes (ie. byte[])

readonly length: uint64

Retrieve the length of the byte sequence

Retrieve the byte at the index i

Uint64Compat

The index to read. Can be negative to read from the end

bytes

The byte found at the index, or an empty bytes value

Perform a bitwise AND operation with this bytes value and another bytes value.

The shorter of the two values will be zero-left extended to the larger length.

BytesCompat

The other bytes value

bytes

The bitwise operation result

Perform a bitwise INVERT operation with this bytes value

bytes

The bitwise operation result

Perform a bitwise OR operation with this bytes value and another bytes value

The shorter of the two values will be zero-left extended to the larger length.

BytesCompat

The other bytes value

bytes

The bitwise operation result

Perform a bitwise XOR operation with this bytes value and another bytes value.

The shorter of the two values will be zero-left extended to the larger length.

BytesCompat

The other bytes value

bytes

The bitwise operation result

Concatenate this bytes value with another bytes value

BytesCompat

The other bytes value

bytes

The concatenation result

Compares this bytes value with another.

BytesCompat

The other bytes value

boolean

True if both values represent the same byte sequence

Returns a copy of this bytes sequence

bytes

Returns a slice of this bytes sequence from the specified start to the end

Uint64Compat

The index to start slicing from. Can be negative to count from the end.

bytes

Returns a slice of this bytes sequence from the specified start to the specified end

Uint64Compat

The index to start slicing from. Can be negative to count from the end.

Uint64Compat

The index to end the slice. Can be negative to count from the end.

bytes

Interpret this byte sequence as a utf-8 string

string