1 // Copyright 2017 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.
13 // NativeEndian is the machine native endian implementation of
15 NativeEndian binary.ByteOrder
22 b := (*[4]byte)(unsafe.Pointer(&i))
24 NativeEndian = binary.LittleEndian
26 NativeEndian = binary.BigEndian
28 kernelAlign = probeProtocolStack()
31 func roundup(l int) int {
32 return (l + kernelAlign - 1) & ^(kernelAlign - 1)