aura  0.1
 All Data Structures Functions Variables Modules Pages
aura_buffer Struct Reference

#include <aura.h>

Data Fields

uint32_t magic
 
int size
 
int pos
 
struct aura_object * object
 
struct aura_node * owner
 
struct list_head qentry
 
char * data
 

Detailed Description

Represents a buffer (surprize!) that is used for serialization/deserialization

  • The data is stored in NODE endianness.
  • The buffer has an internal data pointer
  • The buffer has an associated object
  • The buffer can be allocated in transport-specific way

Definition at line 333 of file aura.h.

Field Documentation

char* aura_buffer::data

The actual data in this buffer

Definition at line 347 of file aura.h.

Referenced by aura_buffer_get_bin(), aura_buffer_put_bin(), and aura_buffer_request().

uint32_t aura_buffer::magic

Magic value, used for additional sanity-checking

Definition at line 335 of file aura.h.

Referenced by aura_buffer_destroy(), aura_buffer_get_buf(), aura_buffer_release(), and aura_buffer_request().

struct aura_object* aura_buffer::object

object assosiated with this buffer

Definition at line 341 of file aura.h.

Referenced by aura_core_start_call().

struct aura_node* aura_buffer::owner
int aura_buffer::pos

Pointer to the next element

Definition at line 339 of file aura.h.

Referenced by aura_buffer_get_bin(), aura_buffer_put_bin(), aura_buffer_rewind(), and aura_bufferpool_gc().

struct list_head aura_buffer::qentry

list_entry. Used to link buffers in queue keep in buffer pool

Definition at line 345 of file aura.h.

Referenced by aura_buffer_release(), aura_bufferpool_gc(), aura_handle_events_timeout(), aura_peek_buffer(), aura_queue_buffer(), and aura_requeue_buffer().

int aura_buffer::size

Size of the data in this buffer

Definition at line 337 of file aura.h.

Referenced by __attribute__(), aura_buffer_get_bin(), aura_buffer_put_bin(), and aura_buffer_request().


The documentation for this struct was generated from the following file: