unipdf/internal/endian/endian.go
2021-03-13 21:28:23 +00:00

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