mirror of
https://github.com/unidoc/unipdf.git
synced 2025-05-02 22:17:06 +08:00
13 lines
742 B
Go
13 lines
742 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 (_b "encoding/binary";_g "unsafe";);var (ByteOrder _b .ByteOrder ;_a bool ;);func init (){const _ac =int (_g .Sizeof (0));_dg :=1;_e :=(*[_ac ]byte )(_g .Pointer (&_dg ));if _e [0]==0{_a =true ;ByteOrder =_b .BigEndian ;}else {ByteOrder =_b .LittleEndian ;
|
|
};};func IsBig ()bool {return _a };func IsLittle ()bool {return !_a }; |