class Ronin::Support::Binary::Stream

Represents a binary stream of data.

## Examples

Creates a binary stream around a file:

stream = Stream.open('path/to/file.bin')
stream.read_uint32
# => 1234

Creates a binary stream around a socket:

socket = TCPSocket.new('example.com',1337)
stream = Stream.new(socket)
stream.read_uint32
# => 1234
stream.write_uint32(0xffffffff)

@api public

@since 1.0.0