We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b82b81 commit a53bc43Copy full SHA for a53bc43
reference/ffi/ffi/cast.xml
@@ -18,10 +18,10 @@
18
<para>
19
<methodname>FFI::cast</methodname> は、同じ C のデータ構造を参照するが別の型が紐付けられた
20
<classname>FFI\CData</classname> オブジェクトを新しく作成します。
21
- !!!
22
- The resulting object does not own the C data, and the source <parameter>ptr</parameter>
23
- must survive the result. The C type may be specified as a <type>string</type> with any
24
- valid C type declaration or as <classname>FFI\CType</classname> object, created before.
+ 返却されるオブジェクトはその C のデータを所有しません。元の <parameter>ptr</parameter> は
+ その返り値よりも長く生存する必要があります。
+ C の型は、有効な C の型宣言を表す <type>string</type> として指定するか、
+ 以前作成した <classname>FFI\CType</classname> オブジェクトとして指定します。
25
このインスタンスで宣言された任意の型が使えます。
26
</para>
27
</refsect1>
0 commit comments