ua_base64.h 561 B

1234567891011121314151617181920
  1. /*
  2. * ua_base64.h
  3. *
  4. * Created on: Jun 10, 2014
  5. * Author: sten
  6. */
  7. #ifndef UA_BASE64_H_
  8. #define UA_BASE64_H_
  9. #include "ua_basictypes.h"
  10. /** @brief calculates the exact size for the binary data that is encoded in base64 encoded string */
  11. UA_Int32 UA_base64_getDecodedSize(UA_String* const base64EncodedData);
  12. /** @brief decodes base64 encoded string into target, target should be at least of the size returned by UA_base64_getDecodedSizeUB */
  13. UA_Int32 UA_base64_decode(UA_String* const base64EncodedData, UA_Byte* target);
  14. #endif /* UA_BASE64_H_ */