| 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.message; | 5 library capnp.message; |
| 6 | 6 |
| 7 import 'dart:typed_data' show ByteData; | 7 import 'dart:typed_data' show ByteData; |
| 8 import 'internals.dart'; | 8 import 'internals.dart'; |
| 9 | 9 |
| 10 abstract class MessageReader { | 10 abstract class MessageReader { |
| 11 Struct getRoot(Struct struct); | 11 Struct getRoot(Struct struct); |
| 12 Segment getSegment(int id); | 12 Segment getSegment(int id); |
| 13 } | 13 } |
| 14 | 14 |
| 15 abstract class MessageBuilder { | 15 abstract class MessageBuilder { |
| 16 StructBuilder initRoot(StructBuilder builder); | 16 StructBuilder initRoot(StructBuilder builder); |
| 17 Segment findSegmentForBytes(int bytes); | 17 Segment findSegmentForBytes(int bytes); |
| 18 ByteData toFlatList(); | 18 ByteData toFlatList(); |
| 19 } | 19 } |
| OLD | NEW |