#include <DataOutputStream.H>
所有成员的列表。
公有成员 |
| DataOutputStream (OutputStream *os) |
virtual | ~DataOutputStream () |
virtual int64 | Write (const void *buf, int64 size) |
virtual int64 | Seek (int64 offset, SeekOrigin so=soBegin) |
| STREAM_WRITE (char, Char) |
| STREAM_WRITE (bool, Bool) |
| STREAM_WRITE (int8, Int8) |
| STREAM_WRITE (uint8, Uint8) |
virtual bool | WriteInt16 (const int16 &value)=0 |
virtual bool | WriteInt32 (const int32 &value)=0 |
virtual bool | WriteInt64 (const int64 &value)=0 |
virtual bool | WriteUint16 (const uint16 &value)=0 |
virtual bool | WriteUint32 (const uint32 &value)=0 |
virtual bool | WriteUint64 (const uint64 &value)=0 |
virtual bool | WriteWideChar (const wchar_t &value)=0 |
virtual bool | WriteFloat (const float &value)=0 |
virtual bool | WriteDouble (const double &value)=0 |
template<typename T > |
bool | Write (const T &data) |
template<typename T > |
int64 | WriteArrays (const T *data, int64 count) |
virtual bool | WriteChars (const char *str, int64 count) |
virtual bool | WriteUTF16LEChars (const wchar_t *, int64) |
| 按utf16-le格式写入wchar_t *中的字符阵列
|
virtual bool | WriteUTF16BEChars (const wchar_t *, int64) |
| 按utf16-be格式写入wchar_t *中的字符阵列
|
virtual bool | WriteUTF16LEChars (const WideString &str) |
virtual bool | WriteUTF16BEChars (const WideString &str) |
virtual bool | WriteUTF8String (const WideString &) |
| 按utf8格式写入字符串
|
virtual bool | WriteUTF16LEString (const WideString &) |
| 按utf16-le格式写入字符串
|
virtual bool | WriteUTF16BEString (const WideString &) |
| 按utf16-be格式写入字符串
|
保护成员 |
template<int , char T> |
bool | WriteUTF16Chars (const wchar_t *wide_str, int64 count) |
保护属性 |
OutputStream * | out |
详细描述
构造及析构函数文档
hgl::io::DataOutputStream::DataOutputStream |
( |
OutputStream * |
os | ) |
[inline] |
virtual hgl::io::DataOutputStream::~DataOutputStream |
( |
| ) |
[inline, virtual] |
成员函数文档
virtual int64 hgl::io::DataOutputStream::Seek |
( |
int64 |
offset, |
|
|
SeekOrigin |
so = soBegin |
|
) |
| [inline, virtual] |
hgl::io::DataOutputStream::STREAM_WRITE |
( |
char |
, |
|
|
Char |
|
|
) |
| |
hgl::io::DataOutputStream::STREAM_WRITE |
( |
bool |
, |
|
|
Bool |
|
|
) |
| |
hgl::io::DataOutputStream::STREAM_WRITE |
( |
int8 |
, |
|
|
Int8 |
|
|
) |
| |
hgl::io::DataOutputStream::STREAM_WRITE |
( |
uint8 |
, |
|
|
Uint8 |
|
|
) |
| |
template<typename T >
bool hgl::io::DataOutputStream::Write |
( |
const T & |
data | ) |
[inline] |
自适应类型数据写入 请在多平台混用的情况下不要使用此函数,以免造成不同平台数据实质结构不一致的情况
virtual int64 hgl::io::DataOutputStream::Write |
( |
const void * |
buf, |
|
|
int64 |
size |
|
) |
| [inline, virtual] |
template<typename T >
int64 hgl::io::DataOutputStream::WriteArrays |
( |
const T * |
data, |
|
|
int64 |
count |
|
) |
| [inline] |
自适应类型数据阵列写入 请在多平台混用的情况下不要使用此函数,以免造成不同平台数据实质结构不一致的情况
- 参数:
-
- 返回:
- 实质写入的数据个数
-
-1 出错
virtual bool hgl::io::DataOutputStream::WriteChars |
( |
const char * |
str, |
|
|
int64 |
count |
|
) |
| [inline, virtual] |
virtual bool hgl::io::DataOutputStream::WriteDouble |
( |
const double & |
value | ) |
[pure virtual] |
virtual bool hgl::io::DataOutputStream::WriteFloat |
( |
const float & |
value | ) |
[pure virtual] |
virtual bool hgl::io::DataOutputStream::WriteInt16 |
( |
const int16 & |
value | ) |
[pure virtual] |
virtual bool hgl::io::DataOutputStream::WriteInt32 |
( |
const int32 & |
value | ) |
[pure virtual] |
virtual bool hgl::io::DataOutputStream::WriteInt64 |
( |
const int64 & |
value | ) |
[pure virtual] |
virtual bool hgl::io::DataOutputStream::WriteUint16 |
( |
const uint16 & |
value | ) |
[pure virtual] |
virtual bool hgl::io::DataOutputStream::WriteUint32 |
( |
const uint32 & |
value | ) |
[pure virtual] |
virtual bool hgl::io::DataOutputStream::WriteUint64 |
( |
const uint64 & |
value | ) |
[pure virtual] |
bool hgl::io::DataOutputStream::WriteUTF16BEChars |
( |
const wchar_t * |
str, |
|
|
int64 |
length |
|
) |
| [virtual] |
按utf16-be格式写入wchar_t *中的字符阵列
virtual bool hgl::io::DataOutputStream::WriteUTF16BEChars |
( |
const WideString & |
str | ) |
[inline, virtual] |
bool hgl::io::DataOutputStream::WriteUTF16BEString |
( |
const WideString & |
str | ) |
[virtual] |
bool hgl::io::DataOutputStream::WriteUTF16Chars< 2, HGL_ENDIAN > |
( |
const wchar_t * |
wide_str, |
|
|
int64 |
count |
|
) |
| [protected] |
virtual bool hgl::io::DataOutputStream::WriteUTF16LEChars |
( |
const WideString & |
str | ) |
[inline, virtual] |
bool hgl::io::DataOutputStream::WriteUTF16LEChars |
( |
const wchar_t * |
str, |
|
|
int64 |
length |
|
) |
| [virtual] |
按utf16-le格式写入wchar_t *中的字符阵列
bool hgl::io::DataOutputStream::WriteUTF16LEString |
( |
const WideString & |
str | ) |
[virtual] |
bool hgl::io::DataOutputStream::WriteUTF8String |
( |
const WideString & |
str | ) |
[virtual] |
virtual bool hgl::io::DataOutputStream::WriteWideChar |
( |
const wchar_t & |
value | ) |
[pure virtual] |
成员数据文档
该类的文档由以下文件生成: