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


Detailed Description

MemoryWriteStream subclass with ability to set stream position indicator.

Definition at line 133 of file memstream.h.

Constructor & Destructor Documentation

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

Definition at line 137 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.

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

Reimplemented from Common::MemoryWriteStream.

Definition at line 139 of file memstream.h.

Member Data Documentation

Definition at line 135 of file memstream.h.

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

Generated on Sat Sep 12 2020 05:04:26 for ResidualVM by doxygen 1.7.1
curved edge   curved edge