J.Input.Bytes

object Bytes extends Ref.Custom.Type[Bytes, InputStream]
class Ref.Custom.Type[Bytes, InputStream]
class Object
trait Matchable
class Any

Def

inline def apply(inline v: Input): Bytes
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
@targetName("read_Opt")
inline def read_?: 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]

Inherited

def info(v: Bytes): Info

Type to Info

Type to Info

Override this method to provide type standard Info implementation

Inherited from
Type
Source
Type.scala
final def isRef: Boolean
Inherited from
Type
Source
Type.scala
def isVoid(v: Bytes): Boolean

Void check

Void check

Override this method to define which instances of this type are void

By default this method always returns false

If type supports void instances, then following inmpelentation should be added in most cases:

 implicit inline def xxRequest(inline v: \/) : <type> = <return void>
Inherited from
Type
Source
Type.scala
val name: String
Inherited from
Type
Source
Type.scala
inline def real: InputStream
Inherited from
Type
Source
Type.scala
def tag(v: Bytes): String

Type to String

Type to String

Override this method to provide type standard convertion to String

Inherited from
Type
Source
Type.scala