ipfs-chromium
Classes | Public Member Functions | List of all members
multibase::algorithm Class Referenceabstract

#include <library/include/multibase/algorithm.h>

Inheritance diagram for multibase::algorithm:
Inheritance graph
[legend]

Classes

class  block_tag
 
class  stream_tag
 

Public Member Functions

virtual std::size_t block_size ()
 
virtual std::size_t output_size ()
 
virtual std::string process (std::string_view input)=0
 

Detailed Description

Base for an encoder/decoder

Member Function Documentation

◆ block_size()

virtual std::size_t multibase::algorithm::block_size ( )
inlinevirtual

Returns the input size required to decode a single block

Reimplemented in multibase::basic_algorithm< T, Traits >::decoder, and multibase::basic_algorithm< T, Traits >::encoder.

◆ output_size()

virtual std::size_t multibase::algorithm::output_size ( )
inlinevirtual

Returns the size of a processed block

Reimplemented in multibase::basic_algorithm< T, Traits >::decoder, and multibase::basic_algorithm< T, Traits >::encoder.

◆ process()

virtual std::string multibase::algorithm::process ( std::string_view  input)
pure virtual

Processes an input block returning any intermediate result

Implemented in multibase::basic_algorithm< T, Traits >::decoder, and multibase::basic_algorithm< T, Traits >::encoder.


The documentation for this class was generated from the following file: