Skip to content

CborArrayBuilder

Defined in: ootle/src/helpers/cbor-builder.ts:152

Builds a Vec or tuple argument. Create one with CborBuilder.array.

new CborArrayBuilder(items?): CborArrayBuilder

Defined in: ootle/src/helpers/cbor-builder.ts:155

CborValue[] = []

CborArrayBuilder

add(value): this

Defined in: ootle/src/helpers/cbor-builder.ts:159

CborValue

this


addAll(values): this

Defined in: ootle/src/helpers/cbor-builder.ts:164

CborValue[]

this


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.

InstructionArg


toLiteral(): InstructionArg

Defined in: ootle/src/helpers/cbor-builder.ts:174

InstructionArg

CborEncodable.toLiteral