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

Unified Diff: runtime/bin/http_impl.dart

Issue 10379018: Revert "Revert "Implement {Int,Uint}{8,16,32,64} and Float{32,64} typed arrays."" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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: runtime/bin/http_impl.dart
diff --git a/runtime/bin/http_impl.dart b/runtime/bin/http_impl.dart
index 836a9439d908bf48431a1a58f538cc309e581166..785fc93429bfae4842daab2a4336f5db30af2317 100644
--- a/runtime/bin/http_impl.dart
+++ b/runtime/bin/http_impl.dart
@@ -327,7 +327,7 @@ class _HttpRequestResponseBase {
final List<int> hexDigits = [0x30, 0x31, 0x32, 0x33, 0x34,
0x35, 0x36, 0x37, 0x38, 0x39,
0x41, 0x42, 0x43, 0x44, 0x45, 0x46];
- ByteArray hex = new ByteArray(10);
+ List<int> hex = new Uint8List(10);
int index = hex.length;
while (x > 0) {
index--;
@@ -759,7 +759,7 @@ class _HttpConnectionBase implements Hashable {
return;
}
- ByteArray buffer = new ByteArray(available);
+ List<int> buffer = new Uint8List(available);
int bytesRead = _socket.readList(buffer, 0, available);
if (bytesRead > 0) {
int parsed = _httpParser.writeList(buffer, 0, bytesRead);

Powered by Google App Engine
This is Rietveld 408576698