summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-11-23 08:51:28 -0800
committerPixel <pixel@nobis-crew.org>2011-11-23 08:51:28 -0800
commit5cf8bb586ec6b88e5940f52f167a788ab25dd596 (patch)
tree6a96dbf1473c7bb65338929647f940b908e59161
parentb78404d7662298a27706bc08e86e9bde7a6baa66 (diff)
That would make way more sense to the fromConst Buffer to have its size set up, wouldn't it ?
-rw-r--r--includes/Buffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/Buffer.h b/includes/Buffer.h
index be86162..b6e8159 100644
--- a/includes/Buffer.h
+++ b/includes/Buffer.h
@@ -6,7 +6,7 @@ namespace Balau {
class Buffer : public SeekableHandle {
public:
- Buffer(const uint8_t * buffer) : m_buffer(const_cast<uint8_t *>(buffer)), m_fromConst(true) { }
+ Buffer(const uint8_t * buffer, size_t s) : m_buffer(const_cast<uint8_t *>(buffer)), m_bufSize(s), m_fromConst(true) { }
Buffer() throw (GeneralException) : m_buffer(NULL), m_fromConst(false), m_bufSize(0), m_numBlocks(0) { }
virtual ~Buffer();
virtual void close() throw (GeneralException);