Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface JSON

Hierarchy

Index

Methods

apply

  • Parameters

    Returns JSON

    a new instance derived from applying the delta to this value

asArray

  • asArray(): Uint8Array
  • Returns Uint8Array

    This value in binary form

asBuffer

  • asBuffer(): Buffer
  • Returns Buffer

    This value in binary form

copyTo

  • copyTo(target: Uint8Array, offset?: undefined | number): void
  • Parameters

    • target: Uint8Array
    • Optional offset: undefined | number

    Returns void

diff

  • Parameters

    • original: any
    • Optional type: undefined | string

    Returns BinaryDelta | JSONDelta

    a delta representing the difference between this and the provided value

get

  • get(): any
  • Returns any

    the JSON value

jsonDiff

  • Parameters

    • original: any

    Returns JSONDelta

    a delta representing the difference between this and the provided value

length

  • length(): number
  • Returns number

    The length of the data in bytes