Skip to content

StaticBytes

Algorand TypeScript


Algorand TypeScript / arc4 / StaticBytes

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

A fixed length sequence of bytes

TLength extends uint64 = 0

[index: uint64]: Byte

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

new StaticBytes<TLength>(value): StaticBytes<TLength>

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

Create a new StaticBytes instance from native fixed sized bytes

bytes<TLength>

The bytes

StaticBytes<TLength>

Arc4ArrayBase.constructor

new StaticBytes<TLength>(value): StaticBytes<TLength>

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

Create a new StaticBytes instance from native bytes

bytes

The bytes

StaticBytes<TLength>

Arc4ArrayBase<Byte>.constructor

new StaticBytes<TLength>(value): StaticBytes<TLength>

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

Create a new StaticBytes instance from a utf8 string

string

A string

StaticBytes<TLength>

Arc4ArrayBase<Byte>.constructor

new StaticBytes<TLength>(): StaticBytes<TLength>

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

Create a new StaticBytes instance of length 0

StaticBytes<TLength>

Arc4ArrayBase<Byte>.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:580

Returns the statically declared length of this byte array

uint64

Arc4ArrayBase.length


get native(): bytes<TLength>

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

Get the native bytes value

bytes<TLength>

[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:573

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