Options
All
  • Public
  • Public/Protected
  • All
Menu

Class to handle the protocol Block type

Hierarchy

  • BlockSerializer

Index

Methods

Methods

Static read

Static size

Static write

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

    Parameters

    • data: IBlockData

      Block data to be written to buffer

    • buf: Buffer

      Buffer object where the block will be written

    • Default value offset: number = 0

      Number of bytes to skip before starting to write.

    Returns number

    Offset plus the number of bytes that has been written