unipdf/internal/endian/endian.go
2023-05-29 17:26:33 +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";_g "unsafe";);var (ByteOrder _b .ByteOrder ;_a bool ;);func init (){const _ac =int (_g .Sizeof (0));_dg :=1;_e :=(*[_ac ]byte )(_g .Pointer (&_dg ));if _e [0]==0{_a =true ;ByteOrder =_b .BigEndian ;}else {ByteOrder =_b .LittleEndian ;
};};func IsBig ()bool {return _a };func IsLittle ()bool {return !_a };