First commit

This commit is contained in:
2021-03-07 05:58:59 +01:00
committed by Andreas Schaafsma
commit 5d4c4a054e
18475 changed files with 3309357 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
// Generated by Haxe 4.0.5
#ifndef INCLUDED_haxe_zip_ExtraField
#define INCLUDED_haxe_zip_ExtraField
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
HX_DECLARE_CLASS2(haxe,io,Bytes)
HX_DECLARE_CLASS2(haxe,zip,ExtraField)
namespace haxe{
namespace zip{
class ExtraField_obj : public hx::EnumBase_obj
{
typedef hx::EnumBase_obj super;
typedef ExtraField_obj OBJ_;
public:
ExtraField_obj() {};
HX_DO_ENUM_RTTI;
static void __boot();
static void __register();
static bool __GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp);
::String GetEnumName( ) const { return HX_("haxe.zip.ExtraField",df,af,f8,91); }
::String __ToString() const { return HX_("ExtraField.",c4,80,7a,63) + _hx_tag; }
static ::haxe::zip::ExtraField FInfoZipUnicodePath(::String name,int crc);
static ::Dynamic FInfoZipUnicodePath_dyn();
static ::haxe::zip::ExtraField FUnknown(int tag, ::haxe::io::Bytes bytes);
static ::Dynamic FUnknown_dyn();
static ::haxe::zip::ExtraField FUtf8;
static inline ::haxe::zip::ExtraField FUtf8_dyn() { return FUtf8; }
};
} // end namespace haxe
} // end namespace zip
#endif /* INCLUDED_haxe_zip_ExtraField */

View File

@@ -0,0 +1,66 @@
// Generated by Haxe 4.0.5
#ifndef INCLUDED_haxe_zip_HuffTools
#define INCLUDED_haxe_zip_HuffTools
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
HX_DECLARE_CLASS1(haxe,IMap)
HX_DECLARE_CLASS2(haxe,ds,IntMap)
HX_DECLARE_CLASS2(haxe,zip,HuffTools)
HX_DECLARE_CLASS2(haxe,zip,Huffman)
namespace haxe{
namespace zip{
class HXCPP_CLASS_ATTRIBUTES HuffTools_obj : public hx::Object
{
public:
typedef hx::Object super;
typedef HuffTools_obj OBJ_;
HuffTools_obj();
public:
enum { _hx_ClassId = 0x10a15413 };
void __construct();
inline void *operator new(size_t inSize, bool inContainer=false,const char *inName="haxe.zip.HuffTools")
{ return hx::Object::operator new(inSize,inContainer,inName); }
inline void *operator new(size_t inSize, int extra)
{ return hx::Object::operator new(inSize+extra,false,"haxe.zip.HuffTools"); }
static hx::ObjectPtr< HuffTools_obj > __new();
static hx::ObjectPtr< HuffTools_obj > __alloc(hx::Ctx *_hx_ctx);
static void * _hx_vtable;
static Dynamic __CreateEmpty();
static Dynamic __Create(hx::DynamicArray inArgs);
//~HuffTools_obj();
HX_DO_RTTI_ALL;
hx::Val __Field(const ::String &inString, hx::PropertyAccess inCallProp);
static void __register();
bool _hx_isInstanceOf(int inClassId);
::String __ToString() const { return HX_("HuffTools",2e,d1,43,79); }
int treeDepth( ::haxe::zip::Huffman t);
::Dynamic treeDepth_dyn();
::haxe::zip::Huffman treeCompress( ::haxe::zip::Huffman t);
::Dynamic treeCompress_dyn();
void treeWalk(::Array< ::Dynamic> table,int p,int cd,int d, ::haxe::zip::Huffman t);
::Dynamic treeWalk_dyn();
::haxe::zip::Huffman treeMake( ::haxe::ds::IntMap bits,int maxbits,int v,int len);
::Dynamic treeMake_dyn();
::haxe::zip::Huffman make(::Array< int > lengths,int pos,int nlengths,int maxbits);
::Dynamic make_dyn();
};
} // end namespace haxe
} // end namespace zip
#endif /* INCLUDED_haxe_zip_HuffTools */

View File

