Read a byte directly from the underlying stream, without

considering any eventual buffer

Property definitions

core $ Reader :: raw_read_byte
	# 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

core $ BytesReader :: raw_read_byte
	redef fun raw_read_byte
	do
		if cursor >= bytes.length then return -1

		var c = bytes[cursor]
		cursor += 1
		return c.to_i
	end
lib/core/stream.nit:712,2--719,4

core $ ProcessReader :: raw_read_byte
	redef fun raw_read_byte do return stream_in.read_byte
lib/core/exec.nit:352,2--54

core $ ReaderProtocol :: raw_read_byte
	redef fun raw_read_byte do
		return origin.read_byte
	end
lib/core/protocol.nit:31,2--33,4

socket $ TCPStream :: raw_read_byte
	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

websocket $ WebsocketConnection :: raw_read_byte
	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