github.com/kelleygo/clashcore@v1.0.2/component/ebpf/byteorder/byteorder_bigendian.go (about)

     1  //go:build arm64be || armbe || mips || mips64 || mips64p32 || ppc64 || s390 || s390x || sparc || sparc64
     2  
     3  package byteorder
     4  
     5  import "encoding/binary"
     6  
     7  var Native binary.ByteOrder = binary.BigEndian
     8  
     9  func HostToNetwork16(u uint16) uint16 { return u }
    10  func HostToNetwork32(u uint32) uint32 { return u }
    11  func NetworkToHost16(u uint16) uint16 { return u }
    12  func NetworkToHost32(u uint32) uint32 { return u }