AdvUtils.Security.Cryptography.MD5.AddLength C# (CSharp) Method

AddLength() private method

private AddLength ( ulong length, byte buffer, int position ) : void
length ulong
buffer byte
position int
return void
        internal void AddLength(ulong length, byte[] buffer, int position)
        {
            buffer[position++] = (byte)(length);
            buffer[position++] = (byte)(length >> 8);
            buffer[position++] = (byte)(length >> 16);
            buffer[position++] = (byte)(length >> 24);
            buffer[position++] = (byte)(length >> 32);
            buffer[position++] = (byte)(length >> 40);
            buffer[position++] = (byte)(length >> 48);
            buffer[position] = (byte)(length >> 56);
        }
    }