Snapdragon® Telematics Application Framework (TelAF) Interface Specification
le_base64.h
Go to the documentation of this file.
1 
69 //--------------------------------------------------------------------------------------------------
76 //--------------------------------------------------------------------------------------------------
77 
78 #ifndef LEGATO_BASE64_INCLUDE_GUARD
79 #define LEGATO_BASE64_INCLUDE_GUARD
80 
81 //--------------------------------------------------------------------------------------------------
86 //--------------------------------------------------------------------------------------------------
87 #define LE_BASE64_ENCODED_SIZE(x) (4 * ((x + 2) / 3))
88 
89 //--------------------------------------------------------------------------------------------------
98 //--------------------------------------------------------------------------------------------------
100 (
101  const uint8_t *dataPtr,
102  size_t dataLength,
103  char *resultPtr,
104  size_t *resultSizePtr
105 );
106 
107 //--------------------------------------------------------------------------------------------------
117 //--------------------------------------------------------------------------------------------------
119 (
120  const char *srcPtr,
121  size_t srcLen,
122  uint8_t *dstPtr,
123  size_t *dstLenPtr
124 );
125 
126 #endif // LEGATO_BASE64_INCLUDE_GUARD
le_result_t le_base64_Encode(const uint8_t *dataPtr, size_t dataLength, char *resultPtr, size_t *resultSizePtr)
le_result_t le_base64_Decode(const char *srcPtr, size_t srcLen, uint8_t *dstPtr, size_t *dstLenPtr)
const char le_result_t * resultPtr
< [OUT] Return Code
Definition: le_comm.h:50
le_result_t
Definition: le_basics.h:45