private void put(int i) { buffer.writeVLong(i); }
private void put(long l) { buffer.writeVLong(l); }
private void put(byte b[], int length) { buffer.writeVLong(length); buffer.add(b, 0, length); }
/** * Adds an integer value to this writer's buffer. The integer is encoded as a variable-length * list of bytes. See {@link #writeVLong(long)} for a description of the encoding. * * @param i * integer value */ public void writeVInt(int i) { writeVLong(i); }
private void fill(long l) { buffer.writeVLong(l); }
private void fill(int i) { buffer.writeVLong(i); }
private void fill(byte b[], int length) { buffer.writeVLong(length); buffer.add(b, 0, length); }
/** * Adds an integer value to this writer's buffer. The integer is encoded as a variable-length * list of bytes. See {@link #writeVLong(long)} for a description of the encoding. * * @param i * integer value */ public void writeVInt(int i) { writeVLong(i); }