iTextSharp.text.pdf.codec.PngWriter.update_crc C# (CSharp) Метод

update_crc() приватный статический Метод

private static update_crc ( uint crc, byte buf, int offset, int len ) : uint
crc uint
buf byte
offset int
len int
Результат uint
        private static uint update_crc(uint crc, byte[] buf, int offset, int len)
        {
            uint c = crc;

            if (crc_table == null)
                make_crc_table();
            for (int n = 0; n < len; n++) {
                c = crc_table[(c ^ buf[n + offset]) & 0xff] ^ (c >> 8);
            }
            return c;
        }