|
| const ResourceID & | getFileID () const |
| | Return the resource ID of the resource set file that is being decoded. More...
|
| |
| void | setFileID (const ResourceID &newFileID) |
| | Set the resource ID of the resource set file that is being decoded. More...
|
| |
| const io::BinaryFormat & | getFormat () const |
| | Return a reference to the binary format this decoder is using. More...
|
| |
| void | setFormat (const io::BinaryFormat &newFormat) |
| | Set the binary format this decoder is using. More...
|
| |
| Size | getDataSize () const |
| | Return the total size of the decoder's data source in bytes. More...
|
| |
| void | setData (const UByte *newData, Size dataSizeInBytes) |
| | Set a pointer to an external data source that should be read with this decoder. More...
|
| |
| void | pad (const UByte *&data) |
| | Pad the alignment of the specified pointer to the next aligned object boundary. More...
|
| |
| template<typename T > |
| Bool | read (T &value) |
| | Read a value of the templated type into the output value parameter and advance the pointer. More...
|
| |
| template<typename T > |
| void | readArray (T *array, Size number) |
| | Read an array of values of the templated type and advance the data pointer. More...
|
| |
| void | readReference (ResourceReferencePatcher &references, Index userType=0, Index userID=0, void *userData=((void *) 0)) |
| | Read a resource reference for the specified pointer to a concrete template resource type. More...
|
| |
| void | readOpaqueReference (ResourceReferencePatcher &references, Index userType=0, Index userID=0, void *userData=((void *) 0)) |
| | Read an opaque resource reference for the specified pointer to a concrete template resource type. More...
|
| |
| data::String | readASCIIString () |
| | Read an ASCII encoded string starting at the specified data pointer and return it and advance the pointer. More...
|
| |
| data::UTF8String | readUTF8String () |
| | Read a UTF-8 encoded string starting at the specified data pointer and return it and advance the pointer. More...
|
| |
| data::UTF16String | readUTF16String () |
| | Read a UTF-16 encoded string starting at the specified data pointer and return it and advance the pointer. More...
|
| |
| data::UTF32String | readUTF32String () |
| | Read a UTF-32 encoded string starting at the specified data pointer and return it and advance the pointer. More...
|
| |
| Bool | read (UByte *newData, Size number) |
| | Read the specified number of bytes of data into the buffer. More...
|
| |
| virtual Size | readData (UByte *buffer, Size number) |
| | Read the specified number of bytes from the stream and place them in the buffer given by a pointer. More...
|
| |
| virtual Bool | canSeek () const |
| | Return whether or not this type of stream allows seeking. More...
|
| |
| virtual Bool | canSeek (Int64 relativeOffset) const |
| | Return whether or not this stream can seek by the specified amount in bytes. More...
|
| |
| virtual Int64 | seek (Int64 relativeOffset) |
| | Move the current position in the stream by the specified relative signed offset in bytes. More...
|
| |
| virtual LargeSize | getBytesRemaining () const |
| | Return the number of bytes remaining in the stream. More...
|
| |
| virtual LargeIndex | getPosition () const |
| | Return the current byte index within the stream relative to the beginning. More...
|
| |
| Shared< DataInputStream > | duplicate () const |
| | Construct and return a copy of this resource decoder in same state as this one. More...
|
| |
| virtual | ~DataInputStream () |
| | Destroy an input stream and free all of it's resources (close it). More...
|
| |
| Size | readData (data::DataBuffer &buffer, Size numBytes) |
| | Read the specified number of bytes from the stream and place them in the specified data buffer. More...
|
| |
| data::Data | readAllData () |
| | Read as many bytes from the stream as possible and return them in a Data object. More...
|
| |
| Size | readAllData (data::DataBuffer &buffer) |
| | Read as many bytes from the stream as possible and place them in the specified data buffer. More...
|
| |
| Bool | hasBytesRemaining () const |
| | Return whether or not there are bytes remaining in the stream. More...
|
| |
A class that handles decoding of standard types from binary data.