Options
All
  • Public
  • Public/Protected
  • All
Menu

Class to handle the protocol VarByte type http://dev.nuls.io/protocol/index.html#VarByte

Hierarchy

Index

Methods

Methods

Static read

Static size

  • size(data: Buffer): number

Static write

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

    Parameters

    • data: Buffer

      Buffer of bytes 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