|
SDK สำหรับ TESAIoT Dev Kit
คู่มืออ้างอิง API และ Tutorial (MTB & µPython)
|
#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) |
| รีเซ็ตสถานะ decoder ที่ผู้เรียกเป็นเจ้าของแล้วต่อ sink เข้าไป ไม่มีการพักข้อมูลทั้งก้อนไว้ใน RAM | |
| int | nus_b64_feed (nus_b64_state_t *s, const uint8_t *b64, size_t len) |
| ป้อนข้อความ base64 ทีละ chunk สถานะจะพา quantum ขนาด 4 อักขระที่ถูกแบ่งข้าม chunk ไปด้วย | |
| int | nus_b64_flush (nus_b64_state_t *s) |
| เขียนค่าที่ค้างท้ายลงจริง ให้เรียกตอน file_end | |
| typedef int(*) nus_b64_sink_t(const uint8_t *bytes, size_t len, void *ctx) |