Sets the element at index to the provided value. @param index of the element to set @param value to set the element to @throws IndexOutOfBoundsException if index is not valid
(int index, byte value)
| 185 | * @throws IndexOutOfBoundsException if {@code index} is not valid |
| 186 | */ |
| 187 | public void set(int index, byte value) { |
| 188 | if (index >= len) { |
| 189 | throw new IndexOutOfBoundsException(String.format("index: %s, len: %s", index, len)); |
| 190 | } |
| 191 | data[index] = value; |
| 192 | } |
| 193 | |
| 194 | /** |
| 195 | * Appends the bytes from another byte array to this vec. |
no outgoing calls