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

Unified Diff: lib/typed_data/typed_data_patch.dart

Issue 1209033003: Work in progres, please take a look and give early feedback if this is the way we want to structure… (Closed) Base URL: git@github.com:dart-lang/fletch.git@master
Patch Set: address comments 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 | « lib/io/system_posix.dart ('k') | pkg/fletchc/lib/src/fletch_backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/typed_data/typed_data_patch.dart
diff --git a/lib/typed_data/typed_data_patch.dart b/lib/typed_data/typed_data_patch.dart
index 87065aca00da1be09c56510868f3e5ecdb97a1c2..58b1a58c3a6d95f1f4f07709cf5d4b85455c214b 100644
--- a/lib/typed_data/typed_data_patch.dart
+++ b/lib/typed_data/typed_data_patch.dart
@@ -63,12 +63,12 @@ class _Uint8List extends _TypedData with ListMixin<int> implements Uint8List {
}
abstract class _TypedData {
- final Foreign _foreign;
+ final ForeignMemory _foreign;
final int offsetInBytes;
final int lengthInBytes;
_TypedData._create(int sizeInBytes)
- : _foreign = new Foreign.allocatedFinalize(sizeInBytes),
+ : _foreign = new ForeignMemory.allocatedFinalize(sizeInBytes),
offsetInBytes = 0,
lengthInBytes = sizeInBytes;
@@ -85,11 +85,11 @@ abstract class _TypedData {
}
class _ByteBuffer implements ByteBuffer {
- final Foreign _foreign;
+ final ForeignMemory _foreign;
_ByteBuffer._from(this._foreign);
- Foreign getForeign() => _foreign;
+ ForeignMemory getForeign() => _foreign;
int get lengthInBytes => _foreign.length;
« no previous file with comments | « lib/io/system_posix.dart ('k') | pkg/fletchc/lib/src/fletch_backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698