unipdf/internal/endian/endian.go
2022-12-15 21:59:56 +00:00

13 lines
746 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";_a "unsafe";);var (ByteOrder _b .ByteOrder ;_bg bool ;);func init (){const _d =int (_a .Sizeof (0));_ge :=1;_af :=(*[_d ]byte )(_a .Pointer (&_ge ));if _af [0]==0{_bg =true ;ByteOrder =_b .BigEndian ;}else {ByteOrder =_b .LittleEndian ;
};};func IsLittle ()bool {return !_bg };func IsBig ()bool {return _bg };