unipdf/internal/endian/endian.go
2020-09-07 00:23:12 +00:00

12 lines
744 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 (_g "encoding/binary";_gd "unsafe";);var (ByteOrder _g .ByteOrder ;_c bool ;);func init (){const _fb =int (_gd .Sizeof (0));_df :=1;_a :=(*[_fb ]byte )(_gd .Pointer (&_df ));if _a [0]==0{_c =true ;ByteOrder =_g .BigEndian ;}else {ByteOrder =_g .LittleEndian ;};};func IsBig ()bool {return _c };func IsLittle ()bool {return !_c };