core :: Reader :: raw_read_byte
considering any eventual buffer
# Read a byte directly from the underlying stream, without
# considering any eventual buffer
protected fun raw_read_byte: Int is abstract
lib/core/stream.nit:112,2--114,45
redef fun raw_read_byte do return stream_in.read_byte
lib/core/exec.nit:352,2--54
redef fun raw_read_byte do
return origin.read_byte
end
lib/core/protocol.nit:31,2--33,4
redef fun raw_read_byte
do
var nb = _file.as(not null).io_read(write_buffer, 1)
if last_error == null and _file.as(not null).ferror then
last_error = new IOError("Cannot read `{path.as(not null)}`: {sys.errno.strerror}")
end
if nb == 0 then return -1
return write_buffer[0].to_i
end
lib/core/file.nit:126,2--134,4
redef fun raw_read_byte do
var rd = native.read(write_buffer, 1)
if rd < 1 then return -1
return write_buffer[0].to_i
end
lib/socket/socket.nit:162,2--166,4
redef fun raw_read_byte do
while not closed and frame_cursor >= frame_length do
read_frame_info
end
if closed then return -1
var b = origin.read_byte
if b >= 0 then
frame_cursor += 1
end
return b
end
lib/websocket/websocket.nit:247,2--257,4