unipdf/internal/endian/endian.go

13 lines
743 B
Go
Raw Normal View History

2020-08-27 21:45:09 +00:00
//
// 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/
2023-09-07 17:40:17 +00:00
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 };