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

Unified Diff: sdk/lib/_internal/lib/convert_patch.dart

Issue 144473004: Make _Utf8Encoder create its buffer through an external function. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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
Index: sdk/lib/_internal/lib/convert_patch.dart
diff --git a/sdk/lib/_internal/lib/convert_patch.dart b/sdk/lib/_internal/lib/convert_patch.dart
index 1f0b0575c8acfb97b0412b7c787de6ed1ec3b9c1..70b4d5f1babe3ac52754fff79f600289dd7bebdf 100644
--- a/sdk/lib/_internal/lib/convert_patch.dart
+++ b/sdk/lib/_internal/lib/convert_patch.dart
@@ -92,3 +92,8 @@ _convertJsonToDart(json, reviver(key, value)) {
return revive(null, walk(json));
}
+
+patch class _Utf8Encoder {
+ // Use Uint8List when supported on all platforms.
+ patch static List<int> _createBuffer(int size) => new List<int>(size);
+}
« no previous file with comments | « runtime/vm/service_test.cc ('k') | sdk/lib/convert/utf.dart » ('j') | sdk/lib/convert/utf.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698