J.Input.Bytes

opaque type Bytes

J.Input.Bytes is an opaque value, backed by java.io.InputStream

Source
Bytes.scala

Def

inline def read: Int

Byte

Byte

Reads the next short from input as Int in range 0 <>> 256

Returns -1 if no more data

Source
Bytes.scala
inline def read(ba: Array[Byte]): Int

To array

To array

Reads input byte to given Array

Value Params
range

Array range to use. By default the full array is used

Returns

the total number of byte read into the array, or -1 if there is no more data

Source
Bytes.scala
inline def read(ba: Array[Byte], from: Int, sz: Int): Int
inline def readAll: Array[Byte]
inline def readAllAndClose: Array[Byte]
inline def readOpt: Byte.Opt

Byte option

Byte option

Optionally returns next short from input

If no more data, VOID is returned

Source
Bytes.scala
inline def real: java.io.InputStream

Real value

Real value

Returns real value standing behind the opaque type.

This is a zero cost call.

Inherited from
_methods
Source
Base.scala