LevelDB project 1 10225501460 林子骥 10211900416 郭夏辉
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

22 satır
743 B

1 ay önce
  1. // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file. See the AUTHORS file for names of contributors.
  4. #ifndef STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_
  5. #define STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_
  6. #include "leveldb/export.h"
  7. namespace leveldb {
  8. class Env;
  9. // Returns a new environment that stores its data in memory and delegates
  10. // all non-file-storage tasks to base_env. The caller must delete the result
  11. // when it is no longer needed.
  12. // *base_env must remain live while the result is in use.
  13. LEVELDB_EXPORT Env* NewMemEnv(Env* base_env);
  14. } // namespace leveldb
  15. #endif // STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_