github.com/segmentio/parquet-go@v0.0.0-20230712180008-5d42db8f0d47/encoding/rle/rle_purego.go (about) 1 //go:build purego || !amd64 2 3 package rle 4 5 func encodeBytesBitpack(dst []byte, src []uint64, bitWidth uint) int { 6 return encodeBytesBitpackDefault(dst, src, bitWidth) 7 } 8 9 func encodeInt32IndexEqual8Contiguous(words [][8]int32) (n int) { 10 for n < len(words) && words[n] != broadcast8x4(words[n][0]) { 11 n++ 12 } 13 return n 14 } 15 16 func encodeInt32Bitpack(dst []byte, src [][8]int32, bitWidth uint) int { 17 return encodeInt32BitpackDefault(dst, src, bitWidth) 18 } 19 20 func decodeBytesBitpack(dst, src []byte, count, bitWidth uint) { 21 decodeBytesBitpackDefault(dst, src, count, bitWidth) 22 }