LCOV - code coverage report
Current view: top level - src/index - disktxpos.h (source / functions) Hit Total Coverage
Test: fuzz_coverage.info Lines: 0 7 0.0 %
Date: 2023-11-10 23:46:46 Functions: 0 8 0.0 %
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : // Copyright (c) 2019-2020 The Bitcoin Core developers
       2                 :            : // Distributed under the MIT software license, see the accompanying
       3                 :            : // file COPYING or http://www.opensource.org/licenses/mit-license.php.
       4                 :            : 
       5                 :            : #ifndef BITCOIN_INDEX_DISKTXPOS_H
       6                 :            : #define BITCOIN_INDEX_DISKTXPOS_H
       7                 :            : 
       8                 :            : #include <flatfile.h>
       9                 :            : #include <serialize.h>
      10                 :            : 
      11                 :            : struct CDiskTxPos : public FlatFilePos
      12                 :            : {
      13                 :          0 :     unsigned int nTxOffset{0}; // after header
      14                 :            : 
      15                 :          0 :     SERIALIZE_METHODS(CDiskTxPos, obj)
      16                 :            :     {
      17                 :          0 :         READWRITE(AsBase<FlatFilePos>(obj), VARINT(obj.nTxOffset));
      18                 :          0 :     }
      19                 :            : 
      20                 :          0 :     CDiskTxPos(const FlatFilePos &blockIn, unsigned int nTxOffsetIn) : FlatFilePos(blockIn.nFile, blockIn.nPos), nTxOffset(nTxOffsetIn) {
      21                 :          0 :     }
      22                 :            : 
      23                 :          0 :     CDiskTxPos() {}
      24                 :            : };
      25                 :            : 
      26                 :            : #endif // BITCOIN_INDEX_DISKTXPOS_H

Generated by: LCOV version 1.14