O2S C Library 1.8.2
Provide high-level data-structures and other fundamental tools for C projects
Loading...
Searching...
No Matches
internals.c File Reference

Private deque methods. More...

#include "private.h"
#include "o2s/deque.h"

Go to the source code of this file.

Functions

size_t deque_offset (const deque_t *self, size_t count)
 The size in memory of count elements.
size_t deque_room (const deque_t *self)
 The remaining number of elements that can be added.
void * deque_begin (const deque_t *self)
 Pointer to the start of the underlying storage.
void * deque_end (const deque_t *self)
 Pointer one-past-the-end of the underlying storage.
void * deque_pointer_after (const deque_t *self, void *pointer)
 The next slot.
void * deque_pointer_before (const deque_t *self, void *pointer)
 The previous slot.
size_t deque_distance (const deque_t *self, const void *one, const void *two)
 Number of elements in the range delimited by the two provided elements.

Detailed Description

Private deque methods.

Author
Antoine GAGNIERE

Definition in file internals.c.