ToUnitProvider

object ToUnitProvider extends ToTypeProvider[Unit] with Output

Simple NOP output that doesn't actually write anything and always produces Unit. Useful for running an encoding purely for its side effects, e.g. logging or validation.

trait Output
trait ToTypeProvider[Unit]
class Object
trait Matchable
class Any

Type members

Types

type Out = ToUnitProvider.type
type Result = Unit
type Self = ToUnitProvider.type

Value members

Concrete methods

def apply(bufferSize: Int, allowBufferCaching: Boolean): Out
def result(): Unit
def writeByte(byte: Byte): Self
def writeBytes(a: Byte, b: Byte): Self
def writeBytes(a: Byte, b: Byte, c: Byte): Self
def writeBytes(a: Byte, b: Byte, c: Byte, d: Byte): Self
def writeBytes[Bytes : ByteAccess](bytes: Bytes): Self

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