Пример #1
0
 public void FlushStoredBlock(byte[] stored, int storedOffset, int storedLength, bool lastBlock)
 {
     pending.WriteBits(lastBlock ? 1 : 0, 3);
     pending.AlignToByte();
     pending.WriteShort(storedLength);
     pending.WriteShort(~storedLength);
     pending.WriteBlock(stored, storedOffset, storedLength);
     Reset();
 }
Пример #2
0
 public void FlushStoredBlock(byte[] stored, int storedOffset, int storedLength, bool lastBlock)
 {
     //			if (DeflaterConstants.DEBUGGING) {
     //				//Console.WriteLine("Flushing stored block "+ storedLength);
     //			}
     pending.WriteBits((DeflaterConstants.STORED_BLOCK << 1) + (lastBlock ? 1 : 0), 3);
     pending.AlignToByte();
     pending.WriteShort(storedLength);
     pending.WriteShort(~storedLength);
     pending.WriteBlock(stored, storedOffset, storedLength);
     Reset();
 }