◆ ByteArraysToString()
static string Org.Apache.REEF.Utilities.ByteUtilities.ByteArraysToString |
( |
byte [] |
b | ) |
|
|
inlinestatic |
Converts from a UTF-8 encoded byte array to a string.
◆ CopyBytesFrom()
static byte [] Org.Apache.REEF.Utilities.ByteUtilities.CopyBytesFrom |
( |
byte [] |
from | ) |
|
|
inlinestatic |
Performs a deep copy of a byte array.
◆ DeserializeFromBinaryFormat()
static object Org.Apache.REEF.Utilities.ByteUtilities.DeserializeFromBinaryFormat |
( |
byte [] |
bytes | ) |
|
|
inlinestatic |
Deserializes object from a byte array with a BinaryFormatter.
- Exceptions
-
SerializationException | When deserialization fails. |
◆ IsNullOrEmpty()
static bool Org.Apache.REEF.Utilities.ByteUtilities.IsNullOrEmpty |
( |
byte [] |
bytes | ) |
|
|
inlinestatic |
Returns true if the byte array is null or empty.
◆ SerializeToBinaryFormat()
static byte [] Org.Apache.REEF.Utilities.ByteUtilities.SerializeToBinaryFormat |
( |
object |
obj | ) |
|
|
inlinestatic |
Serializes object to a byte array with a BinaryFormatter.
- Exceptions
-
SerializationException | When serialization fails. |
◆ StringToByteArrays()
static byte [] Org.Apache.REEF.Utilities.ByteUtilities.StringToByteArrays |
( |
string |
s | ) |
|
|
inlinestatic |
Converts a string to a UTF-8 encoded byte array.
The documentation for this class was generated from the following file: