Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BinaryDeltaImpl

Implementation of the BinaryDelta interface.

Hierarchy

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

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

    Parameters

    • buffer: Uint8Array

      the buffer that contains the delta as CBOR data

    • 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

Properties

$buffer

$buffer: Uint8Array

The internal buffer

$length

$length: number

The number of bytes in the slice

$offset

$offset: number

The offset of the slice

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

    throws

    an InvalidDataError if there was an error parsing the next token

    Parameters

    Returns void

Copyright © 2025 DiffusionData Ltd. All Rights Reserved.