github.com/parquet-go/parquet-go@v0.21.1-0.20240501160520-b3c3a0c3ed6f/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  }