Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > dlライブラリ > DL::PtrDataクラス > malloc

singleton method DL::PtrData.malloc

malloc(size, free = nil) -> DL::PtrData

[TODO]

サイズが size であるメモリ領域を確保し、それを指す DL::PtrData を返します。

[PARAM] size:
確保したいメモリ領域のサイズを指定します。
[PARAM] free:
返り値にセットされる free 関数を DL::Symbol で指定します。
class DL::PtrData