Options
All
  • Public
  • Public/Protected
  • All
Menu

byteify - v2.0.10

Index

Functions

deserializeBool

  • deserializeBool(bytes: Uint8Array): boolean
  • Deserializes an Uint8Array representing a boolean.

    Parameters

    • bytes: Uint8Array

      The Uint8Array containing the bytes representing the boolean.

    Returns boolean

    The deserialized boolean.

deserializeFloat32

  • deserializeFloat32(bytes: Uint8Array): number
  • Deserializes an Uint8Array representing a float32.

    Parameters

    • bytes: Uint8Array

      The Uint8Array containing the bytes representing the float32.

    Returns number

    The deserialized float32.

deserializeFloat64

  • deserializeFloat64(bytes: Uint8Array): number
  • Deserializes an Uint8Array representing a float64.

    Parameters

    • bytes: Uint8Array

      The Uint8Array containing the bytes representing the float64.

    Returns number

    The deserialized float64.

deserializeInt16

  • deserializeInt16(bytes: Uint8Array): number
  • Deserializes an Uint8Array representing an int16.

    Parameters

    • bytes: Uint8Array

      The Uint8Array containing the bytes representing the int16.

    Returns number

    The deserialized int16.

deserializeInt32

  • deserializeInt32(bytes: Uint8Array): number
  • Deserializes an Uint8Array representing an int32.

    Parameters

    • bytes: Uint8Array

      The Uint8Array containing the bytes representing the int32.

    Returns number

    The deserialized int32.

deserializeInt64

  • deserializeInt64(bytes: Uint8Array): number
  • Deserializes an Uint8Array representing an int64.

    Parameters

    • bytes: Uint8Array

      The Uint8Array containing the bytes representing the int64.

    Returns number

    The deserialized int64.

deserializeInt8

  • deserializeInt8(bytes: Uint8Array): number
  • Deserializes an Uint8Array representing an int8.

    Parameters

    • bytes: Uint8Array

      The Uint8Array containing the bytes representing the int8.

    Returns number

    The deserialized int8.

deserializeUint16

  • deserializeUint16(bytes: Uint8Array): number
  • Deserializes an Uint8Array representing an uint16.

    Parameters

    • bytes: Uint8Array

      The Uint8Array containing the bytes representing the uint16.

    Returns number

    The deserialized uint16.

deserializeUint32

  • deserializeUint32(bytes: Uint8Array): number
  • Deserializes an Uint8Array representing an uint32.

    Parameters

    • bytes: Uint8Array

      The Uint8Array containing the bytes representing the uint32.

    Returns number

    The deserialized uint32.

deserializeUint64

  • deserializeUint64(bytes: Uint8Array): number
  • Deserializes an Uint8Array representing an uint64.

    Parameters

    • bytes: Uint8Array

      The Uint8Array containing the bytes representing the uint64.

    Returns number

    The deserialized uint64.

deserializeUint8

  • deserializeUint8(bytes: Uint8Array): number
  • Deserializes an Uint8Array representing an uint8.

    Parameters

    • bytes: Uint8Array

      The Uint8Array containing the bytes representing the uint8.

    Returns number

    The deserialized uint8.

serializeBool

  • serializeBool(value: boolean): Uint8Array
  • Serializes a boolean into an Uint8Array.

    Parameters

    • value: boolean

      The boolean to serialize.

    Returns Uint8Array

    The boolean serialized in an Uint8Array.

serializeFloat32

  • serializeFloat32(value: number): Uint8Array
  • Serializes a float32 into an Uint8Array.

    Parameters

    • value: number

      The float32 to serialize.

    Returns Uint8Array

    The float32 serialized in an Uint8Array.

serializeFloat64

  • serializeFloat64(value: number): Uint8Array
  • Serializes a float64 into an Uint8Array.

    Parameters

    • value: number

      The float64 to serialize.

    Returns Uint8Array

    The float64 serialized in an Uint8Array.

serializeInt16

  • serializeInt16(value: number): Uint8Array
  • Serializes an int16 into an Uint8Array.

    Parameters

    • value: number

      The int16 to serialize.

    Returns Uint8Array

    The int16 serialized in an Uint8Array.

serializeInt32

  • serializeInt32(value: number): Uint8Array
  • Serializes an int32 into an Uint8Array.

    Parameters

    • value: number

      The int32 to serialize.

    Returns Uint8Array

    The int32 serialized in an Uint8Array.

serializeInt64

  • serializeInt64(value: number): Uint8Array
  • Serializes an int64 into an Uint8Array.

    Parameters

    • value: number

      The int64 to serialize.

    Returns Uint8Array

    The int64 serialized in an Uint8Array.

serializeInt8

  • serializeInt8(value: number): Uint8Array
  • Serializes an int8 into an Uint8Array.

    Parameters

    • value: number

      The int8 to serialize.

    Returns Uint8Array

    The int8 serialized in an Uint8Array.

serializeUint16

  • serializeUint16(value: number): Uint8Array
  • Serializes an uint16 into an Uint8Array.

    Parameters

    • value: number

      The uint16 to serialize.

    Returns Uint8Array

    The uint16 serialized in an Uint8Array.

serializeUint32

  • serializeUint32(value: number): Uint8Array
  • Serializes an uint32 into an Uint8Array.

    Parameters

    • value: number

      The uint32 to serialize.

    Returns Uint8Array

    The uint32 serialized in an Uint8Array.

serializeUint64

  • serializeUint64(value: number): Uint8Array
  • Serializes an uint64 into an Uint8Array.

    Parameters

    • value: number

      The uint64 to serialize.

    Returns Uint8Array

    The uint64 serialized in an Uint8Array.

serializeUint8

  • serializeUint8(value: number): Uint8Array
  • Serializes an uint8 into an Uint8Array.

    Parameters

    • value: number

      The uint8 to serialize.

    Returns Uint8Array

    The uint8 serialized in an Uint8Array.

Generated using TypeDoc