mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-09-24 14:58:30 -04:00
Allow modification of StreamBuffer (data values, size).
This commit is contained in:
parent
b69a3abcb5
commit
414dd41577
1 changed files with 5 additions and 1 deletions
|
@ -406,7 +406,7 @@ public:
|
|||
return used_ >= capacity_;
|
||||
}
|
||||
|
||||
const void* data() const {
|
||||
void* data() const {
|
||||
return data_;
|
||||
}
|
||||
|
||||
|
@ -414,6 +414,10 @@ public:
|
|||
return used_;
|
||||
}
|
||||
|
||||
void set_size(const size_t value) {
|
||||
used_ = value;
|
||||
}
|
||||
|
||||
void empty() {
|
||||
used_ = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue