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.
5 // Log format information shared by reader and writer.
6 // See ../doc/log_format.txt for more detail.
8 #ifndef STORAGE_LEVELDB_DB_LOG_FORMAT_H_
9 #define STORAGE_LEVELDB_DB_LOG_FORMAT_H_
15 // Zero is reserved for preallocated files
25 static const int kMaxRecordType = kLastType;
27 static const int kBlockSize = 32768;
29 // Header is checksum (4 bytes), length (2 bytes), type (1 byte).
30 static const int kHeaderSize = 4 + 2 + 1;
33 } // namespace leveldb
35 #endif // STORAGE_LEVELDB_DB_LOG_FORMAT_H_