gwenhywfar 5.10.1
Macros | Functions
syncio_memory.c File Reference
#include "syncio_memory_p.h"
#include "i18n_l.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>
#include <gwenhywfar/gui.h>
#include <assert.h>
#include <errno.h>
#include <string.h>
Include dependency graph for syncio_memory.c:

Go to the source code of this file.

Macros

#define DISABLE_DEBUGLOG
 

Functions

void GWENHYWFAR_CB GWEN_SyncIo_Memory_FreeData (GWEN_UNUSED void *bp, void *p)
 
GWEN_SYNCIOGWEN_SyncIo_Memory_fromBuffer (const uint8_t *buffer, int size)
 
GWEN_BUFFERGWEN_SyncIo_Memory_GetBuffer (const GWEN_SYNCIO *sio)
 
GWEN_SYNCIOGWEN_SyncIo_Memory_new (GWEN_BUFFER *buffer, int take)
 
int GWENHYWFAR_CB GWEN_SyncIo_Memory_Read (GWEN_SYNCIO *sio, uint8_t *buffer, uint32_t size)
 
GWEN_BUFFERGWEN_SyncIo_Memory_TakeBuffer (const GWEN_SYNCIO *sio)
 
int GWENHYWFAR_CB GWEN_SyncIo_Memory_Write (GWEN_SYNCIO *sio, const uint8_t *buffer, uint32_t size)
 

Macro Definition Documentation

◆ DISABLE_DEBUGLOG

#define DISABLE_DEBUGLOG

Definition at line 29 of file syncio_memory.c.

Function Documentation

◆ GWEN_SyncIo_Memory_FreeData()

void GWENHYWFAR_CB GWEN_SyncIo_Memory_FreeData ( GWEN_UNUSED void *  bp,
void *  p 
)

Definition at line 110 of file syncio_memory.c.

References GWEN_Buffer_free(), and GWEN_FREE_OBJECT.

Referenced by GWEN_SyncIo_Memory_fromBuffer(), and GWEN_SyncIo_Memory_new().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_SyncIo_Memory_fromBuffer()

GWEN_SYNCIO * GWEN_SyncIo_Memory_fromBuffer ( const uint8_t *  buffer,
int  size 
)

◆ GWEN_SyncIo_Memory_GetBuffer()

GWEN_BUFFER * GWEN_SyncIo_Memory_GetBuffer ( const GWEN_SYNCIO sio)

Definition at line 122 of file syncio_memory.c.

References GWEN_INHERIT_GETDATA.

◆ GWEN_SyncIo_Memory_new()

GWEN_SYNCIO * GWEN_SyncIo_Memory_new ( GWEN_BUFFER buffer,
int  take 
)

◆ GWEN_SyncIo_Memory_Read()

int GWENHYWFAR_CB GWEN_SyncIo_Memory_Read ( GWEN_SYNCIO sio,
uint8_t *  buffer,
uint32_t  size 
)

Definition at line 156 of file syncio_memory.c.

References DBG_ERROR, DBG_VERBOUS, GWEN_Buffer_GetBytesLeft(), GWEN_Buffer_GetPosPointer(), GWEN_Buffer_IncrementPos(), GWEN_ERROR_INTERNAL, GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, and NULL.

Referenced by GWEN_SyncIo_Memory_fromBuffer(), and GWEN_SyncIo_Memory_new().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_SyncIo_Memory_TakeBuffer()

GWEN_BUFFER * GWEN_SyncIo_Memory_TakeBuffer ( const GWEN_SYNCIO sio)

Definition at line 135 of file syncio_memory.c.

References DBG_ERROR, GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, and NULL.

◆ GWEN_SyncIo_Memory_Write()

int GWENHYWFAR_CB GWEN_SyncIo_Memory_Write ( GWEN_SYNCIO sio,
const uint8_t *  buffer,
uint32_t  size 
)

Definition at line 188 of file syncio_memory.c.

References DBG_ERROR, DBG_INFO, GWEN_Buffer_AppendBytes(), GWEN_ERROR_INTERNAL, GWEN_INHERIT_GETDATA, GWEN_LOGDOMAIN, and NULL.

Referenced by GWEN_SyncIo_Memory_fromBuffer(), and GWEN_SyncIo_Memory_new().

Here is the call graph for this function:
Here is the caller graph for this function: