Module: Hornetseye

Defined in:
lib/malloc_ext.rb

Overview

Namespace of the Hornetseye project.

Defined Under Namespace

Classes: Malloc

Class Method Summary collapse

Class Method Details

.Malloc(size) ⇒ Malloc

Shortcut for instantiating Malloc object

Examples:

Create malloc object

m = Malloc 4
# Malloc(4)

Parameters:

  • size (Integer)

    Number of bytes to allocate.

Returns:

  • (Malloc)

    A new Malloc object.

See Also:



237
238
239
# File 'lib/malloc_ext.rb', line 237

def Malloc( size )
  Malloc.new size
end