func (a *crc32Hash) Reset() { a.crc = C.crc32(0, (*C.Bytef)(unsafe.Pointer(nil)), 0) }
// io.Writer interface func (a *crc32Hash) Write(p []byte) (n int, err error) { if len(p) > 0 { a.crc = C.crc32(a.crc, (*C.Bytef)(unsafe.Pointer(&p[0])), (C.uInt)(len(p))) } return len(p), nil }