Software APIs
ujson Struct Reference

Input/Output context for ujson. More...

#include <sw/device/lib/ujson/ujson.h>

Data Fields

void * io_context
 A generic pointer holding context for the IO routines.
 
status_t(* putbuf )(void *, const char *, size_t)
 A pointer to an IO function for writing data to the output.
 
status_t(* getc )(void *)
 A pointer to an IO function for reading data from the input.
 
int16_t buffer
 An internal single character buffer for ungetting a character.
 
uint32_t crc32
 Holds the rolling CRC32 of characters that are sent and received.
 

Detailed Description

Input/Output context for ujson.

Definition at line 17 of file ujson.h.

Field Documentation

◆ buffer

int16_t ujson::buffer

An internal single character buffer for ungetting a character.

Definition at line 25 of file ujson.h.

◆ crc32

uint32_t ujson::crc32

Holds the rolling CRC32 of characters that are sent and received.

Definition at line 27 of file ujson.h.

◆ getc

status_t(* ujson::getc) (void *)

A pointer to an IO function for reading data from the input.

Definition at line 23 of file ujson.h.

◆ io_context

void* ujson::io_context

A generic pointer holding context for the IO routines.

Definition at line 19 of file ujson.h.

◆ putbuf

status_t(* ujson::putbuf) (void *, const char *, size_t)

A pointer to an IO function for writing data to the output.

Definition at line 21 of file ujson.h.