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

Side by Side Diff: lib/protobuf.dart

Issue 25634007: Update the protocol buffer library to use Int64 from the fixnum package (Closed) Base URL: https://github.com/dart-lang/dart-protobuf.git@master
Patch Set: Minor fixes Created 7 years, 2 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 unified diff | Download patch
« no previous file with comments | « lib/pb_list.dart ('k') | lib/unknown_field_set.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library protobuf; 5 library protobuf;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:json' as json; 9 import 'dart:json' as json;
10 import 'dart:math'; 10 import 'dart:math';
11 import 'dart:typed_data'; 11 import 'dart:typed_data';
12 import 'dart:utf'; 12 import 'dart:utf';
13 13
14 import 'package:crypto/crypto.dart'; 14 import 'package:crypto/crypto.dart';
15 import 'package:fixnum/fixnum.dart';
15 16
16 part 'coded_buffer_reader.dart'; 17 part 'coded_buffer_reader.dart';
17 part 'coded_buffer_writer.dart'; 18 part 'coded_buffer_writer.dart';
18 part 'builder_info.dart'; 19 part 'builder_info.dart';
19 part 'exceptions.dart'; 20 part 'exceptions.dart';
20 part 'extension.dart'; 21 part 'extension.dart';
21 part 'extension_registry.dart'; 22 part 'extension_registry.dart';
22 part 'field_info.dart'; 23 part 'field_info.dart';
23 part 'generated_message.dart'; 24 part 'generated_message.dart';
24 part 'pb_list.dart'; 25 part 'pb_list.dart';
25 part 'protobuf_enum.dart'; 26 part 'protobuf_enum.dart';
26 part 'unknown_field_set.dart'; 27 part 'unknown_field_set.dart';
27 part 'utils.dart'; 28 part 'utils.dart';
28 part 'wire_format.dart'; 29 part 'wire_format.dart';
29 30
30 makeLongInt(n) => 31 makeLongInt(n) => new Int64.fromInt(n);
31 new ByteData(8)
32 ..setUint32(0, n & 0xffffffff, Endianness.LITTLE_ENDIAN)
33 ..setUint32(4, (n >> 32) & 0xffffffff, Endianness.LITTLE_ENDIAN);
OLDNEW
« no previous file with comments | « lib/pb_list.dart ('k') | lib/unknown_field_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698