2006 Copyright Filed by IT GlobalSecure, Inc. All Rights Reserved. Not to be used without authorization by Author. SecurePlay, IT GlobalSecure, and IT Armor are registered trademarks by IT GlobalSecure, Inc. Software protected by software license, and one or more the following U.S. and International patent numbers: U.S. Patent 6,030,288, U.S. Patent 6,165,072, European Patent Office EP1016049A1,and World Intellectual Property Organization WO9912135C1 and additional filings worldwide.
SecurePlayLibrary::SPUBinaryCodingClass Class Reference
#include <SPUBinaryCodingClass.h>
List of all members.
Detailed Description
This class is used to serialize and deserialize SPMessageClass objects into binary encoded messages. - Author:
- IT GlobalSecure Inc.
- See also:
- SecurePlay License Information
Member Function Documentation
|
|
This is a private method used only in multiple message deserialization method. It takes an array of SPAbstractMessageClasses and safely adds another one. - Parameters:
-
| messes | SPAbstractMessage[] - the array to which the new message will be added. |
| mess | SPMessageClass - the message class to be added. |
- Returns:
- messages - SPAbstractMessage[] - message array with the new added message.
|
| vector< string > SPUBinaryCodingClass::decodestringArr |
( |
vector< SPbyte > |
btArr, |
|
|
int |
MAXEntryLength, |
|
|
int |
MAXnumElem, |
|
|
int |
MAXarrLen |
|
) |
[static] |
|
|
|
This method deserializes a string array form byte array. - Parameters:
-
| btArr | byte[] - byte array to be deserialized. |
- Returns:
- strArr - String[] - deserialized string array.
|
| vector< SPbyte > SPUBinaryCodingClass::encodestringArr |
( |
vector< string > |
strArr, |
|
|
int |
MAXElemLength, |
|
|
int |
MAXnumElem, |
|
|
int |
MAXarrLen |
|
) |
[static] |
|
|
|
This method is used to serialize a string array into byte array. - Parameters:
-
| strArr | String[] - the string array to be seralized |
- Returns:
- strArrser - byte[] - serializedstring array.
|
| vector< SPMessageClass * > SPUBinaryCodingClass::SPdeserialize |
( |
vector< SPbyte > |
mess |
) |
[static] |
|
|
|
This method deserializes multiple messages from binary to Message ojects. - Parameters:
-
| mess | byte[] - byte array that contains the messages. |
- Returns:
- messages - SPMessageClass[] - messages that were deserialized from the byte array.
|
| vector< SPMessageClass * > SPUBinaryCodingClass::SPdeserializeDouble |
( |
vector< SPbyte > |
mess |
) |
[static] |
|
|
|
Deserializes two messages for double message. Used only to recieve relay messages. - Parameters:
-
| mess | byte[] - serialized double message. |
- Returns:
- SPMessageClass[]
|
| vector< SPbyte > SPUBinaryCodingClass::SPseralizeByteArr |
( |
vector< vector< SPbyte > * > |
SPbyteMessages |
) |
[static] |
|
|
|
This method serializes messages of byte arrays in to one big byte array. - Parameters:
-
| byteMessages | Vector - byte[] messages to be serialized. |
- Returns:
- byte[]
|
| vector< SPbyte > SPUBinaryCodingClass::SPserialize |
( |
vector< SPMessageClass * > |
messages |
) |
[static] |
|
|
|
This method takes several instances of the SPMessageClass and serializes it into byte array. - Parameters:
-
| messages | SPMessageClass[] - a message to be seriealized into byte array |
- Returns:
- mess - byte[] - the serialized byte array of all the messages.
|
| vector< SPbyte > SPUBinaryCodingClass::SPserialize |
( |
SPMessageClass * |
message |
) |
[static] |
|
|
|
Serializes two messages for double message. Used only to send relay messages. - Parameters:
-
- Returns:
- byte[]
|
| vector< SPbyte > SPUBinaryCodingClass::SPserializesingle |
( |
SPMessageClass * |
message |
) |
[static] |
|
|
|
This method takes an instance of the SPMessageClass and serializes it into a byte array. - Parameters:
-
| message | SPMessageClass - a message to be seriealized into binary array |
- Returns:
- mess - byte[] - the serialized byte array of the message
|
| SPMessageClass * SPUBinaryCodingClass::SPsingledeserialize |
( |
vector< SPbyte > |
mess |
) |
[static] |
|
|
|
This method takes a single serialized message and turns it into an instance of the SPMessageClass - Parameters:
-
| mess | byte[] - serialized message object |
- Returns:
- messobj - SPMessageClass - an instance of SPMessageClass
|
Member Data Documentation
|
|
maximum message body length |
|
|
maximum message body part length |
|
|
maximum number of body parts |
|
|
maximum total messages length |
|
|
number of characters lenght allowed in a name |
|
|
maximum number of messages |
|
|
number of receivers allowed |
|
|
maximum total recievers length |
|
|
maximum length of one messages |
|
|
tags that are used to indicate wether the message contains multiple or single message |
|
|
tag used to indicate that the following two messages are doubple. |
The documentation for this class was generated from the following files:
- D:/SecurePlayLibrary/060216_SecurePlayLibrary_3_1_baseline/CPP/src/SPUBinaryCodingClass.h
- D:/SecurePlayLibrary/060216_SecurePlayLibrary_3_1_baseline/CPP/src/SPUBinaryCodingClass.cpp
2006 Copyright Filed by IT GlobalSecure, Inc. All Rights Reserved. Not to be used without authorization by Author. SecurePlay, IT GlobalSecure, and IT Armor are registered trademarks by IT GlobalSecure, Inc. Software protected by software license, and one or more the following U.S. and International patent numbers: U.S. Patent 6,030,288, U.S. Patent 6,165,072, European Patent Office EP1016049A1,and World Intellectual Property Organization WO9912135C1 and additional filings worldwide.