Skip to content

TextClass

Defined in: packages/candid/src/idl.ts:463

Represents an IDL Text

new TextClass(): TextClass

TextClass

PrimitiveType.constructor

get name(): string

Defined in: packages/candid/src/idl.ts:491

string

PrimitiveType.name

_buildTypeTableImpl(_typeTable): void

Defined in: packages/candid/src/idl.ts:232

TypeTable

void

PrimitiveType._buildTypeTableImpl


accept<D, R>(v, d): R

Defined in: packages/candid/src/idl.ts:464

D

R

Visitor<D, R>

D

R

PrimitiveType.accept


buildTypeTable(typeTable): void

Defined in: packages/candid/src/idl.ts:192

TypeTable

void

PrimitiveType.buildTypeTable


checkType(t): Type

Defined in: packages/candid/src/idl.ts:225

Type

Type

PrimitiveType.checkType


covariant(x): x is string

Defined in: packages/candid/src/idl.ts:468

Assert that JavaScript’s x is the proper type represented by this Type.

any

x is string

PrimitiveType.covariant


decodeValue(b, t): string

Defined in: packages/candid/src/idl.ts:483

PipeArrayBuffer

Type

string

PrimitiveType.decodeValue


display(): string

Defined in: packages/candid/src/idl.ts:183

string

PrimitiveType.display


encodeType(): Uint8Array<ArrayBufferLike>

Defined in: packages/candid/src/idl.ts:479

Implement I in the IDL spec. Encode this type for the type table.

Uint8Array<ArrayBufferLike>

PrimitiveType.encodeType


encodeValue(x): Uint8Array<ArrayBufferLike>

Defined in: packages/candid/src/idl.ts:473

Internal

Encode the value. This needs to be public because it is used by encodeValue() from different types.

string

Uint8Array<ArrayBufferLike>

PrimitiveType.encodeValue


valueToString(x): string

Defined in: packages/candid/src/idl.ts:495

string

string

PrimitiveType.valueToString