Go to the source code of this file.
|
bool | zrtos_stack__init (zrtos_stack_t *thiz, void *data, size_t length) |
|
static bool | _zrtos_stack__cpy (zrtos_stack_t *thiz, void *dest, void *src, size_t length, size_t offset_plus_length) |
|
static bool | zrtos_stack__get_offset_ex (zrtos_stack_t *thiz, size_t offset, bool is_relative, bool is_negative, size_t *new_offset) |
|
bool | zrtos_stack__set_offset_ex (zrtos_stack_t *thiz, size_t offset, bool is_relative, bool is_negative) |
|
bool | zrtos_stack__read (zrtos_stack_t *thiz, void *data, size_t length, size_t offset) |
|
bool | zrtos_stack__read_ex (zrtos_stack_t *thiz, void *data, size_t length, size_t offset, bool is_relative, bool is_negative) |
|
bool | zrtos_stack__write (zrtos_stack_t *thiz, void *data, size_t length, size_t offset) |
|
bool | zrtos_stack__write_ex (zrtos_stack_t *thiz, void *data, size_t length, size_t offset, bool is_relative, bool is_negative) |
|
bool | zrtos_stack__push (zrtos_stack_t *thiz, void *data, size_t length) |
|
bool | zrtos_stack__pop (zrtos_stack_t *thiz, void *data, size_t length) |
|
bool | zrtos_stack__shift (zrtos_stack_t *thiz, void *data, size_t length) |
|
bool | zrtos_stack__set_offset (zrtos_stack_t *thiz, size_t offset) |
|
size_t | zrtos_stack__get_offset (zrtos_stack_t *thiz) |
|
◆ zrtos_stack_t
◆ _zrtos_stack__cpy()
Definition at line 36 of file stack.h.
43 if(offset_plus_length <= thiz->length){
void zrtos_mem__cpy(void *dest, void *src, size_t length)
◆ zrtos_stack__get_offset()
◆ zrtos_stack__get_offset_ex()
static bool zrtos_stack__get_offset_ex |
( |
zrtos_stack_t * |
thiz, |
|
|
size_t |
offset, |
|
|
bool |
is_relative, |
|
|
bool |
is_negative, |
|
|
size_t * |
new_offset |
|
) |
| |
|
static |
Definition at line 54 of file stack.h.
62 size_t thiz_offset = thiz->
offset;
65 && thiz_offset >= offset){
66 *new_offset = thiz_offset - offset;
67 }
else if(thiz->
length - thiz_offset >= offset){
68 *new_offset = thiz_offset + offset;
73 if(offset <= thiz->length){
◆ zrtos_stack__init()
◆ zrtos_stack__pop()
Definition at line 201 of file stack.h.
206 size_t offset = thiz->
offset;
207 if(offset >= length){
208 offset = (thiz->
offset = offset - length);
void zrtos_mem__cpy(void *dest, void *src, size_t length)
void * zrtos_types__ptr_add(void *ptr, size_t byte_len)
◆ zrtos_stack__push()
Definition at line 179 of file stack.h.
184 size_t offset = thiz->
offset;
static bool _zrtos_stack__cpy(zrtos_stack_t *thiz, void *dest, void *src, size_t length, size_t offset_plus_length)
void * zrtos_types__ptr_add(void *ptr, size_t byte_len)
◆ zrtos_stack__read()
Definition at line 97 of file stack.h.
static bool _zrtos_stack__cpy(zrtos_stack_t *thiz, void *dest, void *src, size_t length, size_t offset_plus_length)
void * zrtos_types__ptr_add(void *ptr, size_t byte_len)
◆ zrtos_stack__read_ex()
bool zrtos_stack__read_ex |
( |
zrtos_stack_t * |
thiz, |
|
|
void * |
data, |
|
|
size_t |
length, |
|
|
size_t |
offset, |
|
|
bool |
is_relative, |
|
|
bool |
is_negative |
|
) |
| |
Definition at line 115 of file stack.h.
bool zrtos_stack__read(zrtos_stack_t *thiz, void *data, size_t length, size_t offset)
static bool zrtos_stack__get_offset_ex(zrtos_stack_t *thiz, size_t offset, bool is_relative, bool is_negative, size_t *new_offset)
◆ zrtos_stack__set_offset()
Definition at line 243 of file stack.h.
247 if(offset <= thiz->length){
◆ zrtos_stack__set_offset_ex()
bool zrtos_stack__set_offset_ex |
( |
zrtos_stack_t * |
thiz, |
|
|
size_t |
offset, |
|
|
bool |
is_relative, |
|
|
bool |
is_negative |
|
) |
| |
Definition at line 82 of file stack.h.
static bool zrtos_stack__get_offset_ex(zrtos_stack_t *thiz, size_t offset, bool is_relative, bool is_negative, size_t *new_offset)
◆ zrtos_stack__shift()
Definition at line 222 of file stack.h.
227 size_t offset = thiz->
offset;
228 if(offset + length <= thiz->length){
void zrtos_mem__cpy(void *dest, void *src, size_t length)
void * zrtos_types__ptr_add(void *ptr, size_t byte_len)
◆ zrtos_stack__write()
Definition at line 138 of file stack.h.
static bool _zrtos_stack__cpy(zrtos_stack_t *thiz, void *dest, void *src, size_t length, size_t offset_plus_length)
void * zrtos_types__ptr_add(void *ptr, size_t byte_len)
◆ zrtos_stack__write_ex()
bool zrtos_stack__write_ex |
( |
zrtos_stack_t * |
thiz, |
|
|
void * |
data, |
|
|
size_t |
length, |
|
|
size_t |
offset, |
|
|
bool |
is_relative, |
|
|
bool |
is_negative |
|
) |
| |
Definition at line 156 of file stack.h.
bool zrtos_stack__write(zrtos_stack_t *thiz, void *data, size_t length, size_t offset)
static bool zrtos_stack__get_offset_ex(zrtos_stack_t *thiz, size_t offset, bool is_relative, bool is_negative, size_t *new_offset)