OROCHI
 
Loading...
Searching...
No Matches
GxStreamWriter Class Reference

ストリーム書き込みクラス More...

#include <GxStreamWriter.h>

Collaboration diagram for GxStreamWriter:

Public Types

定義
enum class  RESULT {
  SUCCESS = 0 , ERROR_CANCELED = -1 , ERROR_ADDRESS = -2 , ERROR_SIZE = -3 ,
  ERROR_WRITE_FAILED = -4
}
 処理結果定義 More...
 

Public Member Functions

アクセサ
constexpr GxStreamgetStream (void) const
 ストリーム取得
 
GX_FORCE_INLINE u32 getCurrentPosition (void) const
 現在ストリーム位置取得
 
constexpr RESULT getResult (void) const
 詳細結果取得
 
constexpr void setEndian (GX_ENDIAN endian)
 エンディアン指定
 
constexpr GX_ENDIAN getEndian (void) const
 エンディアン取得
 

Protected Attributes

メンバ変数
GxStream_pStream
 書き込みストリーム
 
RESULT _result
 処理結果
 
GX_ENDIAN _endian
 ストリーム内エンディアン定義
 

初期化

 GxStreamWriter (void)
 ディフォルトコンストラクタ (使用禁止)
 
 GxStreamWriter (GxStream &stream, GX_ENDIAN endian=GX_ENDIAN::NATIVE)
 コンストラクタ
 
virtual ~GxStreamWriter (void)
 デストラクタ
 

操作

virtual b32 write (const void *pSrc, u32 size)
 書き込み処理
 
b32 writeS8 (s8 src)
 変数指定書き込み:符号つき 8bit整数
 
b32 writeU8 (u8 src)
 変数指定書き込み:符号なし 8bit整数
 
b32 writeS16 (s16 src)
 変数指定書き込み:符号つき 16bit整数
 
b32 writeU16 (u16 src)
 変数指定書き込み:符号なし 16bit整数
 
b32 writeS32 (s32 src)
 変数指定書き込み:符号なし 16bit整数
 
b32 writeU32 (u32 src)
 変数指定書き込み:符号なし 32bit整数
 
b32 writeS64 (s64 src)
 変数指定書き込み:符号つき 64bit整数
 
b32 writeU64 (u64 src)
 変数指定書き込み:符号なし 64bit整数
 
b32 writeS128 (s128 src)
 変数指定書き込み:符号つき 128bit整数
 
b32 writeU128 (u128 src)
 変数指定書き込み:符号なし 128bit整数
 
b32 writeB32 (b32 src)
 変数指定書き込み:ブール型
 
b32 writeF32 (f32 src)
 変数指定書き込み:単精度浮動小数
 
b32 writeF64 (f64 src)
 変数指定書き込み:倍精度浮動小数
 
b32 writeBlock (const void *pSrc, u32 size)
 ブロック書き込み
 
b32 writePlane (const void *pSrc, u32 size)
 プレーン書き込み (エンディアン考慮しない)
 
void flush (void)
 フラッシュ
 

Detailed Description

ストリーム書き込みクラス

Member Enumeration Documentation

◆ RESULT

enum class GxStreamWriter::RESULT
strong

処理結果定義

Enumerator
SUCCESS 

正常:成功

ERROR_CANCELED 

エラー:キャンセルされた

ERROR_ADDRESS 

エラー:アドレスが不正

ERROR_SIZE 

エラー:サイズが不正

ERROR_WRITE_FAILED 

エラー:書き込み失敗

Member Function Documentation

◆ write()

b32 GxStreamWriter::write ( const void * pSrc,
u32 size )
protectedvirtual

書き込み処理

Parameters
pSrc[in] 書き込み元バッファポインタ
size[in] 書き込みサイズ
Returns
成功ならtrue
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeB32()

b32 GxStreamWriter::writeB32 ( b32 src)

変数指定書き込み:ブール型

Parameters
src[in] 書き込みワーク
Returns
成功ならtrue
Here is the call graph for this function:

◆ writeBlock()

b32 GxStreamWriter::writeBlock ( const void * pSrc,
u32 size )

ブロック書き込み

Parameters
pSrc[out] 書き込み元バッファポインタ (※4byteアライメント必須)
size[in] 書き込みサイズ (※4byteアライメント必須)
Returns
成功ならtrue
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeF32()

b32 GxStreamWriter::writeF32 ( f32 src)

変数指定書き込み:単精度浮動小数

Parameters
src[in] 書き込みワーク
Returns
成功ならtrue
Here is the call graph for this function:

◆ writeF64()

b32 GxStreamWriter::writeF64 ( f64 src)

変数指定書き込み:倍精度浮動小数

Parameters
src[in] 書き込みワーク
Returns
成功ならtrue
Here is the call graph for this function:

◆ writePlane()

b32 GxStreamWriter::writePlane ( const void * pSrc,
u32 size )

プレーン書き込み (エンディアン考慮しない)

Parameters
pSrc[in] 書き込み元バッファポインタ
size[in] 書き込みサイズ
Returns
成功ならtrue
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeS128()

b32 GxStreamWriter::writeS128 ( s128 src)

変数指定書き込み:符号つき 128bit整数

Parameters
src[in] 書き込みワーク
Returns
成功ならtrue
Here is the call graph for this function:

◆ writeS16()

b32 GxStreamWriter::writeS16 ( s16 src)

変数指定書き込み:符号つき 16bit整数

Parameters
src[in] 書き込みワーク
Returns
成功ならtrue
Here is the call graph for this function:

◆ writeS32()

b32 GxStreamWriter::writeS32 ( s32 src)

変数指定書き込み:符号なし 16bit整数

Parameters
src[in] 書き込みワーク
Returns
成功ならtrue
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeS64()

b32 GxStreamWriter::writeS64 ( s64 src)

変数指定書き込み:符号つき 64bit整数

Parameters
src[in] 書き込みワーク
Returns
成功ならtrue
Here is the call graph for this function:

◆ writeS8()

b32 GxStreamWriter::writeS8 ( s8 src)

変数指定書き込み:符号つき 8bit整数

Parameters
src[in] 書き込みワーク
Returns
成功ならtrue

◆ writeU128()

b32 GxStreamWriter::writeU128 ( u128 src)

変数指定書き込み:符号なし 128bit整数

Parameters
src[in] 書き込みワーク
Returns
成功ならtrue
Here is the call graph for this function:

◆ writeU16()

b32 GxStreamWriter::writeU16 ( u16 src)

変数指定書き込み:符号なし 16bit整数

Parameters
src[in] 書き込みワーク
Returns
成功ならtrue
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeU32()

b32 GxStreamWriter::writeU32 ( u32 src)

変数指定書き込み:符号なし 32bit整数

Parameters
src[in] 書き込みワーク
Returns
成功ならtrue
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeU64()

b32 GxStreamWriter::writeU64 ( u64 src)

変数指定書き込み:符号なし 64bit整数

Parameters
src[in] 書き込みワーク
Returns
成功ならtrue
Here is the call graph for this function:

◆ writeU8()

b32 GxStreamWriter::writeU8 ( u8 src)

変数指定書き込み:符号なし 8bit整数

Parameters
src[in] 書き込みワーク
Returns
成功ならtrue
Here is the call graph for this function:
Here is the caller graph for this function:

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