github.com/sagernet/sing@v0.4.0-beta.19.0.20240518125136-f67a0988a636/common/native_endian_big.go (about)

     1  // Copyright 2023 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build !go1.21 && (armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64)
     6  
     7  package common
     8  
     9  import "encoding/binary"
    10  
    11  // NativeEndian is the native-endian implementation of ByteOrder and AppendByteOrder.
    12  var NativeEndian = binary.BigEndian