Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BytesType

Hierarchy

  • BytesType

Implements

Index

Constructors

constructor

Properties

Private _options

maxLength

maxLength: number

Methods

Private _applyOptions

  • _applyOptions(): void

clone

  • clone(val: Uint8Array): Uint8Array

diff

  • diff(_oldVal: Uint8Array, _newVal: Uint8Array): Diff | undefined
  • Parameters

    • _oldVal: Uint8Array
    • _newVal: Uint8Array

    Returns Diff | undefined

    true if there is a difference, undefined otherwise

equals

  • equals(left: Uint8Array, right: Uint8Array): boolean
  • Parameters

    • left: Uint8Array
    • right: Uint8Array

    Returns boolean

lte

  • lte(left: Uint8Array, right: Uint8Array): boolean
  • Parameters

    • left: Uint8Array
    • right: Uint8Array

    Returns boolean

patch

  • patch(_oldVal: Uint8Array, _diff: Diff | undefined): Uint8Array

read

  • read<R>(reader: Reader<R>, raw: R): Uint8Array

reverseDiff

  • reverseDiff(_diff: Diff | undefined): Diff | undefined

squash

  • squash(_diff1: Diff | undefined, _diff2: Diff | undefined): Diff | undefined

test

  • test(val: Uint8Array): boolean

testError

  • testError(val: Uint8Array): Error | undefined

write

  • write<W>(writer: Writer<W>, value: Uint8Array): W

Generated using TypeDoc