WOWCube Docs logo
WOWCube Docs
Mission Control
Section Shortcuts
APIExamplesSourceWOWConnectChangelog
Filters
SDK and language defaults persist in cookies.
SDK version
Navigation Tree
Collapsed by default, focused on the active path.
Made byMcKay Seamons
GitHub
  1. Home
  2. Docs
  3. API
  4. Cubios::NetworkMessage
Mission NodeSDK 6.3C++gfx engine

Cubios::NetworkMessage

Cubios::NetworkMessage Constructors NetworkMessage Summary Constructs network message object Arguments data (optional) pointer to unsigned byte array that ho...

API / SDK 6.3 / C++ / gfx engine

Cubios::NetworkMessage

Constructors

NetworkMessage

Summary

Constructs network message object

Arguments

  • data - (optional) pointer to unsigned byte array that hold initial data payload
  • length - (optional) size of the data array

Synopsis

Cubios::NetworkMessage
CPP
1NetworkMessage(uint8_t* data=NULL,int length=MESSAGE_SIZE_MAX)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Public Methods

WriteInt

Summary

Writes integer value to the object's data bitstream

Arguments

  • value - integer value
  • bits - number of bits allocated for the value

Synopsis

Cubios::NetworkMessage
CPP
1void WriteInt(int value, int bits)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

WriteSignedInt

Summary

Writes signed integer value to the object's data bitstream

Arguments

  • value - integer value
  • bits - number of bits allocated for the value

Synopsis

Cubios::NetworkMessage
CPP
1void WriteSignedInt(int value, int bits)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

WriteBool

Summary

Writes boolean value to the object's data bitstream

Arguments

  • value - boolean value

Synopsis

Cubios::NetworkMessage
CPP
1void WriteBool(bool value)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

WriteFloat

Summary

Writes floating point value to the object's data bitstream

Arguments

  • value - floating point value

Synopsis

Cubios::NetworkMessage
CPP
1void WriteFloat(float value)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

ReadInt

Summary

Reads integer value of known length in bits from the object's data bitstream

Arguments

  • bits - value length in bits

Output

Returns integer value read from the bitstream

Synopsis

Cubios::NetworkMessage
CPP
1int ReadInt(int bits)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

ReadSignedInt

Summary

Reads signed integer value of known length in bits from the object's data bitstream

Arguments

  • bits - value length in bits

Output

Returns integer value read from the bitstream

Synopsis

Cubios::NetworkMessage
CPP
1int ReadSignedInt(int bits)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

ReadBool

Summary

Reads boolean value from the object's data bitstream

Output

Returns boolean value read from the bitstream

Synopsis

Cubios::NetworkMessage
CPP
1bool ReadBool()
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

ReadFloat

Summary

Reads floating point value from the object's data bitstream

Output

Returns floating point value read from the bitstream

Synopsis

Cubios::NetworkMessage
CPP
1float ReadFloat()
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

GetData

Summary

Gets raw data payload

Arguments

  • length - integer variable that receives the length of the resulting data array

Output

Returns a pointer to data payload byte array

Synopsis

Cubios::NetworkMessage
CPP
1uint8_t* GetData(int& length)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

SetData

Summary

Sets raw data payload

Arguments

  • data - byte array of raw data payload
  • length - length of the data array

Synopsis

Cubios::NetworkMessage
CPP
1void SetData(uint8_t* data, int length)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Reset

Summary

Resets object's bitstream read/write cursor to the beginning

Arguments

  • zero - (optional) if set, payload data will be zeroed

Synopsis

Cubios::NetworkMessage
CPP
1inline void Reset(bool zero=false)
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Print

Summary

Prints out object's data payload to the console

Synopsis

Cubios::NetworkMessage
CPP
1void Print()
2
Wrapped for easier reading. Turn wrap off to inspect exact line lengths.

Jump Grid

On This Page

ConstructorsNetworkMessagePublic MethodsWriteIntWriteSignedIntWriteBoolWriteFloatReadIntReadSignedIntReadBoolReadFloatGetDataSetDataResetPrint
Context Rail

Related nodes

Cubios::Math
API / SDK 6.3 / C++ / gfx engine
Cubios::Math::Vec2
API / SDK 6.3 / C++ / gfx engine
Cubios::Math::Transform
API / SDK 6.3 / C++ / gfx engine
Cubios::Math::Color
API / SDK 6.3 / C++ / gfx engine
Previous Node
Cubios::Screen
API / SDK 6.3 / C++ / gfx engine
Next Node
Cubios::SaveMessage
API / SDK 6.3 / C++ / gfx engine