/** * Reads a zero-compressed encoded integer from a byte array and returns it. * * @param bytes byte array with the encoded integer * @param start start index * @return deserialized integer * @throws java.io.IOException */ public static int readVInt(byte[] bytes, int start) throws IOException { return (int) readVLong(bytes, start); } }
/** * Reads a zero-compressed encoded integer from a byte array and returns it. * * @param bytes byte array with the encoded integer * @param start start index * @return deserialized integer * @throws java.io.IOException */ public static int readVInt(byte[] bytes, int start) throws IOException { return (int) readVLong(bytes, start); } }