ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Common::SeekableMemoryWriteStream Class Reference

MemoryWriteStream subclass with ability to set stream position indicator. More...

#include <memstream.h>

Inheritance diagram for Common::SeekableMemoryWriteStream:
Collaboration diagram for Common::SeekableMemoryWriteStream:

List of all members.

Public Member Functions

 SeekableMemoryWriteStream (byte *buf, uint32 len)
virtual bool seek (int32 offset, int whence=SEEK_SET) override
 Sets the stream position indicator for the stream.

Private Attributes

byte_ptrOrig

Detailed Description

MemoryWriteStream subclass with ability to set stream position indicator.

Definition at line 126 of file memstream.h.


Constructor & Destructor Documentation

Common::SeekableMemoryWriteStream::SeekableMemoryWriteStream ( byte buf,
uint32  len 
) [inline]

Definition at line 130 of file memstream.h.


Member Function Documentation

virtual bool Common::SeekableMemoryWriteStream::seek ( int32  offset,
int  whence = SEEK_SET 
) [inline, override, virtual]

Sets the stream position indicator for the stream.

The new position, measured in bytes, is obtained by adding offset bytes to the position specified by whence. If whence is set to SEEK_SET, SEEK_CUR, or SEEK_END, the offset is relative to the start of the file, the current position indicator, or end-of-file, respectively. A successful call to the seek() method clears the end-of-file indicator for the stream.

Note:
The semantics of any implementation of this method are supposed to match those of ISO C fseek().
Parameters:
offset the relative offset in bytes
whence the seek reference: SEEK_SET, SEEK_CUR, or SEEK_END
Returns:
true on success, false in case of a failure

Reimplemented from Common::MemoryWriteStream.

Definition at line 132 of file memstream.h.


Member Data Documentation

Definition at line 128 of file memstream.h.


The documentation for this class was generated from the following file:


Generated on Sat Sep 14 2019 05:04:04 for ResidualVM by doxygen 1.7.1
curved edge   curved edge