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.internals; | 5 library capnp.internals; |
6 | 6 |
7 import 'dart:typed_data' show ByteData, Endianness; | 7 import 'dart:typed_data' show ByteData, Endianness; |
8 import 'dart:collection' show ListMixin; | 8 import 'dart:collection' show ListMixin; |
9 import 'dart:convert' show UTF8; | 9 import 'dart:convert' show UTF8; |
10 | 10 |
11 import 'message.dart'; | 11 import 'message.dart'; |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 class _ListOfUInt8Builder extends _ListBuilder implements List<int> { | 645 class _ListOfUInt8Builder extends _ListBuilder implements List<int> { |
646 final int length; | 646 final int length; |
647 _ListOfUInt8Builder(this.length); | 647 _ListOfUInt8Builder(this.length); |
648 | 648 |
649 int get _declaredElementKind => 2; | 649 int get _declaredElementKind => 2; |
650 int get _declaredElementSize => 1; | 650 int get _declaredElementSize => 1; |
651 | 651 |
652 int operator[](int index) => readUInt8(this, index); | 652 int operator[](int index) => readUInt8(this, index); |
653 void operator[]=(int index, int value) => writeUInt8(this, index, value); | 653 void operator[]=(int index, int value) => writeUInt8(this, index, value); |
654 } | 654 } |
OLD | NEW |