codecs::basic_codec

Defined in header <mgs/codecs/basic_codec.hpp>.

template <codecs::codec_traits Traits>
class basic_codec;

The class template basic_codec provides a generic implementation that models the codecs::codec concept.

The definitions of the encoding/decoding operations are supplied via the template parameter, which must model codecs::codec_traits.


Template parameters

Name

Description

Traits

Codec traits, must model codecs::codec_traits

Member types

Name

Description

traits

The codec traits

Member functions

Name

Description

encode [static]

Encodes input

decode [static]

Decodes input

lazy_encode [static]

Lazily encodes input

lazy_decode [static]

Lazily decodes input

make_encoder [static]

Creates an encoder

make_decoder [static]

Creates a decoder