codec_plain.c 571 B

1234567891011121314151617181920212223242526272829303132333435
  1. #include <stdint.h>
  2. #include <stddef.h>
  3. #include <stdlib.h>
  4. #include <string.h>
  5. #include "libbase64.h"
  6. #include "codecs.h"
  7. void
  8. plain64_base64_stream_encode
  9. ( struct plain64_base64_state *state
  10. , const char *src
  11. , size_t srclen
  12. , char *out
  13. , size_t *outlen
  14. )
  15. {
  16. #include "enc_head.c"
  17. #include "enc_uint64.c"
  18. #include "enc_tail.c"
  19. }
  20. int
  21. plain64_base64_stream_decode
  22. ( struct plain64_base64_state *state
  23. , const char *src
  24. , size_t srclen
  25. , char *out
  26. , size_t *outlen
  27. )
  28. {
  29. #include "dec_head.c"
  30. #include "dec_uint64.c"
  31. #include "dec_tail.c"
  32. }