Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Files | Macros | Functions

Files

file  afw_adaptor.h
 Header for interface afw_adaptor* helpers.
 

Macros

#define afw_writer_write_z(writer, s_z, xctx)   afw_writer_write(writer, s_z, strlen(s_z), xctx)
 Call afw_writer_write() with zero terminated string. More...
 
#define afw_writer_write_utf8(writer, S, xctx)   afw_writer_write(writer, (S)->s, (S)->len, xctx)
 Call afw_writer_write() with a afw_utf8_t string. More...
 

Functions

void afw_writer_write_integer (const afw_writer_t *writer, afw_integer_t integer, afw_xctx_t *xctx)
 Call afw_writer_write() with an integer. More...
 
void afw_writer_write_size (const afw_writer_t *writer, afw_size_t size, afw_xctx_t *xctx)
 Call afw_writer_write() with an size. More...
 

Detailed Description

Provide afw_writer interface common support.

Macro Definition Documentation

◆ afw_writer_write_utf8

#define afw_writer_write_utf8 (   writer,
  S,
  xctx 
)    afw_writer_write(writer, (S)->s, (S)->len, xctx)

Call afw_writer_write() with a afw_utf8_t string.

Parameters
writerinstance.
sutf8 string.
xctxof caller.

Definition at line 45 of file afw_writer.h.

◆ afw_writer_write_z

#define afw_writer_write_z (   writer,
  s_z,
  xctx 
)    afw_writer_write(writer, s_z, strlen(s_z), xctx)

Call afw_writer_write() with zero terminated string.

Parameters
writerinstance.
s_zzero terminated string to write.
xctxof caller.

Definition at line 35 of file afw_writer.h.

Function Documentation

◆ afw_writer_write_integer()

void afw_writer_write_integer ( const afw_writer_t writer,
afw_integer_t  integer,
afw_xctx_t xctx 
)

Call afw_writer_write() with an integer.

Parameters
writerinstance.
integerto write as as string.
xctxof caller.

Definition at line 146 of file afw_writer.c.

◆ afw_writer_write_size()

void afw_writer_write_size ( const afw_writer_t writer,
afw_size_t  size,
afw_xctx_t xctx 
)

Call afw_writer_write() with an size.

Parameters
writerinstance.
sizeto write as string.
xctxof caller.

Definition at line 162 of file afw_writer.c.