32 #ifndef _NPT_RING_BUFFER_H_ 33 #define _NPT_RING_BUFFER_H_ 39 #include "NptReferences.h" 51 NPT_Size GetSpace()
const;
52 NPT_Size GetContiguousSpace()
const;
53 NPT_Result Write(
const void* buffer, NPT_Size byte_count);
54 NPT_Size GetAvailable()
const;
55 NPT_Size GetContiguousAvailable()
const;
56 NPT_Result Read(
void* buffer, NPT_Size byte_count);
57 unsigned char ReadByte();
58 unsigned char PeekByte(NPT_Position offset);
59 NPT_Result MoveIn(NPT_Position offset);
60 NPT_Result MoveOut(NPT_Position offset);
63 bool IsClosed() {
return m_Closed; }
66 unsigned char* GetWritePointer() {
return m_In; }
67 unsigned char* GetReadPointer() {
return m_Out;}
83 #endif // _NPT_RING_BUFFER_H_ Definition: NptRingBuffer.h:44