ICSharpCode.SharpZipLib.Zip.Compression.PendingBuffer.WriteShort C# (CSharp) Method

WriteShort() public method

Write a short value to buffer LSB first
public WriteShort ( int value ) : void
value int /// The value to write. ///
return void
        public void WriteShort(int value)
        {
            #if DebugDeflation
            if (DeflaterConstants.DEBUGGING && (start != 0) )
            {
                throw new SharpZipBaseException("Debug check: start != 0");
            }
            #endif
            buffer_[end++] = unchecked((byte)value);
            buffer_[end++] = unchecked((byte)(value >> 8));
        }