Table of Contents

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 uint
useDebugStreams bool

Returns

(int, uint)

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 MessageType
bitstream IOutBitStream
messages Queue<SerializedEntityMessage>
bitBudget uint
useDebugStreams bool
logger Logger

Returns

Queue<SerializedEntityMessage>

The number of messages serialized