CatapultServer  v0.5.0.1 (Elephant)
Base32.h File Reference
Include dependency graph for Base32.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 catapult
 
 catapult::utils
 

Functions

constexpr size_t catapult::utils::GetEncodedDataSize (size_t decodedSize)
 Gets the encoded size of decoded data with size decodedSize. More...
 
bool catapult::utils::TryBase32Encode (const RawBuffer &data, const MutableRawString &encodedData)
 
void catapult::utils::Base32Encode (const RawBuffer &data, const MutableRawString &encodedData)
 
std::string catapult::utils::Base32Encode (const RawBuffer &data)
 Encodes an array of bytes pointed to by data. The size must be a multiple of 5. More...
 
constexpr size_t catapult::utils::GetDecodedDataSize (size_t encodedSize)
 Gets the decoded size of encoded data with size encodedSize. More...
 
bool catapult::utils::TryBase32Decode (const RawString &encodedData, const MutableRawBuffer &data)
 
void catapult::utils::Base32Decode (const RawString &encodedData, const MutableRawBuffer &data)
 
template<size_t N>
std::array< uint8_t, N > catapult::utils::Base32Decode (const RawString &encodedData)
 Decodes a base32 encoded string pointed to by encodedData. The string length must be a multiple of 8. More...
 

Variables

const uint32_t catapult::utils::Base32_Decoded_Block_Size = 5
 
const uint32_t catapult::utils::Base32_Encoded_Block_Size = 8