SmartAssembly.Zip.SimpleZip.DeflaterHuffman.FlushStoredBlock C# (CSharp) Method

FlushStoredBlock() public method

public FlushStoredBlock ( byte stored, int storedOffset, int storedLength, bool lastBlock ) : void
stored byte
storedOffset int
storedLength int
lastBlock bool
return void
            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();
            }