Interface SimpleType<T>

interface SimpleType<T> {
    name: string;
    size: number;
    fromBuffer(buffer: Uint8Array, ctx?: {}): T;
    toBuffer(data: T, ctx?: {}): Uint8Array;
}

Type Parameters

  • T = any

Implemented by

Properties

Methods

Properties

name: string
size: number

Methods

  • Parameters

    • buffer: Uint8Array
    • Optionalctx: {}

      Returns T

    • Parameters

      • data: T
      • Optionalctx: {}

        Returns Uint8Array