Puts a byte into this byte vector. The byte vector is automatically enlarged if necessary. @param byteValue a byte. @return this byte vector.
(final int byteValue)
| 72 | * @return this byte vector. |
| 73 | */ |
| 74 | public ByteVector putByte(final int byteValue) { |
| 75 | int currentLength = length; |
| 76 | if (currentLength + 1 > data.length) { |
| 77 | enlarge(1); |
| 78 | } |
| 79 | data[currentLength++] = (byte) byteValue; |
| 80 | length = currentLength; |
| 81 | return this; |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * Puts two bytes into this byte vector. The byte vector is automatically enlarged if necessary. |
no test coverage detected