mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-21 23:17:46 +00:00
Allow modification of StreamBuffer (data values, size).
This commit is contained in:
@@ -406,7 +406,7 @@ public:
|
|||||||
return used_ >= capacity_;
|
return used_ >= capacity_;
|
||||||
}
|
}
|
||||||
|
|
||||||
const void* data() const {
|
void* data() const {
|
||||||
return data_;
|
return data_;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -414,6 +414,10 @@ public:
|
|||||||
return used_;
|
return used_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void set_size(const size_t value) {
|
||||||
|
used_ = value;
|
||||||
|
}
|
||||||
|
|
||||||
void empty() {
|
void empty() {
|
||||||
used_ = 0;
|
used_ = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user