Merge branch 'master' into d3d12
This commit is contained in:
commit
95ed3ea158
|
@ -27,7 +27,10 @@ StringBuffer::~StringBuffer() {
|
||||||
buffer_ = nullptr;
|
buffer_ = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
void StringBuffer::Reset() { buffer_offset_ = 0; }
|
void StringBuffer::Reset() {
|
||||||
|
buffer_offset_ = 0;
|
||||||
|
buffer_[0] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
void StringBuffer::Grow(size_t additional_length) {
|
void StringBuffer::Grow(size_t additional_length) {
|
||||||
if (buffer_offset_ + additional_length <= buffer_capacity_) {
|
if (buffer_offset_ + additional_length <= buffer_capacity_) {
|
||||||
|
|
Loading…
Reference in New Issue