Class: Nokogiri::LibXML::XmlSyntaxError

Inherits:
FFI::ManagedStruct
  • Object
show all
Defined in:
lib/nokogiri/ffi/structs/xml_syntax_error.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.allocateObject



21
22
23
# File 'lib/nokogiri/ffi/structs/xml_syntax_error.rb', line 21

def self.allocate
  LibXML.calloc(1, LibXML::XmlSyntaxError.size)
end

.release(ptr) ⇒ Object



25
26
27
# File 'lib/nokogiri/ffi/structs/xml_syntax_error.rb', line 25

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