Method: Nokogiri::XML::Node#pointer_id

Defined in:
ext/nokogiri/xml_node.c

#pointer_idObject

:call-seq: pointer_id() → Integer

Returns

A unique id for this node based on the internal memory structures. This method is used by #== to determine node identity.

[View source]

810
811
812
813
814
815
816
817
# File 'ext/nokogiri/xml_node.c', line 810

static VALUE
rb_xml_node_pointer_id(VALUE self)
{
  xmlNodePtr node;
  Noko_Node_Get_Struct(self, xmlNode, node);

  return rb_uint2inum((uintptr_t)(node));
}