Tny
A simple data serializer in C
Data Fields
_Tny Struct Reference

Tny is the main type. Every Tny-document consists of chained Tny-elements. More...

#include <tny.h>

Data Fields

struct _Tnyprev
struct _Tnynext
struct _Tnyroot
TnyType type
size_t docSize
size_t * docSizePtr
uint32_t size
char * key
union {
   struct _Tny *   tny
   void *   ptr
   uint64_t   num
   double   flt
   char   chr
value

Detailed Description

Tny is the main type. Every Tny-document consists of chained Tny-elements.


Field Documentation

size_t _Tny::docSize

Contains the size in bytes of the value. If this is the root element, it contains the size of the document.

Points to the docSize element of the root element where the document size is stored.

char* _Tny::key

Contains the key of the element if the document is of type TNY_DICT.

struct _Tny* _Tny::next

Points to the next element.

struct _Tny* _Tny::prev

Points to the previous element.

struct _Tny* _Tny::root

Points to the root element of the document.

uint32_t _Tny::size

Contains the size of the value. If this is the root element, it contains the number of elements stored in the document.

Contains the type of the element. If the element is the root element, it contains the document type.

union { ... } _Tny::value

Union to access the value depending on the type.


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator