func (h *Hash) limitNextChunk(b []byte) []byte {
	remainder := ChunkSize - int(h.written%ChunkSize)
	if len(b) > remainder {
		return b[:remainder]
	}
	return b
}
// limitNextChunk limits the input slice to at most the next chunk to write.
limitNextChunk limits the input slice to at most the next chunk to write.
// limitNextChunk limits the input slice to at most the next chunk to write .
func (h *Hash) limitNextChunk(b []byte) []byte {
	remainder := ChunkSize - int(h.written%ChunkSize)
	if len(b) > remainder {
		return b[:remainder]
	}
	return b
}
func ( h * Hash ) limitNextChunk ( b [ ] byte ) [ ] byte { remainder := ChunkSize - int ( h . written % ChunkSize ) if len ( b ) > remainder { return b [ : remainder ] } return b }
limitNextChunk limits the input slice to at most the next chunk to write.
limitNextChunk limits the input slice to at most the next chunk to write .