|
@@ -39,7 +39,7 @@ class StringBuffer {
|
|
|
|
|
|
CharType short_buffer[SHORT_BUFFER_SIZE];
|
|
CharType short_buffer[SHORT_BUFFER_SIZE];
|
|
String buffer;
|
|
String buffer;
|
|
- int string_length = 0;
|
|
|
|
|
|
+ int string_length;
|
|
|
|
|
|
_FORCE_INLINE_ CharType *current_buffer_ptr() {
|
|
_FORCE_INLINE_ CharType *current_buffer_ptr() {
|
|
return static_cast<Vector<CharType> &>(buffer).empty() ? short_buffer : buffer.ptrw();
|
|
return static_cast<Vector<CharType> &>(buffer).empty() ? short_buffer : buffer.ptrw();
|
|
@@ -79,6 +79,10 @@ public:
|
|
_FORCE_INLINE_ operator String() {
|
|
_FORCE_INLINE_ operator String() {
|
|
return as_string();
|
|
return as_string();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ StringBuffer() {
|
|
|
|
+ string_length = 0;
|
|
|
|
+ }
|
|
};
|
|
};
|
|
|
|
|
|
template <int SHORT_BUFFER_SIZE>
|
|
template <int SHORT_BUFFER_SIZE>
|