46 if ((bom != 0xFFFE) && (bom != 0xFEFF))
53 const size_t begin = stream.
pos();
54 const size_t end = stream.
size();
64 const size_t begin = nitroStream->pos();
65 const size_t end = nitroStream->size();
This is a wrapper around SeekableSubReadStream, but it adds non-endian read methods whose endianness ...
PointerType release()
Returns the plain pointer value and releases ScopedPtr.
static bool isBigEndian(Common::SeekableReadStream &stream)
A simple scoped smart pointer template.
uint16 readUint16BE()
Read an unsigned 16-bit word stored in big endian (MSB first) order from the stream and return it...
virtual size_t skip(ptrdiff_t offset)
Skip the specified number of bytes, adding that offset to the current position in the stream...
Low-level type definitions to handle fixed width types portably.
virtual size_t size() const =0
Obtains the total size of the stream, measured in bytes.
Basic reading stream interfaces.
virtual size_t pos() const =0
Obtains the current value of the stream position indicator of the stream.
Base class for Nitro (Nintendo DS) files.
static Common::SeekableSubReadStreamEndian * open(Common::SeekableReadStream &stream)
Treat this stream as a Nitro file and return an endian'd stream according to its BOM.
Interface for a seekable & readable data stream.