public static unsafe uint DigestOf( Crc32Table table, byte[] bytes, int offset, int length, uint seed = 0) { Validate(bytes, offset, length); fixed(byte *bytesP = bytes) return(DigestOf(table.Data, bytesP + offset, length, seed)); }
public static unsafe uint DigestOf( Crc32Table table, byte *bytes, int length, uint seed = 0) => DigestOf(table.Data, bytes, length, seed);
public static unsafe uint DigestOf( Crc32Table table, ReadOnlySpan <byte> bytes, uint seed = 0) { fixed(byte *bytesP = &MemoryMarshal.GetReference(bytes)) return(DigestOf(table.Data, bytesP, bytes.Length, seed)); }
public Crc32(Crc32Table table) { _table = table ?? Crc32Table.Default; }