Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TypeConversion<X>

This interface implements a conversion between Buffer and a user-defined representation. See u32type for an example.

Type parameters

  • X

Hierarchy

  • TypeConversion

Index

Methods

  • format(buf: Buffer, x: X): void
  • Write the user data into the passed Buffer (which must not be assumed to be initialized)

    Parameters

    • buf: Buffer
    • x: X

    Returns void

  • parse(buf: Buffer): X

Generated using TypeDoc