ToByteArray

final class ToByteArray(bufferSize: Int, allowBufferCaching: Boolean) extends Output

Default, mutable implementation for serializing to plain byte arrays.

trait Output
class Object
trait Matchable
class Any

Type members

Types

type Result = Array[Byte]

Value members

Concrete methods

def result(): Array[Byte]
@inline
def size: Long
override def toString: String
Definition Classes
Any
def writeByte(byte: Byte): ToByteArray
def writeBytes(a: Byte, b: Byte): ToByteArray
def writeBytes(a: Byte, b: Byte, c: Byte): ToByteArray
def writeBytes(a: Byte, b: Byte, c: Byte, d: Byte): ToByteArray
def writeBytes[Bytes](bytes: Bytes)(implicit byteAccess: ByteAccess[Bytes]): ToByteArray

Inherited methods

def writeInt(value: Int): Self
Inherited from:
Output
def writeLong(value: Long): Self
Inherited from:
Output
def writeShort(value: Short): Self
Inherited from:
Output