@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)); } }
@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); }
@Override public void skip(ByteReader reader) { reader.skip(4); }