Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CoinSerializer

Index

Methods

Methods

Static read

Static size

Static write

  • write(data: ICoinData, buf: Buffer, offset: number): number
  • Writes value to buf at the specified offset

    Parameters

    • data: ICoinData

      Coin to be written to buf

    • buf: Buffer

      Buffer object where the number will be written

    • offset: number

      Number of bytes to skip before starting to write.

    Returns number

    Offset plus the number of bytes that has been written