APIs

Show:

Constructor

PacketAssembler

(
  • options
)

Parameters:

  • options Object
    • readMessageFunc Function

      a function to read

    • minimumSizeInBytes Integer

      the minimum number of bytes that need to be received before the readMessageFunc can be called

Methods

encode_decode_round_trip_test

(
  • obj
  • [options]
  • callback_buffer
)

Parameters:

  • obj Object

    : object to test ( the object must provide a binaryStoreSize,encode,decode method

  • [options] Object optional
  • callback_buffer Object

Returns:

:

extract_values

(
  • array
  • [dimensions = null]
)

Parameters:

  • array Array

    flat array containing values

  • [dimensions = null] Array optional

    dimension of the matrix if data is a matrix

Returns:

:

packet_analyzer

(
  • buffer
  • id
  • padding
  • offset
  • custom_options
)

Parameters:

  • buffer Buffer
  • id Object
  • padding Integer
  • offset Integer
  • custom_options Object
    • factory Object
      • constructObject Function