Skip to content

Arc4ArrayBase

@algorandfoundation/algorand-typescript


@algorandfoundation/algorand-typescript / arc4 / <internal> / Arc4ArrayBase

Defined in: packages/algo-ts/src/arc4/encoded-types.ts:232

A base type for arc4 array types

TItem extends ARC4Encoded

[index: uint64]: TItem

protected new Arc4ArrayBase<TItem>(): Arc4ArrayBase<TItem>

Defined in: packages/algo-ts/src/arc4/encoded-types.ts:233

Arc4ArrayBase<TItem>

ARC4Encoded.constructor

get bytes(): bytes

Defined in: packages/algo-ts/src/arc4/encoded-types.ts:97

Retrieve the encoded bytes for this type

bytes

ARC4Encoded.bytes


get length(): uint64

Defined in: packages/algo-ts/src/arc4/encoded-types.ts:240

Returns the current length of this array

uint64

[iterator](): IterableIterator<TItem>

Defined in: packages/algo-ts/src/arc4/encoded-types.ts:277

Returns an iterator for the items in this array

IterableIterator<TItem>


at(index): TItem

Defined in: packages/algo-ts/src/arc4/encoded-types.ts:249

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

Uint64Compat

The index of the item to retrieve

TItem


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

Defined in: packages/algo-ts/src/arc4/encoded-types.ts:284

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

IterableIterator<readonly [uint64, TItem]>


keys(): IterableIterator<uint64>

Defined in: packages/algo-ts/src/arc4/encoded-types.ts:291

Returns an iterator for the indexes in this array

IterableIterator<uint64>


slice(): DynamicArray<TItem>

Defined in: packages/algo-ts/src/arc4/encoded-types.ts:256

Internal

Create a new Dynamic array with all items from this array

DynamicArray<TItem>

slice(end): DynamicArray<TItem>

Defined in: packages/algo-ts/src/arc4/encoded-types.ts:262

Internal

Create a new DynamicArray with all items up till end. Negative indexes are taken from the end.

Uint64Compat

An index in which to stop copying items.

DynamicArray<TItem>

slice(start, end): DynamicArray<TItem>

Defined in: packages/algo-ts/src/arc4/encoded-types.ts:269

Internal

Create a new DynamicArray with items from start, up until end Negative indexes are taken from the end.

Uint64Compat

An index in which to start copying items.

Uint64Compat

An index in which to stop copying items

DynamicArray<TItem>