func (h *Hash) Write(p []byte) (int, error) {
	if h.subhash == nil {
		h.subhash = md4.New()
	}
	total := len(p)
	for len(p) > 0 {
		p2 := h.limitNextChunk(p)
		n, _ := h.subhash.Write(p2)
		h.written += int64(n)
		p = p[n:]
		if h.written%ChunkSize == 0 {
			h.hashlist = h.subhash.Sum(h.hashlist)
			h.subhash.Reset()
		}
	}
	return total, nil
}
// Write adds more data to the running hash.
// It never returns an error.
Write adds more data to the running hash.
It never returns an error.
// Write adds more data to the running hash . // It never returns an error .
func (h *Hash) Write(p []byte) (int, error) {
	if h.subhash == nil {
		h.subhash = md4.New()
	}
	total := len(p)
	for len(p) > 0 {
		p2 := h.limitNextChunk(p)
		n, _ := h.subhash.Write(p2)
		h.written += int64(n)
		p = p[n:]
		if h.written%ChunkSize == 0 {
			h.hashlist = h.subhash.Sum(h.hashlist)
			h.subhash.Reset()
		}
	}
	return total, nil
}
func ( h * Hash ) Write ( p [ ] byte ) ( int , error ) { if h . subhash == nil { h . subhash = md4 . New ( ) } total := len ( p ) for len ( p ) > 0 { p2 := h . limitNextChunk ( p ) n , _ := h . subhash . Write ( p2 ) h . written += int64 ( n ) p = p [ n : ] if h . written % ChunkSize == 0 { h . hashlist = h . subhash . Sum ( h . hashlist ) h . subhash . Reset ( ) } } return total , nil }
Write adds more data to the running hash.
Write adds more data to the running hash .