您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

22 行
398 B

  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.
  4. // +build solaris
  5. package lif
  6. import "unsafe"
  7. var nativeEndian binaryByteOrder
  8. func init() {
  9. i := uint32(1)
  10. b := (*[4]byte)(unsafe.Pointer(&i))
  11. if b[0] == 1 {
  12. nativeEndian = littleEndian
  13. } else {
  14. nativeEndian = bigEndian
  15. }
  16. }