Interface BlockEncoder<Code, T>

IPLD encoder part of the codec.

interface BlockEncoder<Code, T> {
    code: Code;
    name: string;
    encode(data): ByteView<T>;
}

Type Parameters

  • Code extends number
  • T

Hierarchy (view full)

Properties

Methods

Properties

code: Code
name: string

Methods