encodeConstr
export function encodeConstr(
tag: number,
fields: Encodeable[]
): number[]
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.
Arguments
1. tag
tag: number
2. fields
fields: Encodeable[]
Returns
number[]