mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-16 06:01:21 +08:00
13 lines
403 B
Go
13 lines
403 B
Go
//go:build arm64be || armbe || mips || mips64 || mips64p32 || ppc64 || s390 || s390x || sparc || sparc64
|
|
|
|
package byteorder
|
|
|
|
import "encoding/binary"
|
|
|
|
var Native binary.ByteOrder = binary.BigEndian
|
|
|
|
func HostToNetwork16(u uint16) uint16 { return u }
|
|
func HostToNetwork32(u uint32) uint32 { return u }
|
|
func NetworkToHost16(u uint16) uint16 { return u }
|
|
func NetworkToHost32(u uint32) uint32 { return u }
|