Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Int64DataType

Hierarchy

Index

Properties

Int64

Int64: object

Type declaration

Methods

canReadAs

  • canReadAs(valueType: object): boolean
  • Parameters

    • valueType: object

    Returns boolean

    true if a binary representation created by this data type can read as an instance * of valueType

deltaType

name

  • name(): string
  • Returns string

    the name of this datatype

readAs

  • readAs<T>(valueType: object, buffer: Uint8Array, offset?: undefined | number, length?: undefined | number): T | null
  • readAs<T>(valueType: object, buffer: Bytes): T | null
  • Type parameters

    • T

    Parameters

    • valueType: object
    • buffer: Uint8Array
    • Optional offset: undefined | number
    • Optional length: undefined | number

    Returns T | null

    the value in the form of the specified type

  • Type parameters

    • T

    Parameters

    • valueType: object
    • buffer: Bytes

    Returns T | null

readValue

  • readValue(input: Uint8Array, offset?: undefined | number, length?: undefined | number): Int64 | null
  • readValue(input: Bytes): Int64 | null
  • Parameters

    • input: Uint8Array
    • Optional offset: undefined | number
    • Optional length: undefined | number

    Returns Int64 | null

    an instance of this data type value

  • Parameters

    Returns Int64 | null

writeValue

  • Parameters

    Returns Buffer

    the serialised value as a buffer

writeValueToArray