@@ -0,0 +1,39 @@
// Generated by Haxe 4.0.5
#ifndef INCLUDED_haxe_zip_Huffman
#define INCLUDED_haxe_zip_Huffman
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
HX_DECLARE_CLASS2(haxe,zip,Huffman)
namespace haxe{
namespace zip{
class Huffman_obj : public hx::EnumBase_obj
{
typedef hx::EnumBase_obj super;
typedef Huffman_obj OBJ_;
public:
Huffman_obj() {};
HX_DO_ENUM_RTTI;
static void __boot();
static void __register();
static bool __GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp);
::String GetEnumName( ) const { return HX_("haxe.zip.Huffman",38,d8,1f,47); }
::String __ToString() const { return HX_("Huffman.",81,94,1b,e3) + _hx_tag; }
static ::haxe::zip::Huffman Found(int i);
static ::Dynamic Found_dyn();
static ::haxe::zip::Huffman NeedBit( ::haxe::zip::Huffman left, ::haxe::zip::Huffman right);
static ::Dynamic NeedBit_dyn();
static ::haxe::zip::Huffman NeedBits(int n,::Array< ::Dynamic> table);
static ::Dynamic NeedBits_dyn();
};
} // end namespace haxe
} // end namespace zip
#endif /* INCLUDED_haxe_zip_Huffman */

View File

@@ -0,0 +1,121 @@
// Generated by Haxe 4.0.5
#ifndef INCLUDED_haxe_zip_InflateImpl
#define INCLUDED_haxe_zip_InflateImpl
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
HX_DECLARE_CLASS2(haxe,io,Bytes)
HX_DECLARE_CLASS2(haxe,io,Input)
HX_DECLARE_CLASS2(haxe,zip,HuffTools)
HX_DECLARE_CLASS2(haxe,zip,Huffman)
HX_DECLARE_CLASS2(haxe,zip,InflateImpl)
HX_DECLARE_CLASS3(haxe,zip,_InflateImpl,State)
HX_DECLARE_CLASS3(haxe,zip,_InflateImpl,Window)
namespace haxe{
namespace zip{
class HXCPP_CLASS_ATTRIBUTES InflateImpl_obj : public hx::Object
{
public:
typedef hx::Object super;
typedef InflateImpl_obj OBJ_;
InflateImpl_obj();
public:
enum { _hx_ClassId = 0x53e7f50c };
void __construct( ::haxe::io::Input i, ::Dynamic __o_header, ::Dynamic __o_crc);
inline void *operator new(size_t inSize, bool inContainer=true,const char *inName="haxe.zip.InflateImpl")
{ return hx::Object::operator new(inSize,inContainer,inName); }
inline void *operator new(size_t inSize, int extra)
{ return hx::Object::operator new(inSize+extra,true,"haxe.zip.InflateImpl"); }
static hx::ObjectPtr< InflateImpl_obj > __new( ::haxe::io::Input i, ::Dynamic __o_header, ::Dynamic __o_crc);
static hx::ObjectPtr< InflateImpl_obj > __alloc(hx::Ctx *_hx_ctx, ::haxe::io::Input i, ::Dynamic __o_header, ::Dynamic __o_crc);
static void * _hx_vtable;
static Dynamic __CreateEmpty();
static Dynamic __Create(hx::DynamicArray inArgs);
//~InflateImpl_obj();
HX_DO_RTTI_ALL;
hx::Val __Field(const ::String &inString, hx::PropertyAccess inCallProp);
static bool __GetStatic(const ::String &inString, Dynamic &outValue, hx::PropertyAccess inCallProp);
hx::Val __SetField(const ::String &inString,const hx::Val &inValue, hx::PropertyAccess inCallProp);
static bool __SetStatic(const ::String &inString, Dynamic &ioValue, hx::PropertyAccess inCallProp);
void __GetFields(Array< ::String> &outFields);
static void __register();
void __Mark(HX_MARK_PARAMS);
void __Visit(HX_VISIT_PARAMS);
bool _hx_isInstanceOf(int inClassId);
::String __ToString() const { return HX_("InflateImpl",e7,2e,f8,07); }
static void __boot();
static ::Array< int > LEN_EXTRA_BITS_TBL;
static ::Array< int > LEN_BASE_VAL_TBL;
static ::Array< int > DIST_EXTRA_BITS_TBL;
static ::Array< int > DIST_BASE_VAL_TBL;
static ::Array< int > CODE_LENGTHS_POS;
static ::haxe::zip::Huffman FIXED_HUFFMAN;
int nbits;
int bits;
::haxe::zip::_InflateImpl::State state;
bool isFinal;
::haxe::zip::Huffman huffman;
::haxe::zip::Huffman huffdist;
::haxe::zip::HuffTools htools;
int len;
int dist;
int needed;
::haxe::io::Bytes output;
int outpos;
::haxe::io::Input input;
::Array< int > lengths;
::haxe::zip::_InflateImpl::Window window;
::haxe::zip::Huffman buildFixedHuffman();
::Dynamic buildFixedHuffman_dyn();
int readBytes( ::haxe::io::Bytes b,int pos,int len);
::Dynamic readBytes_dyn();
int getBits(int n);
::Dynamic getBits_dyn();
bool getBit();
::Dynamic getBit_dyn();
int getRevBits(int n);
::Dynamic getRevBits_dyn();
void resetBits();
::Dynamic resetBits_dyn();
void addBytes( ::haxe::io::Bytes b,int p,int len);
::Dynamic addBytes_dyn();
void addByte(int b);
::Dynamic addByte_dyn();
void addDistOne(int n);
::Dynamic addDistOne_dyn();
void addDist(int d,int len);
::Dynamic addDist_dyn();
int applyHuffman( ::haxe::zip::Huffman h);
::Dynamic applyHuffman_dyn();
void inflateLengths(::Array< int > a,int max);
::Dynamic inflateLengths_dyn();
bool inflateLoop();
::Dynamic inflateLoop_dyn();
};
} // end namespace haxe
} // end namespace zip
#endif /* INCLUDED_haxe_zip_InflateImpl */

