Puts two bytes and a short into this byte vector. The byte vector is automatically enlarged if necessary. @param byteValue1 a byte. @param byteValue2 another byte. @param shortValue a short. @return this byte vector.
(final int byteValue1, final int byteValue2, final int shortValue)
| 149 | * @return this byte vector. |
| 150 | */ |
| 151 | final ByteVector put112(final int byteValue1, final int byteValue2, final int shortValue) { |
| 152 | int currentLength = length; |
| 153 | if (currentLength + 4 > data.length) { |
| 154 | enlarge(4); |
| 155 | } |
| 156 | byte[] currentData = data; |
| 157 | currentData[currentLength++] = (byte) byteValue1; |
| 158 | currentData[currentLength++] = (byte) byteValue2; |
| 159 | currentData[currentLength++] = (byte) (shortValue >>> 8); |
| 160 | currentData[currentLength++] = (byte) shortValue; |
| 161 | length = currentLength; |
| 162 | return this; |
| 163 | } |
| 164 | |
| 165 | /** |
| 166 | * Puts an int into this byte vector. The byte vector is automatically enlarged if necessary. |
no test coverage detected