Options
All
  • Public
  • Public/Protected
  • All
Menu

Class to handle the protocol Hash type

Hierarchy

  • HashSerializer

Index

Methods

Methods

Static read

Static size

  • size(): number

Static write

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

    Parameters

    • data: Hash

      The address to be written to buf

    • buf: Buffer

      Buffer object where the bytes 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