This library provides functions to convert a base64 encoded value to 32bit signed/unsigned integer. More...
#include <vector>#include <string>

Go to the source code of this file.
Functions | |
| long | base64_decode (const std::string &in, const unsigned int startByteIndex, const unsigned int endByteIndex, const unsigned int size, bool isSigned) |
| Function decodes a Base64 string and returns the decoded string (or only parts of it) up to a maximum of 8 byte signed/unsigned data types wrapped in an int64 return value. More... | |
| std::vector< unsigned char > | base64_to_binary (const std::string &in) |
| Decodes a base64 encoded string to bytes. More... | |
| long | convertValue (const unsigned long value, const unsigned int size, bool isSigned) |
| Converts a 32bit signed/unsigned integer from its bit representation to signed 64bit integer. More... | |
| unsigned long | getValueAt (std::vector< unsigned char > &bytes, const unsigned int startByteIndex, const unsigned int endByteIndex) |
| Concatenates bytes from index a to index b of a byte array. More... | |
This library provides functions to convert a base64 encoded value to 32bit signed/unsigned integer.
Definition in file base64Decoder.h.
|
inline |
Function decodes a Base64 string and returns the decoded string (or only parts of it) up to a maximum of 8 byte signed/unsigned data types wrapped in an int64 return value.
This Fuction decodes a Base64 string and returns a specific byte or multiple bytes at the given indices, where this information is converted as a desired datatype and returned as int64. Example for decoding a Base64 string, getting the second byte, reading this value as an int16: base64_decode("Afb/", 1, 2, 16, true).
| [in] | in | input Base64 string. |
| [in] | startByteIndex | index number (starting with zero) of the first byte of the value that has to be read. |
| [in] | endByteIndex | index number (starting with zero) of the last byte of the value that has to be read. |
| [in] | size | size in bits of the value that is to be read from the decoded string. |
| [in] | isSigned | whether the value from the decoded string is to be read as signed or unsigned. |
Definition at line 134 of file base64Decoder.h.
|
inline |
Decodes a base64 encoded string to bytes.
| [in] | in | input string to be decoded |
Definition at line 18 of file base64Decoder.h.
|
inline |
Converts a 32bit signed/unsigned integer from its bit representation to signed 64bit integer.
| [in] | value | input number encoded in 64 bits |
| [in] | size | byte size the output is supposed to have |
| [in] | isSigned | should the output be signed or unsigned? |
Definition at line 91 of file base64Decoder.h.
|
inline |
Concatenates bytes from index a to index b of a byte array.
| [in] | bytes | byte array |
| [in] | startByteIndex | start index a |
| [in] | endByteIndex | end index b |
Definition at line 68 of file base64Decoder.h.