nil::crypto3::codec::base_encode_finalizer< Version, typename > Struct Template Reference
Base encoder finalizer functor. More...
#include <base.hpp>
Collaboration diagram for nil::crypto3::codec::base_encode_finalizer< Version, typename >:
Public Types | |
typedef detail::base_policy< Version > | policy_type |
Public Member Functions | |
base_encode_finalizer (std::size_t leading_zeros=0) | |
Constructs the base encoder finalizer. More... | |
template<typename T > | |
void | operator() (T &t) |
Base encoding padding function. Fills remaining empty bits with '0'. More... | |
Public Attributes | |
std::size_t | leading_zeros |
Detailed Description
template<std::size_t Version, typename = detail::static_range<true>>
struct nil::crypto3::codec::base_encode_finalizer< Version, typename >
Base encoder finalizer functor.
- Template Parameters
-
Version Base encoder version selector. Available values are: 32, 58, 64
- Note
- This particular implementation gets selected with Version == 58.
Member Typedef Documentation
◆ policy_type
template<std::size_t Version, typename = detail::static_range<true>>
typedef detail::base_policy<Version> nil::crypto3::codec::base_encode_finalizer< Version, typename >::policy_type |
Constructor & Destructor Documentation
◆ base_encode_finalizer()
template<std::size_t Version, typename = detail::static_range<true>>
|
inline |
Constructs the base encoder finalizer.
- Parameters
-
leading_zeros Leading zeros amount to be processed
Member Function Documentation
◆ operator()()
template<std::size_t Version, typename = detail::static_range<true>>
template<typename T >
|
inline |
Base encoding padding function. Fills remaining empty bits with '0'.
- Template Parameters
-
T Input container type. Assumed to meet the requirements of Container, AllocatorAwareContainer and SequenceContainer concepts.
- Parameters
-
t Input container
Member Data Documentation
◆ leading_zeros
template<std::size_t Version, typename = detail::static_range<true>>
std::size_t nil::crypto3::codec::base_encode_finalizer< Version, typename >::leading_zeros |
The documentation for this struct was generated from the following file: