Mercury Messaging
Documentation for the Mercury Messaging Framework
MercuryMessaging.MmMessageByteArray Class Reference

MmMessage with byte array payload More...

Inheritance diagram for MercuryMessaging.MmMessageByteArray:
MercuryMessaging.MmMessage

Public Member Functions

 MmMessageByteArray ()
 Creates a basic MmMessageByteArray More...
 
 MmMessageByteArray (MmMetadataBlock metadataBlock=null)
 Creates a basic MmMessageByteArray, with control block More...
 
 MmMessageByteArray (byte[] iVal, MmMethod mmMethod=default(MmMethod), MmMetadataBlock metadataBlock=null)
 Create an MmMessage, with control block, MmMethod, and byte array More...
 
 MmMessageByteArray (MmMessageByteArray message)
 Duplicate an MmMessage More...
 
override MmMessage Copy ()
 Message copy method More...
 
override void Deserialize (NetworkReader reader)
 Deserialize the message More...
 
override void Serialize (NetworkWriter writer)
 Serialize the MmMessage More...
 
- Public Member Functions inherited from MercuryMessaging.MmMessage
 MmMessage ()
 Creates a basic MmMessage with a default control block More...
 
 MmMessage (MmMetadataBlock metadataBlock)
 Creates a basic MmMessage with the passed control block. More...
 
 MmMessage (MmMethod mmMethod, MmMetadataBlock metadataBlock=null)
 Create an MmMessage, with defined control block and MmMethod More...
 
 MmMessage (MmMethod mmMethod, MmLevelFilter levelFilter, MmActiveFilter activeFilter, MmSelectedFilter selectedFilter, MmNetworkFilter networkFilter)
 Create an MmMessage, with filters defined directly More...
 
 MmMessage (MmMessage message)
 Duplicate an MmMessage More...
 
override void Deserialize (NetworkReader reader)
 Deserialize the MmMessage More...
 
override void Serialize (NetworkWriter writer)
 Serialize the MmMessage More...
 

Public Attributes

byte [] byteArr
 Byte array payload More...
 
int length
 Length of array More...
 
- Public Attributes inherited from MercuryMessaging.MmMessage
MmMethod MmMethod
 The MmMethod invoked by the calling object. More...
 
MmMetadataBlock MetadataBlock
 Control parameters designating how a message should traverse an MercuryMessaging Hierarchy. More...
 
uint NetId
 Network identifier of sender/recipient objects. More...
 
bool root = true
 Deprecated - remove in next version More...
 
string TimeStamp
 Message timestamp, assists in collision avoidance More...
 

Additional Inherited Members

- Properties inherited from MercuryMessaging.MmMessage
bool IsDeserialized [get]
 Utilized by Mercury serialization/deserialization systems. More...
 

Detailed Description

MmMessage with byte array payload

Constructor & Destructor Documentation

◆ MmMessageByteArray() [1/4]

MercuryMessaging.MmMessageByteArray.MmMessageByteArray ( )

Creates a basic MmMessageByteArray

◆ MmMessageByteArray() [2/4]

MercuryMessaging.MmMessageByteArray.MmMessageByteArray ( MmMetadataBlock  metadataBlock = null)

Creates a basic MmMessageByteArray, with control block

Parameters
metadataBlockObject defining the routing of messages

◆ MmMessageByteArray() [3/4]

MercuryMessaging.MmMessageByteArray.MmMessageByteArray ( byte []  iVal,
MmMethod  mmMethod = default(MmMethod),
MmMetadataBlock  metadataBlock = null 
)

Create an MmMessage, with control block, MmMethod, and byte array

Parameters
iValByte array payload
mmMethodIdentifier of target MmMethod
metadataBlockObject defining the routing of messages

◆ MmMessageByteArray() [4/4]

MercuryMessaging.MmMessageByteArray.MmMessageByteArray ( MmMessageByteArray  message)

Duplicate an MmMessage

Parameters
messageItem to duplicate

Member Function Documentation

◆ Copy()

override MmMessage MercuryMessaging.MmMessageByteArray.Copy ( )
virtual

Message copy method

Returns
Duplicate of MmMessage

Reimplemented from MercuryMessaging.MmMessage.

◆ Deserialize()

override void MercuryMessaging.MmMessageByteArray.Deserialize ( NetworkReader  reader)

Deserialize the message

Parameters
readerUNET based deserializer object

◆ Serialize()

override void MercuryMessaging.MmMessageByteArray.Serialize ( NetworkWriter  writer)

Serialize the MmMessage

Parameters
writerUNET based serializer

Member Data Documentation

◆ byteArr

byte [] MercuryMessaging.MmMessageByteArray.byteArr

Byte array payload

◆ length

int MercuryMessaging.MmMessageByteArray.length

Length of array


The documentation for this class was generated from the following file: