Type alias SolitaType<T>

SolitaType<T>: {
    name: string;
    deserialize: ((data: Buffer, offset?: number) => [T, number]);
    fromArgs: ((args: T) => {
        serialize: (() => [Buffer, number]);
    });
}

Type Parameters

  • T

Type declaration

  • name: string
  • deserialize: ((data: Buffer, offset?: number) => [T, number])
      • (data: Buffer, offset?: number): [T, number]
      • Parameters

        • data: Buffer
        • Optional offset: number

        Returns [T, number]

  • fromArgs: ((args: T) => {
        serialize: (() => [Buffer, number]);
    })
      • (args: T): {
            serialize: (() => [Buffer, number]);
        }
      • Parameters

        • args: T

        Returns {
            serialize: (() => [Buffer, number]);
        }

        • serialize: (() => [Buffer, number])
            • (): [Buffer, number]
            • Returns [Buffer, number]

Generated using TypeDoc