File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ class BitCounter {
7
7
8
8
BitCounter (this ._length);
9
9
10
+ /// The list of bits from LSB to MSB.
11
+ ///
12
+ /// Exposed only for serialization, do NOT call or modify them directly.
13
+ List <BitArray > get bits => _bits;
14
+
10
15
/// The maximum number of bits required to store the value of the counter.
11
16
int get bitLength => _bits.length;
12
17
Original file line number Diff line number Diff line change @@ -58,6 +58,11 @@ class ListSet implements BitSet {
58
58
59
59
ListSet .fromSorted (this ._list);
60
60
61
+ /// The list of values, in a sorted order.
62
+ ///
63
+ /// Exposed only for serialization, do NOT call or modify them directly.
64
+ List <int > get values => _list;
65
+
61
66
@override
62
67
bool operator [](int index) {
63
68
int left = 0 ;
@@ -102,6 +107,11 @@ class RangeSet implements BitSet {
102
107
103
108
RangeSet .fromSortedRangeLength (this ._list);
104
109
110
+ /// The list of range+length encoded ranges, in a sorted order.
111
+ ///
112
+ /// Exposed only for serialization, do NOT call or modify them directly.
113
+ List <int > get rangeLengthValues => _list;
114
+
105
115
@override
106
116
bool operator [](int index) {
107
117
int left = 0 ;
@@ -207,4 +217,4 @@ List<int> _cloneList(List<int> list) {
207
217
} else {
208
218
return new List <int >.from (list);
209
219
}
210
- }
220
+ }
You can’t perform that action at this time.
0 commit comments