tables.h 704 B

123456789101112131415161718192021222324
  1. #ifndef BASE64_TABLES_H
  2. #define BASE64_TABLES_H
  3. #include <stdint.h>
  4. #include "../env.h"
  5. // These tables are used by all codecs for fallback plain encoding/decoding:
  6. extern const uint8_t base64_table_enc_6bit[];
  7. extern const uint8_t base64_table_dec_8bit[];
  8. // These tables are used for the 32-bit and 64-bit generic decoders:
  9. #if BASE64_WORDSIZE >= 32
  10. extern const uint32_t base64_table_dec_32bit_d0[];
  11. extern const uint32_t base64_table_dec_32bit_d1[];
  12. extern const uint32_t base64_table_dec_32bit_d2[];
  13. extern const uint32_t base64_table_dec_32bit_d3[];
  14. // This table is used by the 32 and 64-bit generic encoders:
  15. extern const uint16_t base64_table_enc_12bit[];
  16. #endif
  17. #endif // BASE64_TABLES_H