Skip to content

Commit

Permalink
TEST: use int instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Robyt3 committed Nov 21, 2024
1 parent 5832dd5 commit 1aae842
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/engine/shared/packer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "compression.h"
#include "packer.h"

CAbstractPacker::CAbstractPacker(unsigned char *pBuffer, size_t Size) :
CAbstractPacker::CAbstractPacker(unsigned char *pBuffer, int Size) :
m_pBuffer(pBuffer),
m_BufferSize(Size)
{
Expand Down
6 changes: 2 additions & 4 deletions src/engine/shared/packer.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,20 @@
#ifndef ENGINE_SHARED_PACKER_H
#define ENGINE_SHARED_PACKER_H

#include <cstddef>

/**
* Abstract packer implementation. Subclasses must supply the buffer.
*/
class CAbstractPacker
{
private:
unsigned char *const m_pBuffer;
const size_t m_BufferSize;
const int m_BufferSize;
unsigned char *m_pCurrent;
unsigned char *m_pEnd;
bool m_Error;

protected:
CAbstractPacker(unsigned char *pBuffer, size_t Size);
CAbstractPacker(unsigned char *pBuffer, int Size);

public:
void Reset();
Expand Down

0 comments on commit 1aae842

Please sign in to comment.