Binary

com.worxbend.kernel.event.Binary
See theBinary companion class
object Binary

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Binary.type

Members list

Value members

Concrete methods

def copyOf(bytes: Array[Byte]): Binary

Copies, so a later mutation of bytes cannot retroactively change a stored event.

Copies, so a later mutation of bytes cannot retroactively change a stored event.

Attributes

def from(bytes: IArray[Byte]): Binary
def fromBase64(encoded: String): Either[String, Binary]

Strict base64: Base64.getDecoder rejects trailing garbage, which is what we want for a wire format. The throw is converted here so decoding an event is never an exception at the call site.

Strict base64: Base64.getDecoder rejects trailing garbage, which is what we want for a wire format. The throw is converted here so decoding an event is never an exception at the call site.

Attributes

Concrete fields

val empty: Binary