candid/index library

Classes

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

Constants

magicNumber → const String

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 deserialised to JS type
idlEncode(List<CType> argTypes, List args) BinaryBlob
Encode a array of values @returns {Buffer} serialised value
isValidUTF8(Uint8List buf) bool
makeMap(List<CType> components) Map
toReadableString(dynamic x) String
@param x @returns {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>