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
replacements
…BytesCompat
[]
Returns
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
Call Signature
Bytes(
value
):bytes
Defined in: packages/algo-ts/src/primitives.ts:200
No op, returns the provided byte array.
Parameters
value
Returns
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
Returns
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
Returns
Call Signature
Bytes(
value
):bytes
Defined in: packages/algo-ts/src/primitives.ts:212
Create a byte array from an Iterable
Parameters
value
Returns
Call Signature
Bytes():
bytes
Defined in: packages/algo-ts/src/primitives.ts:216
Create an empty byte array