View File

@@ -0,0 +1,76 @@
// Generated by Haxe 4.0.5
#ifndef INCLUDED_haxe_zip_Reader
#define INCLUDED_haxe_zip_Reader
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
HX_DECLARE_CLASS0(Date)
HX_DECLARE_CLASS2(haxe,ds,List)
HX_DECLARE_CLASS2(haxe,io,Bytes)
HX_DECLARE_CLASS2(haxe,io,Input)
HX_DECLARE_CLASS2(haxe,zip,Reader)
namespace haxe{
namespace zip{
class HXCPP_CLASS_ATTRIBUTES Reader_obj : public hx::Object
{
public:
typedef hx::Object super;
typedef Reader_obj OBJ_;
Reader_obj();
public:
enum { _hx_ClassId = 0x2836055e };
void __construct( ::haxe::io::Input i);
inline void *operator new(size_t inSize, bool inContainer=true,const char *inName="haxe.zip.Reader")
{ return hx::Object::operator new(inSize,inContainer,inName); }
inline void *operator new(size_t inSize, int extra)
{ return hx::Object::operator new(inSize+extra,true,"haxe.zip.Reader"); }
static hx::ObjectPtr< Reader_obj > __new( ::haxe::io::Input i);
static hx::ObjectPtr< Reader_obj > __alloc(hx::Ctx *_hx_ctx, ::haxe::io::Input i);
static void * _hx_vtable;
static Dynamic __CreateEmpty();
static Dynamic __Create(hx::DynamicArray inArgs);
//~Reader_obj();
HX_DO_RTTI_ALL;
hx::Val __Field(const ::String &inString, hx::PropertyAccess inCallProp);
static bool __GetStatic(const ::String &inString, Dynamic &outValue, hx::PropertyAccess inCallProp);
hx::Val __SetField(const ::String &inString,const hx::Val &inValue, hx::PropertyAccess inCallProp);
void __GetFields(Array< ::String> &outFields);
static void __register();
void __Mark(HX_MARK_PARAMS);
void __Visit(HX_VISIT_PARAMS);
bool _hx_isInstanceOf(int inClassId);
::String __ToString() const { return HX_("Reader",63,19,26,31); }
static ::haxe::ds::List readZip( ::haxe::io::Input i);
static ::Dynamic readZip_dyn();
static ::haxe::io::Bytes unzip( ::Dynamic f);
static ::Dynamic unzip_dyn();
::haxe::io::Input i;
::Date readZipDate();
::Dynamic readZipDate_dyn();
::haxe::ds::List readExtraFields(int length);
::Dynamic readExtraFields_dyn();
::Dynamic readEntryHeader();
::Dynamic readEntryHeader_dyn();
::haxe::ds::List read();
::Dynamic read_dyn();
};
} // end namespace haxe
} // end namespace zip
#endif /* INCLUDED_haxe_zip_Reader */

View File

