V2/Cet/IO/Cet.IO/Hashing/HashLrc.cs
/// <summary>
/// Calculate the hashing over a segment of a byte array
/// </summary>
/// <param name="buffer"></param>
/// <param name="offset"></param>
/// <param name="count"></param>
/// <returns></returns>
Calculate the hashing over a segment of a byte array
Calculate the hashing over a segment of a byte array
public override int Compute(
            byte[] buffer, 
            int offset, 
            int count)
        {
            int lrc = 0;
            while (--count >= 0)
                lrc ^= buffer[offset + count];
            return lrc;
        }
public override int Compute ( byte [ ] buffer , int offset , int count ) { int lrc = 0 ; while ( -- count >= 0 ) lrc ^= buffer [ offset + count ] ; return lrc ; }
Calculate the hashing over a segment of a byte array
Calculate the hashing over a segment of a byte array
None
buffer
byte[]
None
offset
int
None
count
int
None