Operations

object Operations
class Object
trait Matchable
class Any

Value members

Concrete methods

def format[T](implicit fm: Format[T]): Format[T]
def fromByteArray[T](array: Array[Byte])(implicit bin: Reads[T]): T

Read a value from the byte array. Anything past the end of the value will be ignored.

Read a value from the byte array. Anything past the end of the value will be ignored.

def fromFile[T](file: File)(implicit bin: Reads[T]): T

Convenience method for reading binary data from a file.

Convenience method for reading binary data from a file.

def read[T](in: Input)(implicit reader: Reads[T]): T
def toByteArray[T](t: T)(implicit bin: Writes[T]): Array[Byte]

Get the serialized value of this class as a byte array.

Get the serialized value of this class as a byte array.

def toFile[T](t: T)(file: File)(implicit bin: Writes[T]): Unit

Convenience method for writing binary data to a file.

Convenience method for writing binary data to a file.

def write[T](out: Output, value: T)(implicit writer: Writes[T]): Unit