candid/idl library

Classes

BoolClass
Represents an IDL Bool
ConstructType<T>
CType<T>
Represents an IDL type.
EmptyClass<T>
FixedIntClass
FixedNatClass
FloatClass
FuncClass
IDL
IDLTypeIds
IntClass
Implicit types BigInt | int.
NatClass
NullClass
OptClass<T>
PrimitiveType<T>
PrincipalClass
RecClass<T>
Represents a reference to IDL type, used for defining recursive data types.
RecordClass
ReservedClass
A reserved class with no usages.
ServiceClass
TextClass
TupleClass<T extends List>
TypeTable
An IDL Type Table, which precedes the data in the stream.
VariantClass
VecClass<T>
Visitor<D, R>

Functions

decodePrincipalId(Pipe b) PrincipalId
idlDecode(List<CType> retTypes, Uint8List bytes) List
Decode a binary value @param retTypes - Types expected in the buffer. @param bytes - hex-encoded string, or buffer. @returns Value deserialized to JS type
idlEncode(List<CType> argTypes, List args) BinaryBlob
Encode a array of values @returns {Buffer} serialised value
toReadableString(dynamic x) String
tryToJson(CType type, dynamic value) Uint8List?
zipWith<TX, TY, TR>(List<TX> xs, List<TY> ys, TR f(TX a, TY b)) List<TR>