Options
All
  • Public
  • Public/Protected
  • All
Menu

Class to handle if the serialized data is null

Hierarchy

  • NulsDataSerializer

Index

Methods

Methods

Static read

Static size

  • size(data: any): number

Static write

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

    Parameters

    • data: any

      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