Index: runtime/platform/text_buffer.cc |
diff --git a/runtime/platform/text_buffer.cc b/runtime/platform/text_buffer.cc |
index b9c6ac7515bee735dc004f2deb3b71d75e462ec3..23e1dcf6aeb38e6f278562b16ad86df8311ccda9 100644 |
--- a/runtime/platform/text_buffer.cc |
+++ b/runtime/platform/text_buffer.cc |
@@ -48,6 +48,13 @@ void TextBuffer::AddChar(char ch) { |
} |
+void TextBuffer::AddRaw(const uint8_t* buffer, |
+ intptr_t buffer_length) { |
+ for (intptr_t i = 0; i < buffer_length; i++) { |
rmacnak
2016/03/14 23:08:11
Why not
EnsureCapacity(buffer_length)
memmov(&buf
Cutch
2016/03/15 14:58:17
Done.
|
+ AddChar(buffer[i]); |
+ } |
+} |
+ |
intptr_t TextBuffer::Printf(const char* format, ...) { |
va_list args; |
va_start(args, format); |