MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / alignToByte

Method alignToByte

packages/alphatab/src/zip/PendingBuffer.ts:138–147  ·  view source on GitHub ↗

* Align internal buffer on a byte boundary

()

Source from the content-addressed store, hash-verified

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}

Callers 2

deflateMethod · 0.80
flushStoredBlockMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected