Global

Methods

getRequestObjectData({lObject,) → {bytebuffer}

Source:

Encodes data required to make an object request to a LaunchLike server.

Parameters:
Name Type Description
{lObject, object

lInstanceNumber, lStart, lLength}

Returns:
Type
bytebuffer

getSendCommandData({lCommand,) → {bytebuffer}

Source:

Encodes data required to send a command to a LaunchLike server.

Parameters:
Name Type Description
{lCommand, object

lInstanceNumber}

Returns:
Type
bytebuffer

getSendObjectData({) → {bytebuffer}

Source:

Encodes an object into a Tobject ( a bytebuffer prepended with metadata) to send data to a LaunchLike server.

Parameters:
Name Type Description
{ object

lObject, lInstanceNumber, lStart, cData }

Returns:
Type
bytebuffer

(async) processBytes(cData, context)

Source:

Takes a Tobject and parses out a message type definition and length for the data. The function then calls a handler method of the context which was provided to it with the transcribed data.

Parameters:
Name Type Description
cData bytebuffer

The data which you wish to decode

context class

The class context from which you're calling this function.

Returns:

Nothing. This calls a function within the class context provided to it.

requestObject({cData})

Source:

Requests an object from a LaunchLike server with the given code.

Parameters:
Name Type Description
{cData} object

An object containing the request code, the instance number, the starting position, and the length. Generally only the data is provided.

Returns:

Nothing. This calls a function within the class context provided to it.

sendCommand({lObject,)

Source:

Requests a command from a LaunchLike server with the given code.

Parameters:
Name Type Description
{lObject, object

lInstanceNumber}

Returns:

Nothing. This calls a function within the class context provided to it.

sendObject({lObject,)

Source:

Sends an object from a LaunchLike server with the given code and data.

Parameters:
Name Type Description
{lObject, object

lInstanceNumber, lStart, cData}

Returns:

Nothing. This calls a function within the class context provided to it.