unipdf/internal/endian/endian.go
2022-09-10 15:35:04 +00:00

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