unipdf/internal/endian/endian.go

13 lines
746 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-03-01 18:45:57 +00:00
package endian ;import (_g "encoding/binary";_b "unsafe";);var (ByteOrder _g .ByteOrder ;_ca bool ;);func init (){const _a =int (_b .Sizeof (0));_gc :=1;_cf :=(*[_a ]byte )(_b .Pointer (&_gc ));if _cf [0]==0{_ca =true ;ByteOrder =_g .BigEndian ;}else {ByteOrder =_g .LittleEndian ;
};};func IsBig ()bool {return _ca };func IsLittle ()bool {return !_ca };