📄 buffer.h
字号:
/**
* @defgroup TDAPI_UTIL_FIFO FIFO Management
*
* @{
*/
/** The header of the FIFO buffer. */
typedef struct FifoStruct
{
Byte ucHead; /**< Head index */
Byte ucTail; /**< Tail index */
Byte ucSize; /**< Buffer size */
Byte ucData[1]; /**< the first byte of the buffer */
} FifoStruct;
typedef FifoStruct * FifoHandle;
#define tdInitFIFO(gpFIFOBuffer, cLength) (tdInitFIFO2(gpFIFOBuffer, cLength), (FifoHandle)gpFIFOBuffer)
void tdInitFIFO2(Byte * gpFIFOBuffer, Byte cLength);
Bool tdGetFIFO(FifoHandle fh, Byte * apData);
Bool tdSetFIFO(FifoHandle fh, Byte ucData) ;
void tdClearFIFO(FifoHandle fh) ;
Bool tdFIFOIsEmpty(FifoHandle fh) ;
Bool tdFIFOIsFull(FifoHandle fh) ;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -