Puts two bytes into this byte vector. The byte vector is automatically enlarged if necessary. @param byteValue1 a byte. @param byteValue2 another byte. @return this byte vector.
(final int byteValue1, final int byteValue2)
| 89 | * @return this byte vector. |
| 90 | */ |
| 91 | final ByteVector put11(final int byteValue1, final int byteValue2) { |
| 92 | int currentLength = length; |
| 93 | if (currentLength + 2 > data.length) { |
| 94 | enlarge(2); |
| 95 | } |
| 96 | byte[] currentData = data; |
| 97 | currentData[currentLength++] = (byte) byteValue1; |
| 98 | currentData[currentLength++] = (byte) byteValue2; |
| 99 | length = currentLength; |
| 100 | return this; |
| 101 | } |
| 102 | |
| 103 | /** |
| 104 | * Puts a short into this byte vector. The byte vector is automatically enlarged if necessary. |
no test coverage detected