code: def dump_memdb(self, with_source_contents=True, with_names=True):
          
          len_out = _ffi.new('unsigned int *')
          buf = rustcall(
              _lib.lsm_view_dump_memdb,
              self._get_ptr(), len_out,
              with_source_contents, with_names)
          try:
              rv = _ffi.unpack(buf, len_out[0])
          finally:
              _lib.lsm_buffer_free(buf)
          return rv
docs: Dumps a sourcemap in MemDB format into bytes.