text: // Copyright (c) 2011 The LevelDB Authors. All rights reserved.
  // Use of this source code is governed by a BSD-style license that can be
  // found in the LICENSE file. See the AUTHORS file for names of contributors.
  //
  // The following only applies to changes made to this file as part of YugaByte development.
  //
  // Portions Copyright (c) YugaByte, Inc.
  //
  // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
  // in compliance with the License.  You may obtain a copy of the License at
  //
  // http://www.apache.org/licenses/LICENSE-2.0
  //
  // Unless required by applicable law or agreed to in writing, software distributed under the License
  // is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
  // or implied.  See the License for the specific language governing permissions and limitations
  // under the License.
  //
  
  #ifndef STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_
  #define STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_
  
  namespace yb {
  
  class Env;
  
  // Returns a new environment that stores its data in memory and delegates
  // all non-file-storage tasks to base_env. The caller must delete the result
  // when it is no longer needed.
  // *base_env must remain live while the result is in use.
  Env* NewMemEnv(Env* base_env);
  
  } // namespace yb
  
  #endif  // STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_
  