/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to libssts/RingBuffer.h

  • Committer: Gustav Hartvigsson
  • Date: 2016-01-30 21:23:29 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20160130212329-cjpxy0vn851li8f3
* added S_EXPERTED to public functions.
* renamed -  internal_s_box_set_err_on_missmatch () to _internal_s_box_set_err_on_missmatch ().
* Replaced some tabs with spaces.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
 *
57
57
 * @param len The number of items to 
58
58
 */
 
59
S_EXPORTED
59
60
SRingBuffer *
60
61
s_ring_buffer_new (size_t len);
61
62
 
64
65
 *
65
66
 * @param self The SRingBuffer to free.
66
67
 */
 
68
S_EXPORTED
67
69
void
68
70
s_ring_buffer_free (SRingBuffer * self);
69
71
 
70
72
/**
71
73
 * determine 
72
74
 */
 
75
S_EXPORTED
73
76
sboolean
74
77
s_ring_buffer_is_empty (SRingBuffer * self);
75
78
 
77
80
 * Add data to the front of the ringbuffer.
78
81
 * 
79
82
 */
 
83
S_EXPORTED
80
84
void
81
85
s_ring_buffer_push (SRingBuffer * self,
82
86
                    sbyte data);
84
88
/**
85
89
 * add an item to the back of the ringbuffer.
86
90
 */
 
91
S_EXPORTED
87
92
void
88
93
s_ring_buffer_push_back (SRingBuffer * self,
89
94
                         sbyte data);
91
96
/**
92
97
 * Pop an item from the front of the array.
93
98
 */
 
99
S_EXPORTED
94
100
sbyte
95
101
s_ring_buffer_pop (SRingBuffer * self);
96
102
 
97
103
/**
98
104
 * Pop the back of the array.
99
105
 */
 
106
S_EXPORTED
100
107
sbyte
101
108
s_ring_buffer_pop_back (SRingBuffer * self);
102
109
 
106
113
 * @param self The SRingBuffer to reallocate.
107
114
 * @param len The new length.
108
115
 */
 
116
S_EXPORTED
109
117
void
110
118
s_ring_buffer_realloc (SRingBuffer * self,
111
119
                       size_t len);
113
121
/**
114
122
 * Get the current length of the ring buffer.
115
123
 */
 
124
S_EXPORTED
116
125
size_t
117
126
s_ring_buffer_len (SRingBuffer * self);
118
127
 
119
128
/**
120
129
 * Get the total size of the internal array.
121
130
 */
 
131
S_EXPORTED
122
132
size_t
123
133
s_ring_buffer_size (SRingBuffer * self);
124
134
 
148
158
 *
149
159
 * To prevent warnings cast the function using the @c FOREACHFUNC() macro.
150
160
 */
 
161
S_EXPORTED
151
162
void
152
163
s_ring_buffer_for_each (SRingBuffer * self,
153
164
                        ForEachFunc func,