github.com/segmentio/parquet-go@v0.0.0-20230712180008-5d42db8f0d47/encoding/delta/delta_amd64.go (about)

     1  //go:build !purego
     2  
     3  package delta
     4  
     5  const (
     6  	padding = 64
     7  )
     8  
     9  func findNegativeLength(lengths []int32) int {
    10  	for _, n := range lengths {
    11  		if n < 0 {
    12  			return int(n)
    13  		}
    14  	}
    15  	return -1
    16  }