![]() |
CMGDK r49-rc2
|
小块流 更多...
#include <PartStream.H>
公有成员 | |
PartStream (Stream *, int64, int64, bool=true) | |
~PartStream () | |
保护成员 | |
int64 | GetPosition () |
void | SetPosition (int64) |
int64 | GetSize () |
void | SetSize (int64) |
bool | GetCanSeek () |
bool | GetCanRead () |
bool | GetCanWrite () |
int64 | _Read (void *, int64) |
int64 | _Write (const void *, int64) |
小块流
PartStream是指定访问某个流中的某一部分,它从Stream派生
hgl::PartStream::PartStream | ( | Stream * | big_stream, |
int64 | start, | ||
int64 | size, | ||
bool | _only_read = true |
||
) |
文件块流,将一个大流的某一块映射成一个小的流在操作
big_stream | 大数据的流 |
start | 起始字节 |
size | 小流长度 |
_only_read | 只读 |
hgl::PartStream::~PartStream | ( | ) | [inline] |
bool hgl::PartStream::GetCanRead | ( | ) | [inline, protected, virtual] |
实现了hgl::Stream。
bool hgl::PartStream::GetCanSeek | ( | ) | [inline, protected, virtual] |
实现了hgl::Stream。
bool hgl::PartStream::GetCanWrite | ( | ) | [inline, protected, virtual] |
实现了hgl::Stream。
int64 hgl::PartStream::GetPosition | ( | ) | [protected] |
int64 hgl::PartStream::GetSize | ( | ) | [protected] |
void hgl::PartStream::SetPosition | ( | int64 | pos | ) | [protected] |
void hgl::PartStream::SetSize | ( | int64 | ) | [protected] |