Skip to content

Bytes

@algorandfoundation/algorand-typescript


@algorandfoundation/algorand-typescript / index / Bytes

Function: Bytes()

Call Signature

Bytes(value, …replacements): bytes

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

Create a byte array from a string interpolation template and compatible replacements

Parameters

value

TemplateStringsArray

replacements

BytesCompat[]

Returns

bytes

Call Signature

Bytes(value): bytes

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

Create a byte array from a utf8 string

Parameters

value

string

Returns

bytes

Call Signature

Bytes(value): bytes

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

No op, returns the provided byte array.

Parameters

value

bytes

Returns

bytes

Call Signature

Bytes(value): bytes

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

Create a byte array from a biguint value encoded as a variable length big-endian number

Parameters

value

biguint

Returns

bytes

Call Signature

Bytes(value): bytes

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

Create a byte array from a uint64 value encoded as a fixed length 64-bit number

Parameters

value

uint64

Returns

bytes

Call Signature

Bytes(value): bytes

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

Create a byte array from an Iterable where each item is interpreted as a single byte and must be between 0 and 255 inclusively

Parameters

value

Iterable<uint64>

Returns

bytes

Call Signature

Bytes(): bytes

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

Create an empty byte array

Returns

bytes