ToByteArray

io.bullet.borer.output.ToByteArrayOutput.ToByteArray
final class ToByteArray(bufferSize: Int, allowBufferCaching: Boolean) extends Output

Default, mutable implementation for serializing to plain byte arrays.

Attributes

Graph
Supertypes
trait Output
class Object
trait Matchable
class Any

Members list

Type members

Types

type Result = Array[Byte]
type Self = ToByteArray

Value members

Concrete methods

def result(): Array[Byte]
def size: Long
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
def writeByte(byte: Byte): ToByteArray.this.type
def writeBytes(a: Byte, b: Byte): ToByteArray.this.type
def writeBytes(a: Byte, b: Byte, c: Byte): ToByteArray.this.type
def writeBytes(a: Byte, b: Byte, c: Byte, d: Byte): ToByteArray.this.type
def writeBytes[Bytes](bytes: Bytes)(implicit byteAccess: ByteAccess[Bytes]): ToByteArray.this.type

Inherited methods

def writeInt(value: Int): Self

Attributes

Inherited from:
Output
def writeLong(value: Long): Self

Attributes

Inherited from:
Output
def writeShort(value: Short): Self

Attributes

Inherited from:
Output