native_parse_memory (Nokogiri::HTML::SAX::Parser)

    /*
     * call-seq:
     *  native_parse_memory(data, encoding)
     *
     * Parse +data+ with +encoding+
     */
    static VALUE native_parse_memory(VALUE self, VALUE data, VALUE encoding)
    {
      xmlSAXHandlerPtr handler;
      htmlDocPtr hdoc ;
      Data_Get_Struct(self, xmlSAXHandler, handler);
      hdoc = htmlSAXParseDoc(  (xmlChar *)StringValuePtr(data),
                               (const char *)StringValuePtr(encoding),
                               (htmlSAXHandlerPtr)handler,
                               (void *)self );
      xmlFreeDoc(hdoc);
      return data;
    }