encodeConstr
Note: internally the indef list format is used if the number of fields is > 0, if the number of fields is 0 the def list format is used see well-typed/cborg/serialise/src/Codec/Serialise/Class.hs.
export function encodeConstr(
tag: number,
fields: Encodeable[]
): number[]
Arguments
Name | Type | Description |
---|---|---|
tag | number | |
fields | Encodeable[] |
Return value
number[]