repo_id
stringlengths
0
42
file_path
stringlengths
15
97
content
stringlengths
2
2.41M
__index_level_0__
int64
0
0
bitcoin
bitcoin/src/memusage.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_MEMUSAGE_H #define BITCOIN_MEMUSAGE_H #include <indirectmap.h> #include <prevector.h> #include <support/allo...
0
bitcoin
bitcoin/src/bitcoin-cli-res.rc
#include <windows.h> // needed for VERSIONINFO #include "clientversion.h" // holds the needed client version information #define VER_PRODUCTVERSION CLIENT_VERSION_MAJOR,CLIENT_VERSION_MINOR,CLIENT_VERSION_BUILD #define VER_FILEVERSION VER_PRODUCTVERSION VS_VERSION_INFO VERSIONINFO FILEVER...
0
bitcoin
bitcoin/src/merkleblock.h
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-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. #ifndef BITCOIN_MERKLEBLOCK_H #define BITCOIN_MERKLEBLOCK_H #include <common/blo...
0
bitcoin/src
bitcoin/src/init/bitcoin-wallet.cpp
// Copyright (c) 2021-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 <interfaces/init.h> #include <memory> namespace interfaces { std::unique_ptr<Init> MakeWalletInit(int argc, char* ...
0
bitcoin/src
bitcoin/src/init/bitcoind.cpp
// Copyright (c) 2021-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 <init.h> #include <interfaces/chain.h> #include <interfaces/echo.h> #include <interfaces/init.h> #include <interface...
0
bitcoin/src
bitcoin/src/init/common.cpp
// Copyright (c) 2021-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. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <clientversion.h> #include <common/args.h> #in...
0
bitcoin/src
bitcoin/src/init/bitcoin-gui.cpp
// Copyright (c) 2021-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 <init.h> #include <interfaces/chain.h> #include <interfaces/echo.h> #include <interfaces/init.h> #include <interface...
0
bitcoin/src
bitcoin/src/init/bitcoin-node.cpp
// Copyright (c) 2021-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 <init.h> #include <interfaces/chain.h> #include <interfaces/echo.h> #include <interfaces/init.h> #include <interface...
0
bitcoin/src
bitcoin/src/init/common.h
// Copyright (c) 2021-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. //! @file //! @brief Common init functions shared by bitcoin-node, bitcoin-wallet, etc. #ifndef BITCOIN_INIT_COMMON_H #defin...
0
bitcoin/src
bitcoin/src/init/bitcoin-qt.cpp
// Copyright (c) 2021-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 <init.h> #include <interfaces/chain.h> #include <interfaces/echo.h> #include <interfaces/init.h> #include <interface...
0
bitcoin/src
bitcoin/src/consensus/amount.h
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-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. #ifndef BITCOIN_CONSENSUS_AMOUNT_H #define BITCOIN_CONSENSUS_AMOUNT_H #include <...
0
bitcoin/src
bitcoin/src/consensus/tx_verify.cpp
// Copyright (c) 2017-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 <consensus/tx_verify.h> #include <chain.h> #include <coins.h> #include <consensus/amount.h> #include <consensus/con...
0
bitcoin/src
bitcoin/src/consensus/tx_check.cpp
// Copyright (c) 2017-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 <consensus/tx_check.h> #include <consensus/amount.h> #include <primitives/transaction.h> #include <consensus/valida...
0
bitcoin/src
bitcoin/src/consensus/params.h
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-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_CONSENSUS_PARAMS_H #define BITCOIN_CONSENSUS_PARAMS_H #include <...
0
bitcoin/src
bitcoin/src/consensus/merkle.h
// Copyright (c) 2015-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_CONSENSUS_MERKLE_H #define BITCOIN_CONSENSUS_MERKLE_H #include <vector> #include <primitives/block.h> #incl...
0
bitcoin/src
bitcoin/src/consensus/merkle.cpp
// Copyright (c) 2015-2020 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 <consensus/merkle.h> #include <hash.h> /* WARNING! If you're reading this because you're learning about crypto ...
0
bitcoin/src
bitcoin/src/consensus/consensus.h
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-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_CONSENSUS_CONSENSUS_H #define BITCOIN_CONSENSUS_CONSENSUS_H #inc...
0
bitcoin/src
bitcoin/src/consensus/tx_verify.h
// Copyright (c) 2017-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. #ifndef BITCOIN_CONSENSUS_TX_VERIFY_H #define BITCOIN_CONSENSUS_TX_VERIFY_H #include <consensus/amount.h> #include <stdint....
0
bitcoin/src
bitcoin/src/consensus/validation.h
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-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_CONSENSUS_VALIDATION_H #define BITCOIN_CONSENSUS_VALIDATION_H #i...
0
bitcoin/src
bitcoin/src/consensus/tx_check.h
// Copyright (c) 2017-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_CONSENSUS_TX_CHECK_H #define BITCOIN_CONSENSUS_TX_CHECK_H /** * Context-independent transaction checking co...
0
bitcoin/src
bitcoin/src/leveldb/CMakeLists.txt
# 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. cmake_minimum_required(VERSION 3.9) # Keep the version below in sync with the one in db.h project(leveldb VERS...
0
bitcoin/src
bitcoin/src/leveldb/LICENSE
Copyright (c) 2011 The LevelDB Authors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the follow...
0
bitcoin/src
bitcoin/src/leveldb/AUTHORS
# Names should be added to this file like so: # Name or Organization <email address> Google Inc. # Initial version authors: Jeffrey Dean <jeff@google.com> Sanjay Ghemawat <sanjay@google.com> # Partial list of contributors: Kevin Regan <kevin.d.regan@gmail.com> Johan Bilien <jobi@litl.com>
0
bitcoin/src
bitcoin/src/leveldb/.appveyor.yml
# Build matrix / environment variables are explained on: # https://www.appveyor.com/docs/appveyor-yml/ # This file can be validated on: https://ci.appveyor.com/tools/validate-yaml version: "{build}" environment: matrix: # AppVeyor currently has no custom job name feature. # http://help.appveyor.com/discussi...
0
bitcoin/src
bitcoin/src/leveldb/TODO
ss - Stats db - Maybe implement DB::BulkDeleteForRange(start_key, end_key) that would blow away files whose ranges are entirely contained within [start_key..end_key]? For Chrome, deletion of obsolete object stores, etc. can be done in the background anyway, so probably not that important. - There have been re...
0
bitcoin/src
bitcoin/src/leveldb/README.md
**LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.** [![Build Status](https://travis-ci.org/google/leveldb.svg?branch=master)](https://travis-ci.org/google/leveldb) [![Build status](https://ci.appveyor.com/api/projects/status/g2j5j4rfkda6...
0
bitcoin/src
bitcoin/src/leveldb/NEWS
Release 1.2 2011-05-16 ---------------------- Fixes for larger databases (tested up to one billion 100-byte entries, i.e., ~100GB). (1) Place hard limit on number of level-0 files. This fixes errors of the form "too many open files". (2) Fixed memtable management. Before the fix, a heavy write burst could cause un...
0
bitcoin/src
bitcoin/src/leveldb/CONTRIBUTING.md
# Contributing We'd love to accept your code patches! However, before we can take them, we have to jump a couple of legal hurdles. ## Contributor License Agreements Please fill out either the individual or corporate Contributor License Agreement as appropriate. * If you are an individual writing original source cod...
0
bitcoin/src
bitcoin/src/leveldb/.clang-format
# Run manually to reformat a file: # clang-format -i --style=file <file> # find . -iname '*.cc' -o -iname '*.h' -o -iname '*.h.in' | xargs clang-format -i --style=file BasedOnStyle: Google DerivePointerAlignment: false # Public headers are in a different location in the internal Google repository. # Order them so that...
0
bitcoin/src
bitcoin/src/leveldb/.travis.yml
# Build matrix / environment variables are explained on: # http://about.travis-ci.org/docs/user/build-configuration/ # This file can be validated on: http://lint.travis-ci.org/ language: cpp dist: bionic osx_image: xcode10.3 compiler: - gcc - clang os: - linux - osx env: - BUILD_TYPE=Debug - BUILD_TYPE=RelWithDebInf...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/cmake/leveldbConfig.cmake
include("${CMAKE_CURRENT_LIST_DIR}/leveldbTargets.cmake")
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/testutil.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 "util/testutil.h" #include "util/random.h" namespace leveldb { namespace test { Slice Rando...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/status.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/status.h" #include <stdio.h> #include "port/port.h" namespace leveldb { const cha...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/arena.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 "util/arena.h" namespace leveldb { static const int kBlockSize = 4096; Arena::Arena() :...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/bloom.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/filter_policy.h" #include "leveldb/slice.h" #include "util/hash.h" namespace leveld...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/posix_logger.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. // // Logger implementation that can be shared by all environments // where enough posix functionality i...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/testharness.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_UTIL_TESTHARNESS_H_ #define STORAGE_LEVELDB_UTIL_TESTHARNESS_H_ #include <stdi...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/env_windows_test.cc
// 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. #include "leveldb/env.h" #include "port/port.h" #include "util/env_windows_test_helper.h" #include "ut...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/hash.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 "util/hash.h" #include <string.h> #include "util/coding.h" // The FALLTHROUGH_INTENDED macr...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/crc32c_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 "util/crc32c.h" #include "util/testharness.h" namespace leveldb { namespace crc32c { class C...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/bloom_test.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/filter_policy.h" #include "util/coding.h" #include "util/logging.h" #include "util/t...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/hash_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 "util/hash.h" #include "util/testharness.h" namespace leveldb { class HASH {}; TEST(HASH, S...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/coding.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. // // Endian-neutral encoding: // * Fixed-length numbers are encoded with least-significant byte first /...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/logging.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. // // Must not be included from any .h files to avoid polluting the namespace // with macros. #ifndef S...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/filter_policy.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/filter_policy.h" namespace leveldb { FilterPolicy::~FilterPolicy() {} } // namesp...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/arena_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 "util/arena.h" #include "util/random.h" #include "util/testharness.h" namespace leveldb { c...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/histogram.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 "util/histogram.h" #include <math.h> #include <stdio.h> #include "port/port.h" namespace le...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/logging_test.cc
// 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. #include <limits> #include <string> #include "leveldb/slice.h" #include "util/logging.h" #include "uti...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/crc32c.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. // // A portable implementation of crc32c. #include "util/crc32c.h" #include <stddef.h> #include <stdi...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/mutexlock.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_UTIL_MUTEXLOCK_H_ #define STORAGE_LEVELDB_UTIL_MUTEXLOCK_H_ #include "port/por...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/coding_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 <vector> #include "util/coding.h" #include "util/testharness.h" namespace leveldb { class C...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/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 <assert.h> #include <stdio.h> #include <stdlib.h> #include "leveldb/cache.h" #include "port/p...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/testharness.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 "util/testharness.h" #include <stdlib.h> #include <sys/stat.h> #include <sys/types.h> #inclu...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/status_test.cc
// 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. #include <utility> #include "leveldb/slice.h" #include "leveldb/status.h" #include "util/testharness.h...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/histogram.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_UTIL_HISTOGRAM_H_ #define STORAGE_LEVELDB_UTIL_HISTOGRAM_H_ #include <string> ...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/crc32c.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_UTIL_CRC32C_H_ #define STORAGE_LEVELDB_UTIL_CRC32C_H_ #include <stddef.h> #inc...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/env_windows.cc
// 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. // Prevent Windows headers from defining min/max macros and instead // use STL. #ifndef NOMINMAX #defin...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/env_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/env.h" #include <algorithm> #include "port/port.h" #include "port/thread_annotation...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/logging.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 "util/logging.h" #include <errno.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/env_windows_test_helper.h
// Copyright 2018 (c) 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_UTIL_ENV_WINDOWS_TEST_HELPER_H_ #define STORAGE_LEVELDB_UTIL_ENV_WINDOWS_TEST_H...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/options.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/options.h" #include "leveldb/comparator.h" #include "leveldb/env.h" namespace level...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/cache_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/cache.h" #include <vector> #include "util/coding.h" #include "util/testharness.h" n...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/arena.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_UTIL_ARENA_H_ #define STORAGE_LEVELDB_UTIL_ARENA_H_ #include <atomic> #include...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/comparator.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/comparator.h" #include <algorithm> #include <cstdint> #include <string> #include <ty...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/env_posix_test_helper.h
// 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_UTIL_ENV_POSIX_TEST_HELPER_H_ #define STORAGE_LEVELDB_UTIL_ENV_POSIX_TEST_HELPER_H_...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/coding.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 "util/coding.h" namespace leveldb { void PutFixed32(std::string* dst, uint32_t value) { ch...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/env_posix_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/resource.h> #include <sys/wait.h> #include <unistd.h> #include <cstdio> #include <cstdli...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/hash.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. // // Simple hash function used for internal data structures #ifndef STORAGE_LEVELDB_UTIL_HASH_H_ #defi...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/windows_logger.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. // // Logger implementation for the Windows platform. #ifndef STORAGE_LEVELDB_UTIL_WINDOWS_LOGGER_H_ #d...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/random.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_UTIL_RANDOM_H_ #define STORAGE_LEVELDB_UTIL_RANDOM_H_ #include <stdint.h> nam...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/env_posix.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 <dirent.h> #include <fcntl.h> #include <pthread.h> #include <sys/mman.h> #include <sys/resourc...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/testutil.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_UTIL_TESTUTIL_H_ #define STORAGE_LEVELDB_UTIL_TESTUTIL_H_ #include "helpers/me...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/no_destructor.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_UTIL_NO_DESTRUCTOR_H_ #define STORAGE_LEVELDB_UTIL_NO_DESTRUCTOR_H_ #include <...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/env.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/env.h" namespace leveldb { Env::~Env() = default; Status Env::NewAppendableFile(co...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/util/no_destructor_test.cc
// 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. #include <cstdint> #include <cstdlib> #include <utility> #include "util/no_destructor.h" #include "uti...
0
bitcoin/src/leveldb/include
bitcoin/src/leveldb/include/leveldb/env.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. // // An Env is an interface used by the leveldb implementation to access // operating system functional...
0
bitcoin/src/leveldb/include
bitcoin/src/leveldb/include/leveldb/export.h
// Copyright (c) 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_INCLUDE_EXPORT_H_ #define STORAGE_LEVELDB_INCLUDE_EXPORT_H_ #if !defined(LEVEL...
0
bitcoin/src/leveldb/include
bitcoin/src/leveldb/include/leveldb/status.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. // // A Status encapsulates the result of an operation. It may indicate success, // or it may indicate ...
0
bitcoin/src/leveldb/include
bitcoin/src/leveldb/include/leveldb/db.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_INCLUDE_DB_H_ #define STORAGE_LEVELDB_INCLUDE_DB_H_ #include <stdint.h> #inclu...
0
bitcoin/src/leveldb/include
bitcoin/src/leveldb/include/leveldb/slice.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. // // Slice is a simple structure containing a pointer into some external // storage and a size. The us...
0
bitcoin/src/leveldb/include
bitcoin/src/leveldb/include/leveldb/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. // // A Cache is an interface that maps keys to values. It has internal // synchronization and may be s...
0
bitcoin/src/leveldb/include
bitcoin/src/leveldb/include/leveldb/write_batch.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. // // WriteBatch holds a collection of updates to apply atomically to a DB. // // The updates are applie...
0
bitcoin/src/leveldb/include
bitcoin/src/leveldb/include/leveldb/options.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_INCLUDE_OPTIONS_H_ #define STORAGE_LEVELDB_INCLUDE_OPTIONS_H_ #include <stddef...
0
bitcoin/src/leveldb/include
bitcoin/src/leveldb/include/leveldb/dumpfile.h
// 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. #ifndef STORAGE_LEVELDB_INCLUDE_DUMPFILE_H_ #define STORAGE_LEVELDB_INCLUDE_DUMPFILE_H_ #include <stri...
0
bitcoin/src/leveldb/include
bitcoin/src/leveldb/include/leveldb/c.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. C bindings for leveldb. May be useful as a stable ABI that can be used by programs that keep leveldb...
0
bitcoin/src/leveldb/include
bitcoin/src/leveldb/include/leveldb/filter_policy.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 database can be configured with a custom FilterPolicy object. // This object is responsible for ...
0
bitcoin/src/leveldb/include
bitcoin/src/leveldb/include/leveldb/comparator.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_INCLUDE_COMPARATOR_H_ #define STORAGE_LEVELDB_INCLUDE_COMPARATOR_H_ #include <...
0
bitcoin/src/leveldb/include
bitcoin/src/leveldb/include/leveldb/table.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_INCLUDE_TABLE_H_ #define STORAGE_LEVELDB_INCLUDE_TABLE_H_ #include <stdint.h> ...
0
bitcoin/src/leveldb/include
bitcoin/src/leveldb/include/leveldb/table_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. // // TableBuilder provides the interface used to build a Table // (an immutable and sorted map from key...
0
bitcoin/src/leveldb/include
bitcoin/src/leveldb/include/leveldb/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. // // An iterator yields a sequence of key/value pairs from a source. // The following class defines the...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/table/table.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 "leveldb/cache.h" #include "leveldb/comparator.h" #include "leveld...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/table/block.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. // // Decodes the blocks generated by block_builder.cc. #include "table/block.h" #include <algorithm> ...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/table/merger.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/merger.h" #include "leveldb/comparator.h" #include "leveldb/iterator.h" #include "tabl...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/table/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 "leveldb/iterator.h" namespace leveldb { Iterator::Iterator() { cleanup_head_.function = n...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/table/block_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. // // BlockBuilder generates blocks where keys are prefix-compressed: // // When we store a key, we drop...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/table/iterator_wrapper.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_ITERATOR_WRAPPER_H_ #define STORAGE_LEVELDB_TABLE_ITERATOR_WRAPPER_H_ #i...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/table/merger.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_MERGER_H_ #define STORAGE_LEVELDB_TABLE_MERGER_H_ namespace leveldb { c...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/table/table_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 "leveldb/table_builder.h" #include <assert.h> #include "leveldb/comparator.h" #include "leve...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/table/filter_block_test.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" #include "...
0
bitcoin/src/leveldb
bitcoin/src/leveldb/table/block_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_TABLE_BLOCK_BUILDER_H_ #define STORAGE_LEVELDB_TABLE_BLOCK_BUILDER_H_ #include...
0