class

Pylon::Wire::Reader

Inherits Reference < Object

Reads the stream until complete or first failure. When a failure occurs reading essentially becomes a no-op and doesn't touch the stream again.

Constructors

new(io : IO)
Source

Instance methods

bool
Source
byte
Source
bytes?
Source
count
Source
digest
Source
fail(reason : String) : Nil
Source
failed?
Source
fill(buffer : Bytes) : Nil
Source
framed_size(limit : Int32) : Int32 | Oversized | Nil
Source
name
Source
path
Source
reason
Source
repeat(count : UInt32, &) : Nil
Source
required_string
Source
result(value : T) : T | Problem forall T
Source
string?
Source
take(size : Int32) : Bytes
Source

Nested types