Algorithms

Algorithms are meant to provide encoding interface similar to STL algorithms' one. More...

Functions

template<typename Decoder , typename InputIterator , typename OutputIterator >
OutputIterator nil::crypto3::decode (InputIterator first, InputIterator last, OutputIterator out)
 
template<typename Decoder , typename InputIterator , typename StreamDecoder = typename codec::itr_stream_codec_traits<typename Decoder::stream_decoder_type, InputIterator>::type>
codec::detail::range_codec_impl< codec::detail::value_codec_impl< StreamDecoder > > nil::crypto3::decode (InputIterator first, InputIterator last)
 
template<typename Decoder , typename SinglePassRange , typename OutputIterator >
OutputIterator nil::crypto3::decode (const SinglePassRange &rng, OutputIterator out)
 
template<typename Decoder , typename SinglePassRange , typename StreamDecoder = typename codec::range_stream_codec_traits< typename Decoder::stream_decoder_type, SinglePassRange>::type>
codec::detail::range_codec_impl< codec::detail::value_codec_impl< StreamDecoder > > nil::crypto3::decode (const SinglePassRange &r)
 
template<typename Encoder , typename InputIterator , typename OutputIterator >
OutputIterator nil::crypto3::encode (InputIterator first, InputIterator last, OutputIterator out)
 
template<typename Encoder , typename InputIterator , typename EncoderState = typename codec::itr_stream_codec_traits<typename Encoder::stream_encoder_type, InputIterator>::type>
codec::detail::range_codec_impl< codec::detail::value_codec_impl< EncoderState > > nil::crypto3::encode (InputIterator first, InputIterator last)
 
template<typename Encoder , typename SinglePassRange , typename OutputIterator >
OutputIterator nil::crypto3::encode (const SinglePassRange &rng, OutputIterator out)
 
template<typename Encoder , typename SinglePassRange , typename EncoderState = typename codec::range_stream_codec_traits< typename Encoder::stream_encoder_type, SinglePassRange>::type>
codec::detail::range_codec_impl< codec::detail::value_codec_impl< EncoderState > > nil::crypto3::encode (const SinglePassRange &r)
 

Detailed Description

Algorithms are meant to provide encoding interface similar to STL algorithms' one.

Function Documentation

◆ decode() [1/4]

template<typename Decoder , typename InputIterator , typename OutputIterator >
OutputIterator nil::crypto3::decode ( InputIterator  first,
InputIterator  last,
OutputIterator  out 
)
Template Parameters
Decoder
InputIterator
OutputIterator
StreamDecoder
Parameters
first
last
out
Returns

◆ decode() [2/4]

template<typename Decoder , typename InputIterator , typename StreamDecoder = typename codec::itr_stream_codec_traits<typename Decoder::stream_decoder_type, InputIterator>::type>
codec::detail::range_codec_impl<codec::detail::value_codec_impl<StreamDecoder> > nil::crypto3::decode ( InputIterator  first,
InputIterator  last 
)
Template Parameters
Decoder
InputIterator
StreamDecoder
Parameters
first
last
Returns

◆ decode() [3/4]

template<typename Decoder , typename SinglePassRange , typename OutputIterator >
OutputIterator nil::crypto3::decode ( const SinglePassRange &  rng,
OutputIterator  out 
)
Template Parameters
Decoder
SinglePassRange
OutputIterator
StreamDecoder
Parameters
rng
out
Returns

◆ decode() [4/4]

template<typename Decoder , typename SinglePassRange , typename StreamDecoder = typename codec::range_stream_codec_traits< typename Decoder::stream_decoder_type, SinglePassRange>::type>
codec::detail::range_codec_impl<codec::detail::value_codec_impl<StreamDecoder> > nil::crypto3::decode ( const SinglePassRange &  r)
Template Parameters
Decoder
SinglePassRange
StreamDecoder
Parameters
r
Returns

◆ encode() [1/4]

template<typename Encoder , typename InputIterator , typename OutputIterator >
OutputIterator nil::crypto3::encode ( InputIterator  first,
InputIterator  last,
OutputIterator  out 
)
Template Parameters
Encoder
InputIterator
OutputIterator
EncoderState
Parameters
first
last
out
Returns

◆ encode() [2/4]

template<typename Encoder , typename InputIterator , typename EncoderState = typename codec::itr_stream_codec_traits<typename Encoder::stream_encoder_type, InputIterator>::type>
codec::detail::range_codec_impl<codec::detail::value_codec_impl<EncoderState> > nil::crypto3::encode ( InputIterator  first,
InputIterator  last 
)
Template Parameters
Encoder
InputIterator
EncoderState
Parameters
first
last
Returns

◆ encode() [3/4]

template<typename Encoder , typename SinglePassRange , typename OutputIterator >
OutputIterator nil::crypto3::encode ( const SinglePassRange &  rng,
OutputIterator  out 
)
Template Parameters
Encoder
SinglePassRange
OutputIterator
Parameters
rng
out
Returns

◆ encode() [4/4]

template<typename Encoder , typename SinglePassRange , typename EncoderState = typename codec::range_stream_codec_traits< typename Encoder::stream_encoder_type, SinglePassRange>::type>
codec::detail::range_codec_impl<codec::detail::value_codec_impl<EncoderState> > nil::crypto3::encode ( const SinglePassRange &  r)
Template Parameters
Encoder
SinglePassRange
EncoderState
Parameters
r
Returns