Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BinaryDeltaImpl

Implementation of the BinaryDelta interface.

Hierarchy

  • any
    • BinaryDeltaImpl

Implements

Index

Constructors

Methods

Constructors

constructor

  • new BinaryDeltaImpl(buffer: Buffer, offset?: number, length?: number): BinaryDeltaImpl
  • Create a new BinaryDeltaImpl

    Parameters

    • buffer: Buffer

      the internal buffer

    • Default value offset: number = 0

      the offset of the data in the buffer representing the delta

    • Default value length: number = buffer.length

      the number of the data in the buffer representing the delta

    Returns BinaryDeltaImpl

Methods

hasChanges

  • hasChanges(): boolean
  • Check if the binary delta has any changes

    Returns boolean

    true if the binary delta contains any data

visit

  • Parse the delta as CBOR tokens and let the visitor handle them

    Parameters

    Returns void