Class: RDF::Raptor::FFI::V2::World

Inherits:
FFI::AutoPointer
  • Object
show all
Includes:
RDF::Raptor::FFI
Defined in:
lib/rdf/raptor/ffi/v2/world.rb

Constant Summary

Constants included from RDF::Raptor::FFI

ENGINE

Class Method Summary collapse

Instance Method Summary collapse

Methods included from RDF::Raptor::FFI

#version

Constructor Details

#initializeWorld

Returns a new instance of World.



5
6
7
8
# File 'lib/rdf/raptor/ffi/v2/world.rb', line 5

def initialize()
  ptr = V2.raptor_new_world_internal(V2.raptor_version_decimal)
  super(ptr, self.class.method(:release))
end

Class Method Details

.release(ptr)

This method returns an undefined value.

Releases libraptor memory associated with this structure.

Parameters:

  • ptr (FFI::Pointer)


15
16
17
# File 'lib/rdf/raptor/ffi/v2/world.rb', line 15

def self.release(ptr)
  V2.raptor_free_world(ptr)
end