Puts two bytes into this byte vector. The byte vector is automatically enlarged if necessary. @param b1 a byte. @param b2 another byte. @return this byte vector.
(final int b1, final int b2)
| 99 | */ |
| 100 | |
| 101 | public ByteVector put11 (final int b1, final int b2) { |
| 102 | int length = this.length; |
| 103 | if (length + 2 > data.length) { |
| 104 | enlarge(2); |
| 105 | } |
| 106 | byte[] data = this.data; |
| 107 | data[length++] = (byte)b1; |
| 108 | data[length++] = (byte)b2; |
| 109 | this.length = length; |
| 110 | return this; |
| 111 | } |
| 112 | |
| 113 | /** |
| 114 | * Puts a short into this byte vector. The byte vector is automatically |
no test coverage detected