LCOV - code coverage report
Current view: top level - src/index - disktxpos.h (source / functions) Coverage Total Hit
Test: fuzz_coverage.info Lines: 0.0 % 4 0
Test Date: 2026-08-21 05:53:24 Functions: 0.0 % 2 0

            Line data    Source code
       1              : // Copyright (c) 2019-present 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              :     uint32_t 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, uint32_t nTxOffsetIn) : FlatFilePos{blockIn.nFile, blockIn.nPos}, nTxOffset{nTxOffsetIn} {
      21              :     }
      22              : 
      23              :     CDiskTxPos() = default;
      24              : };
      25              : 
      26              : #endif // BITCOIN_INDEX_DISKTXPOS_H
        

Generated by: LCOV version 2.5.0-full