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

instance method DL::Importable::Struct#malloc

malloc(size = nil)

[TODO]

sizeバイトの領域を確保してDL::PtrDataオブジェクトを生成し、その DL::PtrDataオブジェクトを保持するMemoryオブジェクトを返します。

class DL::Importable::Struct