mirror of
https://github.com/containers/podman.git
synced 2025-12-03 03:39:44 +08:00
Update module github.com/shirou/gopsutil to v4
Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
This commit is contained in:
11
vendor/github.com/shirou/gopsutil/v4/internal/common/endian.go
generated
vendored
Normal file
11
vendor/github.com/shirou/gopsutil/v4/internal/common/endian.go
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
package common
|
||||
|
||||
import "unsafe"
|
||||
|
||||
// IsLittleEndian checks if the current platform uses little-endian.
|
||||
// copied from https://github.com/ntrrg/ntgo/blob/v0.8.0/runtime/infrastructure.go#L16 (MIT License)
|
||||
func IsLittleEndian() bool {
|
||||
var x int16 = 0x0011
|
||||
return *(*byte)(unsafe.Pointer(&x)) == 0x11
|
||||
}
|
||||
Reference in New Issue
Block a user