Rev 304 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
245 | killagreg | 1 | #ifndef __BUFFER_H |
2 | #define __BUFFER_H |
||
3 | |||
4 | typedef struct |
||
5 | { |
||
6 | u8* pData; |
||
7 | u16 Size; |
||
8 | u16 DataBytes; |
||
9 | u16 Position; |
||
10 | u8 Locked; |
||
11 | } __attribute__((packed)) Buffer_t; |
||
12 | |||
13 | void Buffer_Init(Buffer_t* pBuffer, u8* pDataBuffer, u16 DataBufferSize); |
||
14 | void Buffer_Clear(Buffer_t* pBuffer); |
||
15 | u8 Buffer_Copy(Buffer_t* pSrcBuffer, Buffer_t* pDstBuffer); |
||
16 | #endif // __BUFFER_H |