Base64 data types. More...


typedef gos_result_t(* gos_base64_writer_t) (void *user, const void *data, uint32_t length)
 Base64 encode writer. More...
typedef gos_result_t(* gos_base64_reader_t) (void *user, void *data, uint32_t length, uint32_t *bytes_read)
 Base64 decode reader callback. More...
typedef void * gos_base64_encode_context_t
 Base64 encoder context See gos_base64_encode_with_writer()
typedef void * gos_base64_decode_context_t
 Base64 decoder context. More...

Detailed Description

Base64 data types.

Typedef Documentation

◆ gos_base64_decode_context_t

Base64 decoder context.

See gos_base64_decode_with_reader()

◆ gos_base64_reader_t

typedef gos_result_t(* gos_base64_reader_t) (void *user, void *data, uint32_t length, uint32_t *bytes_read)

Base64 decode reader callback.

This is a callback which reads base64 encoded data. See gos_base64_decode_with_reader()

[in]userUser specified argument, supplied in 'user' argument of base64_init_decode_context()
[out]dataBuffer to hold base64 encoded data
[in]lengthLength of data buffer
[out]bytes_readPointer to hold number of bytes read
return of reader callback, gos_result_t

◆ gos_base64_writer_t

typedef gos_result_t(* gos_base64_writer_t) (void *user, const void *data, uint32_t length)

Base64 encode writer.

This is a callback which writes base64 encoded data. See gos_base64_encode_with_writer()

[in]userUser specified argument, supplied in 'user' argument of base64_init_encode_context()
[in]database64 encoded data to write
[in]lengthLength of data buffer
return of writer callback, gos_result_t