基于链表的实现的环形缓冲,常用于编解码音视频数据环形缓冲区。typedef enum { O_R_BLOCK, O_W_BLOCK, RW_BLOCK, RW_UNBLOCK, }RW_MODE; typedef struct __NodeData{ unsigned char *data; unsigned int len; T_LLIST node; }T_NODE_DATA,*PT_NODE_DATA; typedef struct __RingBuf{ int node_max; int node_num;