@@ -0,0 +1,51 @@
// Generated by Haxe 4.0.5
#ifndef INCLUDED_haxe_zip__InflateImpl_State
#define INCLUDED_haxe_zip__InflateImpl_State
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
HX_DECLARE_CLASS3(haxe,zip,_InflateImpl,State)
namespace haxe{
namespace zip{
namespace _InflateImpl{
class State_obj : public hx::EnumBase_obj
{
typedef hx::EnumBase_obj super;
typedef State_obj OBJ_;
public:
State_obj() {};
HX_DO_ENUM_RTTI;
static void __boot();
static void __register();
static bool __GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp);
::String GetEnumName( ) const { return HX_("haxe.zip._InflateImpl.State",a0,c2,8b,f6); }
::String __ToString() const { return HX_("State.",1d,4d,90,3a) + _hx_tag; }
static ::haxe::zip::_InflateImpl::State Block;
static inline ::haxe::zip::_InflateImpl::State Block_dyn() { return Block; }
static ::haxe::zip::_InflateImpl::State CData;
static inline ::haxe::zip::_InflateImpl::State CData_dyn() { return CData; }
static ::haxe::zip::_InflateImpl::State Crc;
static inline ::haxe::zip::_InflateImpl::State Crc_dyn() { return Crc; }
static ::haxe::zip::_InflateImpl::State Dist;
static inline ::haxe::zip::_InflateImpl::State Dist_dyn() { return Dist; }
static ::haxe::zip::_InflateImpl::State DistOne;
static inline ::haxe::zip::_InflateImpl::State DistOne_dyn() { return DistOne; }
static ::haxe::zip::_InflateImpl::State Done;
static inline ::haxe::zip::_InflateImpl::State Done_dyn() { return Done; }
static ::haxe::zip::_InflateImpl::State Flat;
static inline ::haxe::zip::_InflateImpl::State Flat_dyn() { return Flat; }
static ::haxe::zip::_InflateImpl::State Head;
static inline ::haxe::zip::_InflateImpl::State Head_dyn() { return Head; }
};
} // end namespace haxe
} // end namespace zip
} // end namespace _InflateImpl
#endif /* INCLUDED_haxe_zip__InflateImpl_State */

View File

@@ -0,0 +1,77 @@
// Generated by Haxe 4.0.5
#ifndef INCLUDED_haxe_zip__InflateImpl_Window
#define INCLUDED_haxe_zip__InflateImpl_Window
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
HX_DECLARE_CLASS2(haxe,crypto,Adler32)
HX_DECLARE_CLASS2(haxe,io,Bytes)
HX_DECLARE_CLASS3(haxe,zip,_InflateImpl,Window)
namespace haxe{
namespace zip{
namespace _InflateImpl{
class HXCPP_CLASS_ATTRIBUTES Window_obj : public hx::Object
{
public:
typedef hx::Object super;
typedef Window_obj OBJ_;
Window_obj();
public:
enum { _hx_ClassId = 0x021b9cf3 };
void __construct(bool hasCrc);
inline void *operator new(size_t inSize, bool inContainer=true,const char *inName="haxe.zip._InflateImpl.Window")
{ return hx::Object::operator new(inSize,inContainer,inName); }
inline void *operator new(size_t inSize, int extra)
{ return hx::Object::operator new(inSize+extra,true,"haxe.zip._InflateImpl.Window"); }
static hx::ObjectPtr< Window_obj > __new(bool hasCrc);
static hx::ObjectPtr< Window_obj > __alloc(hx::Ctx *_hx_ctx,bool hasCrc);
static void * _hx_vtable;
static Dynamic __CreateEmpty();
static Dynamic __Create(hx::DynamicArray inArgs);
//~Window_obj();
HX_DO_RTTI_ALL;
hx::Val __Field(const ::String &inString, hx::PropertyAccess inCallProp);
hx::Val __SetField(const ::String &inString,const hx::Val &inValue, hx::PropertyAccess inCallProp);
void __GetFields(Array< ::String> &outFields);
static void __register();
void __Mark(HX_MARK_PARAMS);
void __Visit(HX_VISIT_PARAMS);
bool _hx_isInstanceOf(int inClassId);
::String __ToString() const { return HX_("Window",10,08,21,87); }
::haxe::io::Bytes buffer;
int pos;
::haxe::crypto::Adler32 crc;
void slide();
::Dynamic slide_dyn();
void addBytes( ::haxe::io::Bytes b,int p,int len);
::Dynamic addBytes_dyn();
void addByte(int c);
::Dynamic addByte_dyn();
int getLastChar();
::Dynamic getLastChar_dyn();
int available();
::Dynamic available_dyn();
::haxe::crypto::Adler32 checksum();
::Dynamic checksum_dyn();
};
} // end namespace haxe
} // end namespace zip
} // end namespace _InflateImpl
#endif /* INCLUDED_haxe_zip__InflateImpl_Window */