Module: SGC::Memory::IBuffer::ClassMethods

Defined in:
lib/memory/interface/ibuffer.rb

Overview

A set of methods automatically extended by the classes which include IBuffer.

Instance Method Summary collapse

Instance Method Details

#element_size(type) ⇒ Integer

Returns The size of an element of type.

Parameters:

  • type (Symbol)

    A symbol corresponds to a supported C data type, e.g. :int, :long, :float.

Returns:

  • (Integer)

    The size of an element of type.

Raises:

  • (NotImplementedError)


52
# File 'lib/memory/interface/ibuffer.rb', line 52

def element_size(type); raise NotImplementedError; end