Files
Client/Server/AdminTool/AdminToolLibrary/network/buffer/RYL_CumulateBuffer.h
LGram16 dd97ddec92 Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code:
- Client: Game client source (moved to Client/Client/)
- Server: Game server source
- GameTools: Development tools
- CryptoSource: Encryption utilities
- database: Database scripts
- Script: Game scripts
- rylCoder_16.02.2008_src: Legacy coder tools
- GMFont, Game: Additional resources

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 20:17:20 +09:00

33 lines
622 B
C++

#ifndef _CUMULATE_BUFFER_H_
#define _CUMULATE_BUFFER_H_
class CBuffer;
class CSession;
// 패킷 누적버퍼
class CCumulateBuffer
{
public:
CCumulateBuffer(unsigned long BufferLength, CSession* pSession);
~CCumulateBuffer();
char* GetBuffer(unsigned int Length); // 할당된 버퍼 얻기
bool SendAll(); // 현재 버퍼에 있는 내용을 전부 보내기
// 사용중인 버퍼길이 강제 조정
void ResizeLength(unsigned int FillLength) { m_FillLength = FillLength; }
private:
char* m_lpBuffer;
char* m_lpNowPos;
char* m_lpEndPos;
CSession* m_lpSession;
unsigned int m_FillLength;
unsigned int m_BufferLength;
};
#endif