Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Unified Diff: runtime/vm/json_stream.h

Issue 1157003003: Add TypedData instance kinds. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/observatory/tests/service/typed_data_test.dart ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/json_stream.h
diff --git a/runtime/vm/json_stream.h b/runtime/vm/json_stream.h
index 4a061787afa18840eb60cb1ff690dfc7ffebcbd2..56732cec9a824223e3023c6039e037d55e09aee5 100644
--- a/runtime/vm/json_stream.h
+++ b/runtime/vm/json_stream.h
@@ -116,6 +116,7 @@ class JSONStream : ValueObject {
void PrintValue(intptr_t i);
void PrintValue64(int64_t i);
void PrintValue(double d);
+ void PrintValueBase64(const uint8_t* bytes, intptr_t length);
void PrintValue(const char* s);
void PrintValue(const char* s, intptr_t len);
void PrintValueNoEscape(const char* s);
@@ -133,6 +134,9 @@ class JSONStream : ValueObject {
void PrintProperty(const char* name, intptr_t i);
void PrintProperty64(const char* name, int64_t i);
void PrintProperty(const char* name, double d);
+ void PrintPropertyBase64(const char* name,
+ const uint8_t* bytes,
+ intptr_t length);
void PrintProperty(const char* name, const char* s);
bool PrintPropertyStr(const char* name, const String& s, intptr_t limit);
void PrintPropertyNoEscape(const char* name, const char* s);
@@ -209,6 +213,11 @@ class JSONObject : public ValueObject {
void AddProperty(const char* name, double d) const {
stream_->PrintProperty(name, d);
}
+ void AddPropertyBase64(const char* name,
+ const uint8_t* bytes,
+ intptr_t length) const {
+ stream_->PrintPropertyBase64(name, bytes, length);
+ }
void AddProperty(const char* name, const char* s) const {
stream_->PrintProperty(name, s);
}
« no previous file with comments | « runtime/observatory/tests/service/typed_data_test.dart ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698