code: def createMemoryParserCtxt(buffer, size):
      
      ret = libxml2mod.xmlCreateMemoryParserCtxt(buffer, size)
      if ret is None:raise parserError('xmlCreateMemoryParserCtxt() failed')
      return parserCtxt(_obj=ret)
docs: Create a parser context for an XML in-memory document.