Skip to content

File baton_queue.c

FileList > src > baton_queue.c

Go to the source code of this file

  • #include <stddef.h>
  • #include <string.h>
  • #include "baton_defs.h"
  • #include "baton_queue.h"

Public Static Functions

Type Name
uint16_t align4 (uint16_t value)
uint16_t normalize (const struct baton_queue * queue, uint16_t offset, uint16_t tail)
Continue at offset 0 when no header fits at offset or a SKIP marker is there.

Macros

Type Name
define REC_DST 14U
define REC_FLAGS 15U
define REC_INFLIGHT 4U
define REC_LENGTH 13U
define REC_MSG_ID 12U
define REC_PENDING 0U
Byte offsets of the header fields inside a record.
define REC_STAMP 8U

Public Static Functions Documentation

function align4

static uint16_t align4 (
    uint16_t value
) 

function normalize

Continue at offset 0 when no header fits at offset or a SKIP marker is there.

static uint16_t normalize (
    const struct baton_queue * queue,
    uint16_t offset,
    uint16_t tail
) 


Macro Definition Documentation

define REC_DST

#define REC_DST `14U`

define REC_FLAGS

#define REC_FLAGS `15U`

define REC_INFLIGHT

#define REC_INFLIGHT `4U`

define REC_LENGTH

#define REC_LENGTH `13U`

define REC_MSG_ID

#define REC_MSG_ID `12U`

define REC_PENDING

Byte offsets of the header fields inside a record.

#define REC_PENDING `0U`


define REC_STAMP

#define REC_STAMP `8U`


The documentation for this class was generated from the following file src/baton_queue.c