fifo refine

This commit is contained in:
2026-06-04 09:57:39 +08:00
parent 1bc0c7afac
commit 2b6c701a6a
3 changed files with 46 additions and 6 deletions
+4
View File
@@ -26,6 +26,8 @@ typedef struct fifo_t{
os_size_t read_idx;
}fifo_t;
#define FIFO_INVALID_POS ((os_size_t)(-1))
/* ==================================================================================================== */
/* 接口 */
@@ -139,4 +141,6 @@ os_size_t fifo_find(fifo_t *rb, os_size_t offset, const void *pattern, os_size_t
unsigned long fifo_strtoul(fifo_t* self, os_size_t* endptr /*从哪里开始转换, 可以为空*/, int base /*0, 8, 10, 16 进制*/);
os_size_t fifo_strstr(fifo_t *self, const char *search);
#endif /*INCLUDED_FIFO_H*/