|
byte[] | Serialize< T > (T tObj) |
| Serializes the specified object to a byte array.
|
|
void | Serialize< T > (Stream stream, T tObj) |
|
T | Deserialize< T > (Stream stream) |
|
T | Deserialize< T > (byte[] data) |
| Deserializes an object of the specified type from a byte array.
|
|
bool | TryParse< T > (Stream stream, out T tValue) |
|
bool | TryParse< T > (byte[] data, out T tValue) |
| Tries to parse and deserialize an object of the specified type from a byte array.
|
|
void | Serialize< T > (System.IO.Stream stream, T tObj) |
| Serializes the specified object and writes the binary data to a stream.
|
|
T | Deserialize< T > (System.IO.Stream stream) |
| Deserializes an object of the specified type from a stream.
|
|
bool | TryParse< T > (System.IO.Stream stream, out T tValue) |
| Tries to parse and deserialize an object of the specified type from a stream.
|
|
◆ Deserialize< T >()
T XmobiTea.Binary.SimplePack.BinaryConverter.Deserialize< T > |
( |
byte[] | data | ) |
|
Deserializes an object of the specified type from a byte array.
- Template Parameters
-
T | The type of the object to deserialize. |
- Parameters
-
data | The byte array containing the serialized object. |
- Returns
- The deserialized object of type T .
Implements XmobiTea.Binary.IBinaryConverter.
◆ Serialize< T >()
byte[] XmobiTea.Binary.SimplePack.BinaryConverter.Serialize< T > |
( |
T | tObj | ) |
|
Serializes the specified object to a byte array.
- Template Parameters
-
T | The type of the object to serialize. |
- Parameters
-
tObj | The object to serialize. |
- Returns
- A byte array representing the serialized object.
Implements XmobiTea.Binary.IBinaryConverter.
◆ TryParse< T >()
bool XmobiTea.Binary.SimplePack.BinaryConverter.TryParse< T > |
( |
byte[] | data, |
|
|
out T | tValue ) |
Tries to parse and deserialize an object of the specified type from a byte array.
- Template Parameters
-
T | The type of the object to deserialize. |
- Parameters
-
data | The byte array containing the serialized object. |
tValue | When this method returns, contains the deserialized object of type T if the parsing succeeded, or the default value of T if the parsing failed. |
- Returns
true
if the parsing succeeded; otherwise, false
.
Implements XmobiTea.Binary.IBinaryConverter.
The documentation for this class was generated from the following file:
- XmobiTea.Binary.SimplePack/BinaryConverter.cs