NewMadeleine

Documentation

« back to PM2 home.
nm_flypack.h File Reference

flypack: primitives for packing data on the fly. More...

Include dependency graph for nm_flypack.h:

Go to the source code of this file.

Data Structures

struct  flypack_data_s
 

Macros

#define FLYPACK_CHUNK_SIZE   16
 

Functions

static void flypack_traversal (const void *_content, struct nm_data_op_s *p_op) __attribute__((unused))
 
 NM_DATA_TYPE (flypack, struct flypack_data_s, &flypack_ops)
 
static nm_len_t flypack_chunk_size (void)
 
static void flypack_import (char *p_flypack_buffer, const char *p_buf, nm_len_t len)
 
static void flypack_export (const char *p_flypack_buffer, char *p_buf, nm_len_t len)
 

Variables

static const struct nm_data_ops_s flypack_ops
 

Detailed Description

flypack: primitives for packing data on the fly.

Definition in file nm_flypack.h.

Macro Definition Documentation

◆ FLYPACK_CHUNK_SIZE

#define FLYPACK_CHUNK_SIZE   16

Definition at line 22 of file nm_flypack.h.

Function Documentation

◆ flypack_chunk_size()

static nm_len_t flypack_chunk_size ( void  )
static

Definition at line 39 of file nm_flypack.h.

References FLYPACK_CHUNK_SIZE.

Referenced by flypack_export(), flypack_import(), and flypack_traversal().

◆ flypack_export()

static void flypack_export ( const char *  p_flypack_buffer,
char *  p_buf,
nm_len_t  len 
)
inlinestatic

Definition at line 93 of file nm_flypack.h.

References flypack_chunk_size(), and len.

Here is the call graph for this function:

◆ flypack_import()

static void flypack_import ( char *  p_flypack_buffer,
const char *  p_buf,
nm_len_t  len 
)
inlinestatic

Definition at line 78 of file nm_flypack.h.

References flypack_chunk_size(), and len.

Here is the call graph for this function:

◆ flypack_traversal()

static void flypack_traversal ( const void *  _content,
struct nm_data_op_s p_op 
)
static

Definition at line 58 of file nm_flypack.h.

References flypack_data_s::buf, flypack_chunk_size(), flypack_data_s::len, len, nm_data_op_apply(), NM_DATA_OP_APPLY_LOOP, and p_op.

Here is the call graph for this function:

◆ NM_DATA_TYPE()

NM_DATA_TYPE ( flypack  ,
struct flypack_data_s  ,
flypack_ops 
)

Variable Documentation

◆ flypack_ops

const struct nm_data_ops_s flypack_ops
static
Initial value:
=
{
.p_traversal = &flypack_traversal
}
static void flypack_traversal(const void *_content, struct nm_data_op_s *p_op) __attribute__((unused))
Definition nm_flypack.h:58

Definition at line 32 of file nm_flypack.h.