ByteWriter

trait ByteWriter[ByteStream]

Helper methods to write binary data to an output stream.

Companion:
object
class Object
trait Matchable
class Any
object IteratorByteWriter.type

Type members

Types

type ByteStreamState[E] = State[ByteStream, E, Unit]

Value members

Abstract methods

def append(stream: ByteStream): ByteStreamState[Nothing]

Appends this byte stream to the current accumulator

Appends this byte stream to the current accumulator

def toOutputStream[E](data: ByteStreamState[E], os: OutputStream): Either[E, Unit]

Writes a ByteStream to a output stream

Writes a ByteStream to a output stream

Adds a sequence of bytes to the tail of the byte stream

Adds a sequence of bytes to the tail of the byte stream

Concrete methods

Empty state

Empty state

Writes a Integer in N Bytes (Big Endian)

Writes a Integer in N Bytes (Big Endian)

Write 1 Byte

Write 1 Byte

Writes a Integer in N Bytes (Little Endian)

Writes a Integer in N Bytes (Little Endian)

Writes a String

Writes a String

def writeStringLn(string: String, delimiter: String): ByteStreamState[String]

Writes a String Line

Writes a String Line