"CSizeT" (コンパイルタイプ)
"CSizeT" (コンパイルタイプ)
"CSizeT"
C言語のsize_t型を表す.
詳細
- "CSizeT"はプラットフォーム特有の具象型で置き換えられるマクロである.ほとんどのプラットフォームでは,"CSizeT"は"UnsignedInteger64"のマクロである.
例題
例 (3)
cf = FunctionCompile[Function[Typed[arg, "CSizeT"], arg]]cf[100]size_tでC標準ライブラリ関数mallocを呼び出すプログラムをコンパイルする:
cf = FunctionCompile[Function[Typed[arg, "CSizeT"], Cast[LibraryFunction["malloc"][arg], "UnsignedInteger64", "BitCast"]]]cf[10]cf = FunctionCompile[Function[{}, Typed[12, "CSizeT"]]]cf[]関連項目
コンパイルタイプ: UnsignedInteger64 CUnsignedLong CSSizeT
テクニカルノート
履歴
2022 で導入 (13.1)