// 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. #include "db/version_edit.h" #include "db/version_set.h" #include "util/coding.h" namespace leveldb { // Tag numbers for serialized VersionEdit. These numbers are written to // disk and should not be changed. enum Tag { … }; void VersionEdit::Clear() { … } void VersionEdit::EncodeTo(std::string* dst) const { … } static bool GetInternalKey(Slice* input, InternalKey* dst) { … } static bool GetLevel(Slice* input, int* level) { … } Status VersionEdit::DecodeFrom(const Slice& src) { … } std::string VersionEdit::DebugString() const { … } } // namespace leveldb