InputStreamByteReader

class Object
trait Matchable
class Any

Type members

Inherited types

type ParseResult[T] = Either[String, (ByteSeq, T)]
Inherited from:
ByteReader
type ParseState[E, T] = State[ByteSeq, E, T]
Inherited from:
ByteReader

Value members

Concrete methods

def fromInputStream(is: InputStream): CustomInputStream

Generates a sequence of bytes from a byte stream

Generates a sequence of bytes from a byte stream

Checks if a byte sequence is empty

Checks if a byte sequence is empty

def readBytes(n: Int): ParseState[Nothing, Array[Int]]

Read N Bytes

Read N Bytes

def readRawBytes(n: Int): ParseState[Nothing, Array[Byte]]

Read N Bytes

Read N Bytes

def readWhile(p: Int => Boolean): ParseState[Nothing, List[Int]]

Reads data while a predicate is true

Reads data while a predicate is true

def skipBytes(n: Int): ParseState[Nothing, Unit]

Skip N Bytes

Skip N Bytes

Inherited methods

def readBENumber(n: Int): ParseState[Nothing, Int]

Read a Integer N Bytes (Big Endian)

Read a Integer N Bytes (Big Endian)

Inherited from:
ByteReader
def readLENumber(n: Int): ParseState[Nothing, Int]

Read a Integer N Bytes (Little Endian)

Read a Integer N Bytes (Little Endian)

Inherited from:
ByteReader
def readString(n: Int): ParseState[Nothing, String]

Read a String from N Bytes

Read a String from N Bytes

Inherited from:
ByteReader

Concrete fields

Read 1 Byte

Read 1 Byte

Inherited fields

val noop: ParseState[Nothing, Unit]

Does nothing

Does nothing

Inherited from:
ByteReader