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(inline 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(inline ba: Array[Byte], inline from: Int, inline sz: Int): Int
@scala.annotation.targetName("read_Opt")
inline def read_?: Byte.Opt

Byte option

Byte option

Optionally returns next short from input

If no more data, / is returned

Source
Bytes.scala
inline def readAll: Array[Byte]
inline def readAllAndClose: Array[Byte]
inline def real: java.io.InputStream

Real value

Real value

Returns real value standing behind the opaque type

Inherited from
_methods
Source
Type.scala