Returns the compressed length of the value at the specified position. @param array array @param pos position where the value is found @return value length
(final byte[] array, final int pos)
| 131 | * @return value length |
| 132 | */ |
| 133 | public static int length(final byte[] array, final int pos) { |
| 134 | final int v = (array[pos] & 0xFF) >>> 6; |
| 135 | return v == 0 ? 1 : v == 1 ? 2 : v == 2 ? 4 : 5; |
| 136 | } |
| 137 | |
| 138 | /** |
| 139 | * Returns the compressed length of the specified value. |
no outgoing calls
no test coverage detected