summaryrefslogtreecommitdiffstats
path: root/src/ByteBuffer.h
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-09 12:38:04 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-09 12:38:04 +0100
commitb2929c9e6ebaa3edbc6f02720e078a2e356d2146 (patch)
treea6a3b6e5ddb7f2c4636c2d75bb5f5b2390cea3fd /src/ByteBuffer.h
parentTurned off Wunused-parameter (diff)
parentAdded static (diff)
downloadcuberite-b2929c9e6ebaa3edbc6f02720e078a2e356d2146.tar
cuberite-b2929c9e6ebaa3edbc6f02720e078a2e356d2146.tar.gz
cuberite-b2929c9e6ebaa3edbc6f02720e078a2e356d2146.tar.bz2
cuberite-b2929c9e6ebaa3edbc6f02720e078a2e356d2146.tar.lz
cuberite-b2929c9e6ebaa3edbc6f02720e078a2e356d2146.tar.xz
cuberite-b2929c9e6ebaa3edbc6f02720e078a2e356d2146.tar.zst
cuberite-b2929c9e6ebaa3edbc6f02720e078a2e356d2146.zip
Diffstat (limited to 'src/ByteBuffer.h')
-rw-r--r--src/ByteBuffer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ByteBuffer.h b/src/ByteBuffer.h
index 5fdf48c28..ed2e10a55 100644
--- a/src/ByteBuffer.h
+++ b/src/ByteBuffer.h
@@ -34,13 +34,13 @@ public:
bool Write(const char * a_Bytes, size_t a_Count);
/// Returns the number of bytes that can be successfully written to the ringbuffer
- int GetFreeSpace(void) const;
+ size_t GetFreeSpace(void) const;
/// Returns the number of bytes that are currently in the ringbuffer. Note GetReadableBytes()
- int GetUsedSpace(void) const;
+ size_t GetUsedSpace(void) const;
/// Returns the number of bytes that are currently available for reading (may be less than UsedSpace due to some data having been read already)
- int GetReadableSpace(void) const;
+ size_t GetReadableSpace(void) const;
/// Returns the current data start index. For debugging purposes.
int GetDataStart(void) const { return m_DataStart; }