parameters: (self, filename=None)
docstring: Create a new memory buffer.
  
          Currently, we support creating from the contents of a file at the
          specified filename.
docstring_summary: Create a new memory buffer.
docstring_tokens: Create a new memory buffer .
function: def __init__(self, filename=None):
          """Create a new memory buffer.
  
          Currently, we support creating from the contents of a file at the
          specified filename.
          """
          if filename is None:
              raise Exception("filename argument must be defined")
  
          memory = c_object_p()
          out = c_char_p(None)
  
          result = lib.LLVMCreateMemoryBufferWithContentsOfFile(filename,
                  byref(memory), byref(out))
  
          if result:
              raise Exception("Could not create memory buffer: %s" % out.value)
  
          LLVMObject.__init__(self, memory, disposer=lib.LLVMDisposeMemoryBuffer)
function_tokens: def __init__ ( self , filename = None ) : if filename is None : raise Exception ( "filename argument must be defined" ) memory = c_object_p ( ) out = c_char_p ( None ) result = lib . LLVMCreateMemoryBufferWithContentsOfFile ( filename , byref ( memory ) , byref ( out ) ) if result : raise Exception ( "Could not create memory buffer: %s" % out . value ) LLVMObject . __init__ ( self , memory , disposer = lib . LLVMDisposeMemoryBuffer )