#include <GStream.h>
Inheritance diagram for GMemStream:
Public Member Functions | |
GMemStream () | |
Builds an empty memory stream. | |
GMemStream (GStream *Src, int64 Start, int64 Len) | |
Builds memory from sub-stream. | |
GMemStream (void *Mem, int64 Len) | |
Builds a memory stream by copying from another memory block. | |
bool | IsOpen () |
Returns true is the connection is still open. | |
int | Close () |
int64 | GetSize () |
Gets the size of the stream. | |
int64 | GetPos () |
Gets the current position of the stream. | |
int64 | SetPos (int64 p) |
Sets the current position of the stream. | |
int | Open (char *Str, int Int) |
Opens a file and reads it all into memory. | |
int64 | SetSize (int64 Size) |
Changes the size of the memory block, keeping any common bytes. | |
int | Read (void *Buffer, int Size, int Flags=0) |
Read bytes out of the stream. | |
int | Write (void *Buffer, int Size, int Flags=0) |
Write bytes to the stream. | |
GStream * | Clone () |
Creates a dynamically allocated copy of the same type of stream. This new stream is not connected to anything. |
|
Builds memory from sub-stream.
|
|
Builds a memory stream by copying from another memory block.
|
|
Creates a dynamically allocated copy of the same type of stream. This new stream is not connected to anything.
Reimplemented from GStream. |
|
Closes the connection
Reimplemented from GStream. |
|
Gets the current position of the stream.
Reimplemented from GStream. |
|
Gets the size of the stream.
Reimplemented from GStream. |
|
Read bytes out of the stream.
Reimplemented from GStream. |
|
Sets the current position of the stream.
Reimplemented from GStream. |
|
Write bytes to the stream.
Reimplemented from GStream. |