forked from LosaDev/ls-2019-source
LosaDev source snapshot 2019
This commit is contained in:
commit
c198676e97
20588 files changed
+8812878
No files matched your search
@@ -0,0 +1,38 @@
|
||||
#pragma once
|
||||
|
||||
#include "cIocpOv.h"
|
||||
|
||||
|
||||
class cDoubleOV
|
||||
{
|
||||
public:
|
||||
cDoubleOV(void);
|
||||
~cDoubleOV(void);
|
||||
|
||||
void Init();
|
||||
void Destroy();
|
||||
|
||||
public:
|
||||
void Reset();
|
||||
|
||||
uint32 GetDataLength();
|
||||
uint32 GetBufferLength();
|
||||
BOOL IsSending();
|
||||
|
||||
void Alloc(const uint32 bufferLength);
|
||||
void CopyBuffer(const uint8* buffer, const uint32 bufferLength);
|
||||
BOOL AppendBuffer(const uint8* buffer, const uint32 bufferLength);
|
||||
BOOL Appendable(const uint32 bufferLength);
|
||||
|
||||
cIocpOv* Pop();
|
||||
void Push(cIocpOv* iocpOvl);
|
||||
|
||||
protected:
|
||||
uint32 GetIterator();
|
||||
|
||||
protected:
|
||||
cIocpOv m_iocpOV[2];
|
||||
uint32 m_iterator;
|
||||
volatile uint32 m_sending;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user