OLD | NEW |
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); | |
OLD | NEW |