class data_output_stream


template <
    typename OutputResource
>
class data_output_stream
    : public output_stream<OutputResource>

Public Aliases

using wrapped_resource_type = OutputResource

The type of the wrapped output resource.

Public Member Functions

explicit
data_output_stream (
    wrapped_resource_type& resource,
    std::endian endianness = std::endian::big
)
noexcept

Constructs a data output stream from the given output resource and with the given endianness. The data output stream will hold a non-owning reference to the resource, which is expected to stay valid when using the data output stream.

Parameters:
  • resource:

    The output resource to write to.

  • endianness:

    The endianness that the data is going to be in.



Copyright © 2022-2025 Daniel T. McGinnis

CCL was first published in 2022, and is still actively maintained.

This website was first published in 2022, and is still actively maintained.

This specific web page was first published in 2022.