mirror of
https://github.com/unidoc/unipdf.git
synced 2025-04-29 13:48:54 +08:00
12 lines
739 B
Go
12 lines
739 B
Go
//
|
|
// Copyright 2020 FoxyUtils ehf. All rights reserved.
|
|
//
|
|
// This is a commercial product and requires a license to operate.
|
|
// A trial license can be obtained at https://unidoc.io
|
|
//
|
|
// DO NOT EDIT: generated by unitwist Go source code obfuscator.
|
|
//
|
|
// Use of this source code is governed by the UniDoc End User License Agreement
|
|
// terms that can be accessed at https://unidoc.io/eula/
|
|
|
|
package endian ;import (_c "encoding/binary";_g "unsafe";);var (ByteOrder _c .ByteOrder ;_a bool ;);func init (){const _e =int (_g .Sizeof (0));_ag :=1;_f :=(*[_e ]byte )(_g .Pointer (&_ag ));if _f [0]==0{_a =true ;ByteOrder =_c .BigEndian ;}else {ByteOrder =_c .LittleEndian ;};};func IsBig ()bool {return _a };func IsLittle ()bool {return !_a }; |