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

Unified Diff: lib/protobuf/runtime/ListIntProvider.dart

Issue 10595002: Protocol Buffer runtime library and 'protoc' plugin (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Work around http://code.google.com/p/dart/issues/detail?id=3806 Created 8 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/protobuf/runtime/ImmutableList.dart ('k') | lib/protobuf/runtime/Message.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/protobuf/runtime/ListIntProvider.dart
diff --git a/lib/protobuf/runtime/ListIntProvider.dart b/lib/protobuf/runtime/ListIntProvider.dart
new file mode 100644
index 0000000000000000000000000000000000000000..c31d6fd40e7a2c3b9637ed576c4d7f5ab978f778
--- /dev/null
+++ b/lib/protobuf/runtime/ListIntProvider.dart
@@ -0,0 +1,9 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+/**
+ * Provides a List<int> based version of integer arrays.
+ */
+List<int> createIntArray(int length) => new List<int>(length);
+List<int> createIntArrayFrom(List<int> source) => new List<int>.from(source);
« no previous file with comments | « lib/protobuf/runtime/ImmutableList.dart ('k') | lib/protobuf/runtime/Message.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698