repo_id
stringlengths
0
42
file_path
stringlengths
15
97
content
stringlengths
2
2.41M
__index_level_0__
int64
0
0
bitcoin/src/leveldb
bitcoin/src/leveldb/table/filter_block.cc
// Copyright (c) 2012 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 "table/filter_block.h" #include "leveldb/filter_policy.h" #include "util/coding.h" namespace...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/table/block.h
// 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. #ifndef STORAGE_LEVELDB_TABLE_BLOCK_H_ #define STORAGE_LEVELDB_TABLE_BLOCK_H_ #include <stddef.h> #inc...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/table/format.cc
// 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 "table/format.h" #include "leveldb/env.h" #include "port/port.h" #include "table/block.h" #in...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/table/filter_block.h
// Copyright (c) 2012 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. // // A filter block is stored near the end of a Table file. It contains // filters (e.g., bloom filter...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/table/two_level_iterator.h
// 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. #ifndef STORAGE_LEVELDB_TABLE_TWO_LEVEL_ITERATOR_H_ #define STORAGE_LEVELDB_TABLE_TWO_LEVEL_ITERATOR_H_...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/table/format.h
// 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. #ifndef STORAGE_LEVELDB_TABLE_FORMAT_H_ #define STORAGE_LEVELDB_TABLE_FORMAT_H_ #include <stdint.h> #...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/table/table_test.cc
// 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 "leveldb/table.h" #include <map> #include <string> #include "db/dbformat.h" #include "db/mem...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/table/two_level_iterator.cc
// 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 "table/two_level_iterator.h" #include "leveldb/table.h" #include "table/block.h" #include "ta...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/benchmarks/db_bench_sqlite3.cc
// 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 <sqlite3.h> #include <stdio.h> #include <stdlib.h> #include "util/histogram.h" #include "util...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/benchmarks/db_bench.cc
// 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 <stdio.h> #include <stdlib.h> #include <sys/types.h> #include "leveldb/cache.h" #include "lev...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/benchmarks/db_bench_tree_db.cc
// 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 <kcpolydb.h> #include <stdio.h> #include <stdlib.h> #include "util/histogram.h" #include "uti...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/log_format.h
// 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. // // Log format information shared by reader and writer. // See ../doc/log_format.md for more detail. ...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/log_writer.cc
// 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/log_writer.h" #include <stdint.h> #include "leveldb/env.h" #include "util/coding.h" #inc...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/table_cache.h
// 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. // // Thread-safe (provides internal synchronization) #ifndef STORAGE_LEVELDB_DB_TABLE_CACHE_H_ #define...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/db_impl.cc
// 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/db_impl.h" #include <stdint.h> #include <stdio.h> #include <algorithm> #include <atomic>...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/filename.cc
// 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/filename.h" #include <ctype.h> #include <stdio.h> #include "db/dbformat.h" #include "lev...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/fault_injection_test.cc
// Copyright 2014 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. // This test uses a custom Env to keep track of the state of a filesystem as of // the last "sync". It then...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/skiplist.h
// 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. #ifndef STORAGE_LEVELDB_DB_SKIPLIST_H_ #define STORAGE_LEVELDB_DB_SKIPLIST_H_ // Thread safety // ----...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/dbformat.h
// 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. #ifndef STORAGE_LEVELDB_DB_DBFORMAT_H_ #define STORAGE_LEVELDB_DB_DBFORMAT_H_ #include <cstddef> #incl...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/table_cache.cc
// 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/table_cache.h" #include "db/filename.h" #include "leveldb/env.h" #include "leveldb/table....
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/log_reader.cc
// 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/log_reader.h" #include <stdio.h> #include "leveldb/env.h" #include "util/coding.h" #incl...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/write_batch.cc
// 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. // // WriteBatch::rep_ := // sequence: fixed64 // count: fixed32 // data: record[count] // reco...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/c.cc
// 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 "leveldb/c.h" #include <cstdint> #include <cstdlib> #include "leveldb/cache.h" #include "lev...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/recovery_test.cc
// Copyright (c) 2014 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/db_impl.h" #include "db/filename.h" #include "db/version_set.h" #include "db/write_batch_i...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/builder.cc
// 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/builder.h" #include "db/dbformat.h" #include "db/filename.h" #include "db/table_cache.h" ...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/log_writer.h
// 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. #ifndef STORAGE_LEVELDB_DB_LOG_WRITER_H_ #define STORAGE_LEVELDB_DB_LOG_WRITER_H_ #include <stdint.h> ...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/version_edit.cc
// 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 {...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/db_impl.h
// 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. #ifndef STORAGE_LEVELDB_DB_DB_IMPL_H_ #define STORAGE_LEVELDB_DB_DB_IMPL_H_ #include <atomic> #include...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/skiplist_test.cc
// 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/skiplist.h" #include <atomic> #include <set> #include "leveldb/env.h" #include "port/por...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/db_iter.h
// 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. #ifndef STORAGE_LEVELDB_DB_DB_ITER_H_ #define STORAGE_LEVELDB_DB_DB_ITER_H_ #include <stdint.h> #incl...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/corruption_test.cc
// 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 <sys/types.h> #include "db/db_impl.h" #include "db/filename.h" #include "db/log_format.h" #in...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/dbformat.cc
// 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/dbformat.h" #include <stdio.h> #include <sstream> #include "port/port.h" #include "util...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/filename_test.cc
// 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/filename.h" #include "db/dbformat.h" #include "port/port.h" #include "util/logging.h" #in...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/memtable.h
// 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. #ifndef STORAGE_LEVELDB_DB_MEMTABLE_H_ #define STORAGE_LEVELDB_DB_MEMTABLE_H_ #include <string> #incl...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/version_edit.h
// 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. #ifndef STORAGE_LEVELDB_DB_VERSION_EDIT_H_ #define STORAGE_LEVELDB_DB_VERSION_EDIT_H_ #include <set> #...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/version_set.h
// 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 representation of a DBImpl consists of a set of Versions. The // newest version is called "cu...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/log_test.cc
// 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/log_reader.h" #include "db/log_writer.h" #include "leveldb/env.h" #include "util/coding.h"...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/version_set_test.cc
// 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_set.h" #include "util/logging.h" #include "util/testharness.h" #include "util/test...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/db_test.cc
// 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 "leveldb/db.h" #include <atomic> #include <string> #include "db/db_impl.h" #include "db/file...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/builder.h
// 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. #ifndef STORAGE_LEVELDB_DB_BUILDER_H_ #define STORAGE_LEVELDB_DB_BUILDER_H_ #include "leveldb/status.h...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/version_set.cc
// 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_set.h" #include <stdio.h> #include <algorithm> #include "db/filename.h" #includ...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/dumpfile.cc
// Copyright (c) 2012 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 "leveldb/dumpfile.h" #include <stdio.h> #include "db/dbformat.h" #include "db/filename.h" #i...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/log_reader.h
// 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. #ifndef STORAGE_LEVELDB_DB_LOG_READER_H_ #define STORAGE_LEVELDB_DB_LOG_READER_H_ #include <stdint.h> ...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/autocompact_test.cc
// Copyright (c) 2013 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/db_impl.h" #include "leveldb/cache.h" #include "leveldb/db.h" #include "util/testharness.h...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/write_batch_internal.h
// 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. #ifndef STORAGE_LEVELDB_DB_WRITE_BATCH_INTERNAL_H_ #define STORAGE_LEVELDB_DB_WRITE_BATCH_INTERNAL_H_ ...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/db_iter.cc
// 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/db_iter.h" #include "db/db_impl.h" #include "db/dbformat.h" #include "db/filename.h" #inc...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/repair.cc
// 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. // // We recover the contents of the descriptor from the other files we find. // (1) Any log files are f...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/write_batch_test.cc
// 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 "leveldb/db.h" #include "db/memtable.h" #include "db/write_batch_internal.h" #include "leveld...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/filename.h
// 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. // // File names used by DB code #ifndef STORAGE_LEVELDB_DB_FILENAME_H_ #define STORAGE_LEVELDB_DB_FILE...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/snapshot.h
// 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. #ifndef STORAGE_LEVELDB_DB_SNAPSHOT_H_ #define STORAGE_LEVELDB_DB_SNAPSHOT_H_ #include "db/dbformat.h"...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/leveldbutil.cc
// Copyright (c) 2012 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 <stdio.h> #include "leveldb/dumpfile.h" #include "leveldb/env.h" #include "leveldb/status.h" ...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/version_edit_test.cc
// 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 "util/testharness.h" namespace leveldb { static void TestEncode...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/memtable.cc
// 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/memtable.h" #include "db/dbformat.h" #include "leveldb/comparator.h" #include "leveldb/env...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/c_test.c
/* 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 "leveldb/c.h" #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string....
0
bitcoin/src/leveldb
bitcoin/src/leveldb/db/dbformat_test.cc
// 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/dbformat.h" #include "util/logging.h" #include "util/testharness.h" namespace leveldb { ...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/doc/impl.md
## Files The implementation of leveldb is similar in spirit to the representation of a single [Bigtable tablet (section 5.3)](http://research.google.com/archive/bigtable.html). However the organization of the files that make up the representation is somewhat different and is explained below. Each database is represen...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/doc/benchmark.html
<!DOCTYPE html> <html> <head> <title>LevelDB Benchmarks</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <style> body { font-family:Helvetica,sans-serif; padding:20px; } h2 { padding-top:30px; } table.bn { width:800px; border-collapse:collapse; border:0; padding:0; } table.bn...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/doc/index.md
leveldb ======= _Jeff Dean, Sanjay Ghemawat_ The leveldb library provides a persistent key value store. Keys and values are arbitrary byte arrays. The keys are ordered within the key value store according to a user-specified comparator function. ## Opening A Database A leveldb database has a name which corresponds...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/doc/table_format.md
leveldb File format =================== <beginning_of_file> [data block 1] [data block 2] ... [data block N] [meta block 1] ... [meta block K] [metaindex block] [index block] [Footer] (fixed size; starts at file_size - sizeof(Footer)) <end_of_file> The file conta...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/doc/log_format.md
leveldb Log format ================== The log file contents are a sequence of 32KB blocks. The only exception is that the tail of the file may contain a partial block. Each block consists of a sequence of records: block := record* trailer? record := checksum: uint32 // crc32c of type and data[] ; l...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/port/port.h
// 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. #ifndef STORAGE_LEVELDB_PORT_PORT_H_ #define STORAGE_LEVELDB_PORT_PORT_H_ #include <string.h> // Incl...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/port/port_config.h.in
// Copyright 2017 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. #ifndef STORAGE_LEVELDB_PORT_PORT_CONFIG_H_ #define STORAGE_LEVELDB_PORT_PORT_CONFIG_H_ // Define to 1 if ...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/port/README.md
This directory contains interfaces and implementations that isolate the rest of the package from platform details. Code in the rest of the package includes "port.h" from this directory. "port.h" in turn includes a platform specific "port_<platform>.h" file that provides the platform specific implementation. See port_...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/port/port_example.h
// 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. // // This file contains the specification, but not the implementations, // of the types/operations/etc....
0
bitcoin/src/leveldb
bitcoin/src/leveldb/port/thread_annotations.h
// Copyright (c) 2012 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. #ifndef STORAGE_LEVELDB_PORT_THREAD_ANNOTATIONS_H_ #define STORAGE_LEVELDB_PORT_THREAD_ANNOTATIONS_H_ ...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/port/port_stdcxx.h
// Copyright (c) 2018 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. #ifndef STORAGE_LEVELDB_PORT_PORT_STDCXX_H_ #define STORAGE_LEVELDB_PORT_PORT_STDCXX_H_ // port/port_c...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/issues/issue200_test.cc
// Copyright (c) 2013 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. // Test for issue 200: when iterator switches direction from backward // to forward, the current key ca...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/issues/issue320_test.cc
// Copyright (c) 2019 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 <cstdint> #include <cstdlib> #include <iostream> #include <memory> #include <string> #include ...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/issues/issue178_test.cc
// Copyright (c) 2013 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. // Test for issue 178: a manual compaction causes deleted data to reappear. #include <cstdlib> #include...
0
bitcoin/src/leveldb/helpers
bitcoin/src/leveldb/helpers/memenv/memenv.cc
// 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 "helpers/memenv/memenv.h" #include <string.h> #include <limits> #include <map> #include <str...
0
bitcoin/src/leveldb/helpers
bitcoin/src/leveldb/helpers/memenv/memenv_test.cc
// 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 "helpers/memenv/memenv.h" #include <string> #include <vector> #include "db/db_impl.h" #inclu...
0
bitcoin/src/leveldb/helpers
bitcoin/src/leveldb/helpers/memenv/memenv.h
// 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. #ifndef STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_ #define STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_ #inc...
0
bitcoin/src
bitcoin/src/bench/descriptors.cpp
// Copyright (c) 2019-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <key.h> #include <pubkey.h> #include <script/descriptor.h> #include <string> #include <uti...
0
bitcoin/src
bitcoin/src/bench/nanobench.h
// __ _ _______ __ _ _____ ______ _______ __ _ _______ _ _ // | \ | |_____| | \ | | | |_____] |______ | \ | | |_____| // | \_| | | | \_| |_____| |_____] |______ | \_| |_____ | | // // Microbenchmark framework for C++11/14/17/20 // https://github.com/martinus/nanobench // // Lice...
0
bitcoin/src
bitcoin/src/bench/mempool_stress.cpp
// Copyright (c) 2011-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <kernel/mempool_entry.h> #include <policy/policy.h> #include <random.h> #include <test/util...
0
bitcoin/src
bitcoin/src/bench/prevector.cpp
// Copyright (c) 2015-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <prevector.h> #include <serialize.h> #include <streams.h> #include <type_traits> #include <bench/bench.h> struct n...
0
bitcoin/src
bitcoin/src/bench/checkblock.cpp
// Copyright (c) 2016-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <bench/data.h> #include <chainparams.h> #include <common/args.h> #include <consensus/valid...
0
bitcoin/src
bitcoin/src/bench/wallet_loading.cpp
// Copyright (c) 2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <interfaces/chain.h> #include <node/context.h> #include <test/util/mining.h> #include <test/util...
0
bitcoin/src
bitcoin/src/bench/rpc_mempool.cpp
// Copyright (c) 2011-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <kernel/cs_main.h> #include <kernel/mempool_entry.h> #include <rpc/mempool.h> #include <tes...
0
bitcoin/src
bitcoin/src/bench/disconnected_transactions.cpp
// Copyright (c) 2023 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <kernel/disconnected_transactions.h> #include <primitives/block.h> #include <test/util/random.h>...
0
bitcoin/src
bitcoin/src/bench/merkle_root.cpp
// Copyright (c) 2016-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <consensus/merkle.h> #include <random.h> #include <uint256.h> static void MerkleRoot(benc...
0
bitcoin/src
bitcoin/src/bench/wallet_create_tx.cpp
// Copyright (c) 2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or https://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <chainparams.h> #include <wallet/coincontrol.h> #include <consensus/merkle.h> #include <kernel/...
0
bitcoin/src
bitcoin/src/bench/logging.cpp
// Copyright (c) 2020-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <logging.h> #include <test/util/setup_common.h> #include <util/chaintype.h> // All but 2 o...
0
bitcoin/src
bitcoin/src/bench/duplicate_inputs.cpp
// Copyright (c) 2011-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <chainparams.h> #include <consensus/merkle.h> #include <consensus/validation.h> #include <p...
0
bitcoin/src
bitcoin/src/bench/base58.cpp
// Copyright (c) 2016-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <base58.h> #include <array> #include <vector> static void Base58Encode(benchmark::Bench...
0
bitcoin/src
bitcoin/src/bench/coin_selection.cpp
// Copyright (c) 2012-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <interfaces/chain.h> #include <node/context.h> #include <policy/policy.h> #include <wallet/...
0
bitcoin/src
bitcoin/src/bench/data.h
// Copyright (c) 2019 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_BENCH_DATA_H #define BITCOIN_BENCH_DATA_H #include <cstdint> #include <vector> namespace benchmark { namespace d...
0
bitcoin/src
bitcoin/src/bench/block_assemble.cpp
// Copyright (c) 2011-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <consensus/validation.h> #include <crypto/sha256.h> #include <node/miner.h> #include <rando...
0
bitcoin/src
bitcoin/src/bench/bench.h
// Copyright (c) 2015-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_BENCH_BENCH_H #define BITCOIN_BENCH_BENCH_H #include <util/fs.h> #include <util/macros.h> #include <chrono>...
0
bitcoin/src
bitcoin/src/bench/util_time.cpp
// Copyright (c) 2019-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <util/time.h> static void BenchTimeDeprecated(benchmark::Bench& bench) { bench.run([&...
0
bitcoin/src
bitcoin/src/bench/bip324_ecdh.cpp
// Copyright (c) 2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <key.h> #include <pubkey.h> #include <random.h> #include <span.h> #include <array> #include <c...
0
bitcoin/src
bitcoin/src/bench/hashpadding.cpp
// Copyright (c) 2015-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <hash.h> #include <random.h> #include <uint256.h> static void PrePadded(benchmark::Bench&...
0
bitcoin/src
bitcoin/src/bench/rollingbloom.cpp
// Copyright (c) 2016-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <common/bloom.h> #include <crypto/common.h> #include <vector> static void RollingBloom(b...
0
bitcoin/src
bitcoin/src/bench/load_external.cpp
// Copyright (c) 2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or https://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <bench/data.h> #include <chainparams.h> #include <clientversion.h> #include <test/util/setup_co...
0
bitcoin/src
bitcoin/src/bench/verify_script.cpp
// Copyright (c) 2016-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <key.h> #if defined(HAVE_CONSENSUS_LIB) #include <script/bitcoinconsensus.h> #endif #includ...
0
bitcoin/src
bitcoin/src/bench/data.cpp
// Copyright (c) 2019-2021 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/data.h> namespace benchmark { namespace data { #include <bench/data/block413567.raw.h> const std::vector<ui...
0
bitcoin/src
bitcoin/src/bench/wallet_balance.cpp
// Copyright (c) 2012-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <interfaces/chain.h> #include <node/chainstate.h> #include <node/context.h> #include <test/...
0
bitcoin/src
bitcoin/src/bench/lockedpool.cpp
// Copyright (c) 2016-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <support/lockedpool.h> #include <vector> #define ASIZE 2048 #define MSIZE 2048 static v...
0
bitcoin/src
bitcoin/src/bench/crypto_hash.cpp
// Copyright (c) 2016-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <crypto/muhash.h> #include <crypto/ripemd160.h> #include <crypto/sha1.h> #include <crypto/...
0
bitcoin/src
bitcoin/src/bench/poly1305.cpp
// Copyright (c) 2019-2022 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <crypto/poly1305.h> #include <span.h> /* Number of bytes to process per iteration */ sta...
0