mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Add SeritalIter::skip
This commit is contained in:
@@ -369,6 +369,9 @@ public:
|
||||
Blob
|
||||
getVL();
|
||||
|
||||
void
|
||||
skip (int num);
|
||||
|
||||
Buffer
|
||||
getVLBuffer();
|
||||
|
||||
|
||||
@@ -433,6 +433,17 @@ SerialIter::reset() noexcept
|
||||
used_ = 0;
|
||||
}
|
||||
|
||||
void
|
||||
SerialIter::skip (int length)
|
||||
{
|
||||
if (remain_ < length)
|
||||
throw std::runtime_error(
|
||||
"invalid SerialIter skip");
|
||||
p_ += length;
|
||||
used_ += length;
|
||||
remain_ -= length;
|
||||
}
|
||||
|
||||
unsigned char
|
||||
SerialIter::get8()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user