FDO API Reference | Feature Data Objects |
#include <BufferStream.h>
Inherits FdoIoStream.
Inheritance diagram for FdoIoBufferStream:
Definition at line 27 of file BufferStream.h.
Public Member Functions | |
virtual FdoInt64 | GetIndex () |
gets the current position for the stream. | |
virtual FdoInt64 | GetLength () |
gets the current length of the stream. | |
virtual FdoSize | Read (FdoByte *buffer, FdoSize count) |
FdoIoStream implementations. | |
virtual void | Reset () |
sets the position to the start of the stream. | |
virtual void | SetLength (FdoInt64 length) |
truncates the stream to the indicated length. | |
virtual void | Skip (FdoInt64 offset) |
skips over part of the stream. | |
virtual void | Write (FdoIoStream *stream, FdoSize count=0) |
reads the number of bytes from the given stream, and writes them to this stream. | |
virtual void | Write (FdoByte *buffer, FdoSize count) |
writes the number of bytes indicated by count, from the given buffer, to the stream. The current position is moved ahead by the number of bytes written. | |
Static Public Member Functions | |
FdoIoBufferStream * | Create (FdoSize size) |
Creates a new buffer of the given size and wraps a stream around it. | |
FdoIoBufferStream * | Create (FdoByte *buffer, FdoSize size) |
Creates a stream around the given buffer. | |
Protected Member Functions | |
FdoIoBufferStream (FdoSize size=4096) | |
FdoIoBufferStream (FdoByte *buffer, FdoSize size) | |
virtual | ~FdoIoBufferStream (void) |
|
|
|
|
|
|
|
Creates a new buffer of the given size and wraps a stream around it.
|
|
Creates a stream around the given buffer.
|
|
gets the current position for the stream.
Implements FdoIoStream. Definition at line 46 of file BufferStream.h. References FdoInt64. |
|
gets the current length of the stream.
Implements FdoIoStream. Definition at line 42 of file BufferStream.h. References FdoInt64. |
|
FdoIoStream implementations.
Implements FdoIoStream. |
|
sets the position to the start of the stream.
Implements FdoIoStream. |
|
truncates the stream to the indicated length.
Implements FdoIoStream. |
|
skips over part of the stream.
Implements FdoIoStream. |
|
reads the number of bytes from the given stream, and writes them to this stream.
Implements FdoIoStream. |
|
writes the number of bytes indicated by count, from the given buffer, to the stream. The current position is moved ahead by the number of bytes written.
Implements FdoIoStream. |
Comments or suggestions? Send us feedback. |