[sundance] Add reset completion check
[gpxe.git] / src / include / gpxe / base64.h
blob3321971a1a86ed9ed077d444d876350a8ff35c37
1 #ifndef _GPXE_BASE64_H
2 #define _GPXE_BASE64_H
4 /** @file
6 * Base64 encoding
8 */
10 #include <stdint.h>
12 /**
13 * Calculate length of base64-encoded string
15 * @v raw_len Raw string length (excluding NUL)
16 * @ret encoded_len Encoded string length (excluding NUL)
18 static inline size_t base64_encoded_len ( size_t raw_len ) {
19 return ( ( ( raw_len + 3 - 1 ) / 3 ) * 4 );
22 extern void base64_encode ( const char *raw, char *encoded );
24 #endif /* _GPXE_BASE64_H */