@passes/reqs / Exports / Codec
Interface: Codec<T>
Type parameters
Name |
---|
T |
Table of contents
Properties
Properties
decode
• decode: (bytes
: Uint8Array
) => T
Type declaration
▸ (bytes
): T
Parameters
Name | Type |
---|---|
bytes | Uint8Array |
Returns
T
Defined in
encode
• encode: (value
: T
) => Uint8Array
Type declaration
▸ (value
): Uint8Array
Parameters
Name | Type |
---|---|
value | T |
Returns
Uint8Array