Sha256: 7407ddcdf620dcd6d9e4ce8f65e287e782a908ee5ba609718468b5dbef944c12

Contents?: true

Size: 309 Bytes

Versions: 69

Compression:

Stored size: 309 Bytes

Contents

module Nokogiri
  module LibXML # :nodoc:
    #
    #  this class only exists to create a xmlFree() finalizer
    #
    class XmlAlloc < FFI::ManagedStruct # :nodoc:

      layout :dummy, :int, 0 # to avoid @layout warnings

      def self.release ptr
        LibXML.xmlFree(ptr)
      end

    end
  end
end

Version data entries

69 entries across 69 versions & 10 rubygems

Version Path
nokogiri-1.3.2 lib/nokogiri/ffi/structs/xml_alloc.rb
nokogiri-1.3.3 lib/nokogiri/ffi/structs/xml_alloc.rb
nokogiri-1.3.0-java lib/nokogiri/ffi/structs/xml_alloc.rb
nokogiri-1.3.0 lib/nokogiri/ffi/structs/xml_alloc.rb
nokogiri-1.3.0-x86-mswin32 lib/nokogiri/ffi/structs/xml_alloc.rb
nokogiri-1.3.1-x86-mingw32 lib/nokogiri/ffi/structs/xml_alloc.rb
nokogiri-1.3.1-java lib/nokogiri/ffi/structs/xml_alloc.rb
nokogiri-1.3.1 lib/nokogiri/ffi/structs/xml_alloc.rb
nokogiri-1.3.1-x86-mswin32 lib/nokogiri/ffi/structs/xml_alloc.rb