SDK for TESAIoT Dev Kit
API reference & tutorials (ModusToolbox)
Loading...
Searching...
No Matches
nus_base64.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  nus_b64_state_t

Typedefs

typedef int(*) nus_b64_sink_t(const uint8_t *bytes, size_t len, void *ctx)

Functions

void nus_b64_init (nus_b64_state_t *s, nus_b64_sink_t sink, void *ctx)
 Reset a caller-owned decoder state and wire the sink; nothing is buffered whole in RAM.
int nus_b64_feed (nus_b64_state_t *s, const uint8_t *b64, size_t len)
 Feed one chunk of base64 text; the state carries a split 4-char quantum across chunks.
int nus_b64_flush (nus_b64_state_t *s)
 Flush any trailing carry; call at file_end.

Typedef Documentation

◆ nus_b64_sink_t

typedef int(*) nus_b64_sink_t(const uint8_t *bytes, size_t len, void *ctx)