File: endian_big.go

package info (click to toggle)
golang-github-josharian-native 1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, experimental, forky, sid, trixie
  • size: 88 kB
  • sloc: makefile: 2
file content (14 lines) | stat: -rw-r--r-- 359 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//go:build mips || mips64 || ppc64 || s390x
// +build mips mips64 ppc64 s390x

package native

import "encoding/binary"

// Endian is the encoding/binary.ByteOrder implementation for the
// current CPU's native byte order.
var Endian = binary.BigEndian

// IsBigEndian is whether the current CPU's native byte order is big
// endian.
const IsBigEndian = true