Skip to content

@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
NameType
bytesUint8Array
Returns

T

Defined in

request-topic.jsdoc.mjs:17


encode

encode: (value: T) => Uint8Array

Type declaration

▸ (value): Uint8Array

Parameters
NameType
valueT
Returns

Uint8Array

Defined in

request-topic.jsdoc.mjs:16