Skip to content

Commit a53bc43

Browse files
committed
wip
1 parent 0b82b81 commit a53bc43

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

reference/ffi/ffi/cast.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
<para>
1919
<methodname>FFI::cast</methodname> は、同じ C のデータ構造を参照するが別の型が紐付けられた
2020
<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.
21+
返却されるオブジェクトはその C のデータを所有しません。元の <parameter>ptr</parameter> は
22+
その返り値よりも長く生存する必要があります。
23+
C の型は、有効な C の型宣言を表す <type>string</type> として指定するか、
24+
以前作成した <classname>FFI\CType</classname> オブジェクトとして指定します。
2525
このインスタンスで宣言された任意の型が使えます。
2626
</para>
2727
</refsect1>

0 commit comments

Comments
 (0)