summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-01-20 16:54:19 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-01-20 16:54:19 +0000
commitcc1be38ff2d4328dd6a0ca0e633b7ecafeee30c6 (patch)
tree94199c7fd7f618b09262ff510d5fa213744e931a /document
parentce14cf6fb4d97902205107968ed0455784a3a3e7 (diff)
Update comments
Diffstat (limited to 'document')
-rw-r--r--document/src/vespa/document/util/bytebuffer.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/document/src/vespa/document/util/bytebuffer.h b/document/src/vespa/document/util/bytebuffer.h
index 004c88b7f30..51ce3cadb98 100644
--- a/document/src/vespa/document/util/bytebuffer.h
+++ b/document/src/vespa/document/util/bytebuffer.h
@@ -75,7 +75,7 @@ public:
/**
* @return Returns the number of bytes remaining in the buffer - that is,
- * getLimit()-getPos().
+ * getLength()-getPos().
*/
uint32_t getRemaining() const { return _len -_pos; }
@@ -85,8 +85,6 @@ public:
* @param pos The number of bytes to move the position. The new position
* will be oldPos + pos. This is the same as doing
* setPos(getPos()+pos)
- * @return True if the position could be moved (it was inside the limit
- * of the buffer).
* @throws BufferOutOfBoundsException;
*/
void incPos(uint32_t pos);
@@ -106,16 +104,6 @@ public:
void getLongNetwork(int64_t & v) { getNumericNetwork(v); }
void getLong(int64_t& v) { getNumeric(v); }
void getDoubleNetwork(double & v) { getNumericNetwork(v); }
-
- /**
- * Reads the given number of bytes into the given pointer, and updates the
- * positition accordingly
- *
- * @param buffer where to store the bytes
- * @param count number of bytes to read
- * @return True if all the bytes could be read, false if end of
- * buffer is reached
- */
void getBytes(void *buffer, uint32_t count);
private: