Skip to content

DynamicBytes

Algorand TypeScript


Algorand TypeScript / arc4 / DynamicBytes

Defined in: arc4/encoded-types.ts:504

A variable length sequence of bytes prefixed with its length expressed as a 2 byte uint

[index: uint64]: Byte

Get or set the item at the specified index. Negative indexes are not supported

new DynamicBytes(value?): DynamicBytes

Defined in: arc4/encoded-types.ts:512

Create a new DynamicBytes instance

The bytes or utf8 interpreted string to initialize this type

string | bytes

DynamicBytes

Arc4ArrayBase.constructor

get bytes(): bytes

Defined in: arc4/encoded-types.ts:102

Retrieve the encoded bytes for this type

bytes

Arc4ArrayBase.bytes


get length(): uint64

Defined in: arc4/encoded-types.ts:245

Returns the current length of this array

uint64

Arc4ArrayBase.length


get native(): bytes

Defined in: arc4/encoded-types.ts:519

Get the native bytes value (excludes the length prefix)

bytes

[iterator](): IterableIterator<Byte>

Defined in: arc4/encoded-types.ts:292

Returns an iterator for the items in this array

IterableIterator<Byte>

Arc4ArrayBase.[iterator]


at(index): Byte

Defined in: arc4/encoded-types.ts:254

Returns the item at the given index. Negative indexes are taken from the end.

Uint64Compat

The index of the item to retrieve

Byte

Arc4ArrayBase.at


concat(other): DynamicBytes

Defined in: arc4/encoded-types.ts:527

Returns a dynamic bytes object containing all bytes from this and other

Arc4ArrayBase<Byte>

Another array of bytes to concat with this one

DynamicBytes


entries(): IterableIterator<readonly [uint64, Byte]>

Defined in: arc4/encoded-types.ts:299

Returns an iterator for a tuple of the indexes and items in this array

IterableIterator<readonly [uint64, Byte]>

Arc4ArrayBase.entries


join(separator?): string

Defined in: arc4/encoded-types.ts:285

Creates a string by concatenating all the items in the array delimited by the specified separator (or ’,’ by default)

string

string

Join is not supported in Algorand TypeScript

Arc4ArrayBase.join


keys(): IterableIterator<uint64>

Defined in: arc4/encoded-types.ts:306

Returns an iterator for the indexes in this array

IterableIterator<uint64>

Arc4ArrayBase.keys


slice(): Byte[]

Defined in: arc4/encoded-types.ts:261

Byte[]

Array slicing is not yet supported in Algorand TypeScript Create a new Dynamic array with all items from this array

Arc4ArrayBase.slice

slice(end): Byte[]

Defined in: arc4/encoded-types.ts:267

Uint64Compat

An index in which to stop copying items.

Byte[]

Array slicing is not yet supported in Algorand TypeScript Create a new DynamicArray with all items up till end. Negative indexes are taken from the end.

Arc4ArrayBase.slice

slice(start, end): Byte[]

Defined in: arc4/encoded-types.ts:274

Uint64Compat

An index in which to start copying items.

Uint64Compat

An index in which to stop copying items

Byte[]

Array slicing is not yet supported in Algorand TypeScript Create a new DynamicArray with items from start, up until end Negative indexes are taken from the end.

Arc4ArrayBase.slice