unipdf/internal/endian/endian.go
2023-09-07 17:40:17 +00:00

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