Example #1
0
 @Override
 public void skip(ByteReader reader) {
   while (true) {
     final int first = reader.peek();
     if (first == END) {
       reader.skip(1);
       break;
     }
     reader.skip(LongEncoder.decodeLength(first));
   }
 }
Example #2
0
 @Override
 public T read(ByteReader reader) {
   final ArrayList<E> list = new ArrayList<>();
   while (true) {
     final int first = reader.peek();
     if (first == END) {
       reader.skip(1);
       break;
     }
     list.add(this.integralType.downCast(LongEncoder.read(reader)));
   }
   return this.createArray(list);
 }
Example #3
0
 @Override
 public void skip(ByteReader reader) {
   reader.skip(4);
 }