Methods
getRequestObjectData({lObject,) → {bytebuffer}
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}
Encodes data required to send a command to a LaunchLike server.
Parameters:
| Name | Type | Description |
|---|---|---|
{lCommand, |
object | lInstanceNumber} |
Returns:
- Type
- bytebuffer
getSendObjectData({) → {bytebuffer}
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)
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})
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,)
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,)
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.