CborArrayBuilder
Defined in: ootle/src/helpers/cbor-builder.ts:152
Builds a Vec or tuple argument. Create one with CborBuilder.array.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CborArrayBuilder(
items?):CborArrayBuilder
Defined in: ootle/src/helpers/cbor-builder.ts:155
Parameters
Section titled “Parameters”items?
Section titled “items?”CborValue[] = []
Returns
Section titled “Returns”CborArrayBuilder
Methods
Section titled “Methods”add(
value):this
Defined in: ootle/src/helpers/cbor-builder.ts:159
Parameters
Section titled “Parameters”Returns
Section titled “Returns”this
addAll()
Section titled “addAll()”addAll(
values):this
Defined in: ootle/src/helpers/cbor-builder.ts:164
Parameters
Section titled “Parameters”values
Section titled “values”Returns
Section titled “Returns”this
finish()
Section titled “finish()”finish():
InstructionArg
Defined in: ootle/src/helpers/cbor-builder.ts:170
Encodes the array. A builder nested in another does not need this: its parent calls it.
Returns
Section titled “Returns”InstructionArg
toLiteral()
Section titled “toLiteral()”toLiteral():
InstructionArg
Defined in: ootle/src/helpers/cbor-builder.ts:174
Returns
Section titled “Returns”InstructionArg