(bit: boolean)
| 242 | } |
| 243 | |
| 244 | public appendBit(bit: boolean): void { |
| 245 | this.ensureCapacity(this.size + 1); |
| 246 | if (bit) { |
| 247 | this.bits[Math.floor(this.size / 32)] |= 1 << (this.size & 0x1F); |
| 248 | } |
| 249 | this.size++; |
| 250 | } |
| 251 | |
| 252 | /** |
| 253 | * Appends the least-significant bits, from value, in order from most-significant to |