create_serialized_item_ptrCreateSerializedItemPtrCreateSerializedItemPtrcreate_serialized_item_ptrT_create_serialized_item_ptr
説明
create_serialized_item_ptrCreateSerializedItemPtrCreateSerializedItemPtrcreate_serialized_item_ptrT_create_serialized_item_ptr — シリアライズされたデータを作成する。
警告
HDevelop内でcreate_serialized_item_ptrCreateSerializedItemPtrを使用することは
推奨しません。
書式
create_serialized_item_ptr( pointer Pointer, integer Size, string Copy, out serialized_item SerializedItemHandle )void CreateSerializedItemPtr( const HTuple& Pointer, const HTuple& Size, const HTuple& Copy, HTuple* SerializedItemHandle )static void HOperatorSet.CreateSerializedItemPtr( HTuple pointer, HTuple size, HTuple copy, out HTuple serializedItemHandle )def create_serialized_item_ptr( pointer: int, size: int, copy: str ) -> HHandle
Herror T_create_serialized_item_ptr( const Htuple Pointer, const Htuple Size, const Htuple Copy, Htuple* SerializedItemHandle )
void HSerializedItem::HSerializedItem( void* Pointer, Hlong Size, const HString& Copy )
void HSerializedItem::HSerializedItem( void* Pointer, Hlong Size, const char* Copy )
void HSerializedItem::HSerializedItem( void* Pointer, Hlong Size, const wchar_t* Copy ) (Windows only)
public HSerializedItem( IntPtr pointer, int size, string copy )
void HSerializedItem::CreateSerializedItemPtr( void* Pointer, Hlong Size, const HString& Copy )
void HSerializedItem::CreateSerializedItemPtr( void* Pointer, Hlong Size, const char* Copy )
void HSerializedItem::CreateSerializedItemPtr( void* Pointer, Hlong Size, const wchar_t* Copy ) (Windows only)
void HSerializedItem.CreateSerializedItemPtr( IntPtr pointer, int size, string copy )
説明
create_serialized_item_ptrCreateSerializedItemPtr は、シリアライズされたデータを
作成し、そのハンドル SerializedItemHandleserializedItemHandleserialized_item_handle を返します
(シリアライズの基本については fwrite_serialized_itemFwriteSerializedItem
を参照)。データポインター(シリアライズされたデータの先頭)は、
パラメーター Pointerpointerpointer に渡されます。
シリアライズされたデータのサイズ(バイト単位)は、パラメーター
Sizesizesize で渡されます。このオペレーターの動作は、
パラメーター Copycopycopy によって制御されます。
Copycopycopy が 'true'"true" の場合は、新しくシリアライズ
されたデータが作成され、既存のシリアライズされたデータの値が
コピーされます。Copycopycopy が 'false'"false" の場合は、
入力されたシリアライズされたデータのポインターのみが格納され、
実際のデータはコピーされないので、実行時間の短縮につながります。
注意
パラメーターCopycopycopy が 'false'"false" に設定された場合は、
新しくシリアライズされたデータの使用中に、シリアライズされた元データの
ポインターを削除してはなりません。
実行情報
実行情報
このオペレータはハンドルを返します。このハンドルタイプのインスタンスの状態は、特定のオペレータにおいては、入力パラメータとして使われている場合であっても変更されることがあります。
パラメーター
Pointerpointerpointer (input_control) pointer → (integer)HTuple (Hlong)HTuple (IntPtr)intHtuple (Hlong)
シリアライズされたデータのポインター
Sizesizesize (input_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)
シリアライズされたデータのサイズ
Copycopycopy (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)
シリアライズされたデータのコピーモード
初期値: 'true'"true"
値のリスト: 'false', 'true'"false", "true"
SerializedItemHandleserializedItemHandleserialized_item_handle (output_control) serialized_item → (handle)HTuple (HHandle)HSerializedItem, HTuple (IntPtr)HHandleHtuple (handle)
シリアライズされたデータのハンドル
結果
パラメーターが有効ならば、オペレーター
create_serialized_item_ptrCreateSerializedItemPtr は、値 2 (H_MSG_TRUE) を返します。
必要に応じて、例外が発生します。
他のオペレーターとの組み合わせ
組み合わせ
後処理の候補
get_serialized_item_ptrGetSerializedItemPtr
モジュール
Foundation