unipdf/internal/endian/endian.go

12 lines
745 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/
2020-08-31 21:12:07 +00:00
package endian ;import (_gb "encoding/binary";_b "unsafe";);func IsBig ()bool {return _a };func init (){const _bc =int (_b .Sizeof (0));_c :=1;_cg :=(*[_bc ]byte )(_b .Pointer (&_c ));if _cg [0]==0{_a =true ;ByteOrder =_gb .BigEndian ;}else {ByteOrder =_gb .LittleEndian ;};};var (ByteOrder _gb .ByteOrder ;_a bool ;);func IsLittle ()bool {return !_a };