#include <Stream.hh>
A stream of data, abstracted to allow for continuous seeking.
Public Member Functions | |
virtual void | read (void *output, u32 size)=0 |
virtual void | write (void *input, u32 size)=0 |
virtual bool | eof () const =0 |
virtual bool | safe (u32 size) const =0 |
virtual bool | bad () const =0 |
void | skip (u32 count) |
void | jump (u32 index) |
void | setEndian (std::endian endian) |
u32 | index () const |
u8 | read_u8 () |
u16 | read_u16 () |
u32 | read_u32 () |
u64 | read_u64 () |
s8 | read_s8 () |
s16 | read_s16 () |
s32 | read_s32 () |
s64 | read_s64 () |
f32 | read_f32 () |
f64 | read_f64 () |
Protected Attributes | |
std::endian | m_endian |
u32 | m_index |
Private Member Functions | |
template<ParseableType T> | |
T | read () |
|
inlinenodiscardprivate |