OLD | NEW |
1 // Copyright (c) 2014, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 library capnp; | 5 library capnp; |
6 | 6 |
7 import 'dart:io' as io; | 7 import 'dart:io' as io; |
8 import 'dart:typed_data'; | 8 import 'dart:typed_data'; |
9 import 'dart:async'; | 9 import 'dart:async'; |
10 import 'dart:core' hide Type; | 10 import 'dart:core' hide Type; |
11 | 11 |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 } | 323 } |
324 return dartTypeOf(type); | 324 return dartTypeOf(type); |
325 } | 325 } |
326 | 326 |
327 Future<ByteBuffer> readEncodedBytes() async { | 327 Future<ByteBuffer> readEncodedBytes() async { |
328 StreamIterator iterator = new StreamIterator(io.stdin); | 328 StreamIterator iterator = new StreamIterator(io.stdin); |
329 await iterator.moveNext(); | 329 await iterator.moveNext(); |
330 return iterator.current.buffer; | 330 return iterator.current.buffer; |
331 } | 331 } |
332 | 332 |
OLD | NEW |