Output

Companion:
class
class Object
trait Matchable
class Any
Output.type

Type members

Classlikes

final implicit class OutputOps(val underlying: Output) extends AnyVal

Responsible for providing an Output that produces instances of T.

Responsible for providing an Output that produces instances of T.

Responsible for providing an Output that outputs into the given value T.

Responsible for providing an Output that outputs into the given value T.

Inherited classlikes

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

Default, mutable implementation for serializing to plain byte arrays.

Default, mutable implementation for serializing to plain byte arrays.

Inherited from:
ToByteArrayOutput
object ToByteArrayProvider extends ToTypeProvider[Array[Byte]]
Inherited from:
ToByteArrayOutput
final class ToByteBuffer(bufferSize: Int, allowBufferCaching: Boolean) extends Output

Default, mutable implementation for serializing to java.nio.ByteBuffer instances.

Default, mutable implementation for serializing to java.nio.ByteBuffer instances.

Inherited from:
ToByteBufferOutput
object ToByteBufferProvider extends ToTypeProvider[ByteBuffer]
Inherited from:
ToByteBufferOutput
final class ToFile(file: File, bufferSize: Int) extends ToOutputStreamBase

Default, mutable implementation for serializing to a given File.

Default, mutable implementation for serializing to a given File.

Inherited from:
ToFileOutput
object ToFileProvider extends ToValueProvider[File]
Inherited from:
ToFileOutput
final class ToOutputStream(outputStream: OutputStream) extends ToOutputStreamBase

Default, mutable implementation for serializing to OutputStream instances.

Default, mutable implementation for serializing to OutputStream instances.

NOTE: The given OutputStream is NOT closed at the end of the encoding run!

Inherited from:
ToOutputStreamOutput
abstract class ToOutputStreamBase(val outputStream: OutputStream) extends Output
Inherited from:
ToOutputStreamOutput
object ToOutputStreamProvider extends ToValueProvider[OutputStream]
Inherited from:
ToOutputStreamOutput
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.

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.

Inherited from:
ToUnitOutput

Implicits

Implicits

final implicit def OutputOps(underlying: Output): OutputOps