• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

STEllAR-GROUP / hpx / #854

18 Dec 2022 11:19PM UTC coverage: 86.511% (+0.2%) from 86.287%
#854

push

StellarBot
Merge #6111

6111: Modernize all modules from module level 8 r=hkaiser a=hkaiser

modules: datastructures, hashing, memory, checkpointing_base

- flyby: adding `hpx::construct_at`

working towards https://github.com/STEllAR-GROUP/hpx/issues/5497

Co-authored-by: Hartmut Kaiser <hartmut.kaiser@gmail.com>

127 of 127 new or added lines in 33 files covered. (100.0%)

174410 of 201605 relevant lines covered (86.51%)

1917096.95 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

40.0
/libs/core/serialization/include/hpx/serialization/binary_filter.hpp
1
// Copyright (c) 2007-2022 Hartmut Kaiser
2
// Copyright (c) 2015 Anton Bikineev
3
//
4
// SPDX-License-Identifier: BSL-1.0
5
// Use, modification and distribution is subject to the Boost Software
6
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7
// http://www.boost.org/LICENSE_1_0.txt)
8

9
#pragma once
10

11
#include <hpx/serialization/detail/polymorphic_intrusive_factory.hpp>
12
#include <hpx/serialization/serialization_fwd.hpp>
13

14
#include <cstddef>
15

16
namespace hpx::serialization {
17

18
    ///////////////////////////////////////////////////////////////////////////
19
    // Base class for all serialization filters.
20
    struct binary_filter
13✔
21
    {
22
        virtual ~binary_filter() = default;
13✔
23

24
        // compression API
25
        virtual void set_max_length(std::size_t size) = 0;
26
        virtual void save(void const* src, std::size_t src_count) = 0;
27
        virtual bool flush(
28
            void* dst, std::size_t dst_count, std::size_t& written) = 0;
29

30
        // decompression API
31
        virtual std::size_t init_data(
32
            void const* buffer, std::size_t size, std::size_t buffer_size) = 0;
33
        virtual void load(void* dst, std::size_t dst_count) = 0;
34

35
        template <typename T>
36
        constexpr void serialize(T& /*ar*/, unsigned) noexcept
×
37
        {
38
        }
×
39
        HPX_SERIALIZATION_POLYMORPHIC_ABSTRACT(binary_filter);
×
40
    };
41
}    // namespace hpx::serialization
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc