public void FlushStoredBlock(byte[] stored, int storedOffset, int storedLength, bool lastBlock) { this.pending.WriteBits(lastBlock ? 1 : 0, 3); this.pending.AlignToByte(); this.pending.WriteShort(storedLength); this.pending.WriteShort(~storedLength); this.pending.WriteBlock(stored, storedOffset, storedLength); this.Init(); }