Apache REEF  0.16.0
Retainable Evaluator Execution Framework
Static Public Member Functions | List of all members
Org.Apache.REEF.Utilities.ByteUtilities Class Reference

Static Public Member Functions

static byte [] StringToByteArrays (string s)
 Converts a string to a UTF-8 encoded byte array. More...
 
static bool IsNullOrEmpty (byte[] bytes)
 Returns true if the byte array is null or empty. More...
 
static string ByteArraysToString (byte[] b)
 Converts from a UTF-8 encoded byte array to a string. More...
 
static byte [] CopyBytesFrom (byte[] from)
 Performs a deep copy of a byte array. More...
 
static byte [] SerializeToBinaryFormat (object obj)
 Serializes object to a byte array with a BinaryFormatter. More...
 
static object DeserializeFromBinaryFormat (byte[] bytes)
 Deserializes object from a byte array with a BinaryFormatter. More...
 

Member Function Documentation

◆ 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
SerializationExceptionWhen 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
SerializationExceptionWhen 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: