public int readVarInt() throws IOException { return helper.readVarInt(); }
public int readVarInt() throws IOException { return helper.readVarInt(); }
public int readVarInt() throws IOException { return helper.readVarInt(); }
/** Read an {@code sint32} field value from the stream. */ public int readVarSignedInt() throws IOException { return decodeZigZag32(readVarInt()); }
/** Read an {@code sint32} field value from the stream. */ public int readVarSignedInt() throws IOException { return decodeZigZag32(readVarInt()); }
/** Read an {@code sint32} field value from the stream. */ public int readVarSignedInt() throws IOException { return decodeZigZag32(readVarInt()); }
public void readExternal(final DataInput in) throws IOException { ranges.clear(); int size = in.readInt(); AbstractVarIntSupport helper = new AbstractVarIntSupport() { @Override protected byte readByte() throws IOException { return in.readByte(); } @Override protected void writeByte(int value) throws IOException { throw new UnsupportedOperationException(); } }; int base = 0; for(int i=0; i < size; i++) { base += helper.readVarInt(); int start = base; base += helper.readVarInt(); int end = base; ranges.put(start, range(start, end)); } }
public void readExternal(final DataInput in) throws IOException { ranges.clear(); int size = in.readInt(); AbstractVarIntSupport helper = new AbstractVarIntSupport() { @Override protected byte readByte() throws IOException { return in.readByte(); } @Override protected void writeByte(int value) throws IOException { throw new UnsupportedOperationException(); } }; int base = 0; for(int i=0; i < size; i++) { base += helper.readVarInt(); int start = base; base += helper.readVarInt(); int end = base; ranges.put(start, range(start, end)); } }