unipdf/internal/endian/endian.go

12 lines
747 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/
2021-02-11 10:35:13 +00:00
package endian ;import (_ab "encoding/binary";_abd "unsafe";);func IsBig ()bool {return _f };func init (){const _e =int (_abd .Sizeof (0));_c :=1;_b :=(*[_e ]byte )(_abd .Pointer (&_c ));if _b [0]==0{_f =true ;ByteOrder =_ab .BigEndian ;}else {ByteOrder =_ab .LittleEndian ;};};func IsLittle ()bool {return !_f };var (ByteOrder _ab .ByteOrder ;_f bool ;);