10225501448 李度 10225101546 陈胤遒 10215501422 高宇菲
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

20 rindas
699 B

  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. namespace leveldb {
  7. class Env;
  8. // Returns a new environment that stores its data in memory and delegates
  9. // all non-file-storage tasks to base_env. The caller must delete the result
  10. // when it is no longer needed.
  11. // *base_env must remain live while the result is in use.
  12. Env* NewMemEnv(Env* base_env);
  13. } // namespace leveldb
  14. #endif // STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_