Puts a byte into this byte vector. The byte vector is automatically enlarged if necessary. @param b a byte. @return this byte vector.
(final int b)
| 80 | */ |
| 81 | |
| 82 | public ByteVector put1 (final int b) { |
| 83 | int length = this.length; |
| 84 | if (length + 1 > data.length) { |
| 85 | enlarge(1); |
| 86 | } |
| 87 | data[length++] = (byte)b; |
| 88 | this.length = length; |
| 89 | return this; |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | * Puts two bytes into this byte vector. The byte vector is automatically |
no test coverage detected