* Align internal buffer on a byte boundary
()
| 136 | * Align internal buffer on a byte boundary |
| 137 | */ |
| 138 | public alignToByte() { |
| 139 | if (this.bitCount > 0) { |
| 140 | this._buffer[this._end++] = this._bits & 0xff; |
| 141 | if (this.bitCount > 8) { |
| 142 | this._buffer[this._end++] = (this._bits >> 8) & 0xff; |
| 143 | } |
| 144 | } |
| 145 | this._bits = 0; |
| 146 | this.bitCount = 0; |
| 147 | } |
| 148 | } |
no outgoing calls
no test coverage detected