Class MessageQueueSerializer
- Namespace
- Coherence.Serializer
- Assembly
- Coherence.Serializer.dll
public static class MessageQueueSerializer
- Inheritance
-
MessageQueueSerializer
Methods
GetCountFromBudget(Queue<SerializedEntityMessage>, uint, bool)
public static (int, uint) GetCountFromBudget(Queue<SerializedEntityMessage> messages, uint maxBudget, bool useDebugStreams)
Parameters
messages
Queue<SerializedEntityMessage>maxBudget
uintuseDebugStreams
bool
Returns
SerializeQueue(MessageType, IOutBitStream, Queue<SerializedEntityMessage>, uint, bool, Logger)
Serializes messages to a bit stream up to the specified budget of bitBudget
maximum number of bits.
public static Queue<SerializedEntityMessage> SerializeQueue(MessageType messageType, IOutBitStream bitstream, Queue<SerializedEntityMessage> messages, uint bitBudget, bool useDebugStreams, Logger logger)
Parameters
messageType
MessageTypebitstream
IOutBitStreammessages
Queue<SerializedEntityMessage>bitBudget
uintuseDebugStreams
boollogger
Logger
Returns
- Queue<SerializedEntityMessage>
The number of messages serialized