mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
* Upgrade parquet-go to latest for StructTag option * Upgrade parquet-go to get latest alloc fix
16 lines
268 B
Go
16 lines
268 B
Go
//go:build s390x
|
|
|
|
package bitpack
|
|
|
|
import "encoding/binary"
|
|
|
|
func unsafecastBytesToUint32(src []byte) []uint32 {
|
|
out := make([]uint32, len(src)/4)
|
|
idx := 0
|
|
for k := range out {
|
|
out[k] = binary.LittleEndian.Uint32((src)[idx:(4 + idx)])
|
|
idx += 4
|
|
}
|
|
return out
|
|
}
|