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,352 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_ApplicationMain
#include <ApplicationMain.h>
#endif
#ifndef INCLUDED_DocumentClass
#include <DocumentClass.h>
#endif
#ifndef INCLUDED_Main
#include <Main.h>
#endif
#ifndef INCLUDED_ManifestResources
#include <ManifestResources.h>
#endif
#ifndef INCLUDED_Reflect
#include <Reflect.h>
#endif
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_haxe_IMap
#include <haxe/IMap.h>
#endif
#ifndef INCLUDED_haxe_ds_StringMap
#include <haxe/ds/StringMap.h>
#endif
#ifndef INCLUDED_lime_app_Application
#include <lime/app/Application.h>
#endif
#ifndef INCLUDED_lime_app_IModule
#include <lime/app/IModule.h>
#endif
#ifndef INCLUDED_lime_app_Module
#include <lime/app/Module.h>
#endif
#ifndef INCLUDED_lime_app__Event_Int_Int_Void
#include <lime/app/_Event_Int_Int_Void.h>
#endif
#ifndef INCLUDED_lime_app__Event_Void_Void
#include <lime/app/_Event_Void_Void.h>
#endif
#ifndef INCLUDED_lime_system_System
#include <lime/system/System.h>
#endif
#ifndef INCLUDED_lime_ui_Window
#include <lime/ui/Window.h>
#endif
#ifndef INCLUDED_lime_utils_AssetLibrary
#include <lime/utils/AssetLibrary.h>
#endif
#ifndef INCLUDED_lime_utils_Preloader
#include <lime/utils/Preloader.h>
#endif
#ifndef INCLUDED_openfl_display_Application
#include <openfl/display/Application.h>
#endif
#ifndef INCLUDED_openfl_display_DefaultPreloader
#include <openfl/display/DefaultPreloader.h>
#endif
#ifndef INCLUDED_openfl_display_DisplayObject
#include <openfl/display/DisplayObject.h>
#endif
#ifndef INCLUDED_openfl_display_DisplayObjectContainer
#include <openfl/display/DisplayObjectContainer.h>
#endif
#ifndef INCLUDED_openfl_display_IBitmapDrawable
#include <openfl/display/IBitmapDrawable.h>
#endif
#ifndef INCLUDED_openfl_display_InteractiveObject
#include <openfl/display/InteractiveObject.h>
#endif
#ifndef INCLUDED_openfl_display_MovieClip
#include <openfl/display/MovieClip.h>
#endif
#ifndef INCLUDED_openfl_display_Preloader
#include <openfl/display/Preloader.h>
#endif
#ifndef INCLUDED_openfl_display_Sprite
#include <openfl/display/Sprite.h>
#endif
#ifndef INCLUDED_openfl_display_Stage
#include <openfl/display/Stage.h>
#endif
#ifndef INCLUDED_openfl_display_Window
#include <openfl/display/Window.h>
#endif
#ifndef INCLUDED_openfl_events_ActivityEvent
#include <openfl/events/ActivityEvent.h>
#endif
#ifndef INCLUDED_openfl_events_Event
#include <openfl/events/Event.h>
#endif
#ifndef INCLUDED_openfl_events_EventDispatcher
#include <openfl/events/EventDispatcher.h>
#endif
#ifndef INCLUDED_openfl_events_FullScreenEvent
#include <openfl/events/FullScreenEvent.h>
#endif
#ifndef INCLUDED_openfl_events_IEventDispatcher
#include <openfl/events/IEventDispatcher.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_b3b993f62d801895_225___init__,"::ApplicationMain_obj","__init__",0x253d991d,"::ApplicationMain_obj.__init__","ApplicationMain.hx",225,0x0780ded5)
HX_LOCAL_STACK_FRAME(_hx_pos_6fcf922b66429816_17_main,"ApplicationMain","main",0x93d2f73e,"ApplicationMain.main","ApplicationMain.hx",17,0x0780ded5)
HX_LOCAL_STACK_FRAME(_hx_pos_6fcf922b66429816_109_create,"ApplicationMain","create",0x2f7db141,"ApplicationMain.create","ApplicationMain.hx",109,0x0780ded5)
HX_LOCAL_STACK_FRAME(_hx_pos_6fcf922b66429816_113_create,"ApplicationMain","create",0x2f7db141,"ApplicationMain.create","ApplicationMain.hx",113,0x0780ded5)
HX_LOCAL_STACK_FRAME(_hx_pos_6fcf922b66429816_116_create,"ApplicationMain","create",0x2f7db141,"ApplicationMain.create","ApplicationMain.hx",116,0x0780ded5)
HX_LOCAL_STACK_FRAME(_hx_pos_6fcf922b66429816_30_create,"ApplicationMain","create",0x2f7db141,"ApplicationMain.create","ApplicationMain.hx",30,0x0780ded5)
HX_LOCAL_STACK_FRAME(_hx_pos_6fcf922b66429816_142_start,"ApplicationMain","start",0x45b5d9bd,"ApplicationMain.start","ApplicationMain.hx",142,0x0780ded5)
void ApplicationMain_obj::__construct() { }
Dynamic ApplicationMain_obj::__CreateEmpty() { return new ApplicationMain_obj; }
void *ApplicationMain_obj::_hx_vtable = 0;
Dynamic ApplicationMain_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< ApplicationMain_obj > _hx_result = new ApplicationMain_obj();
_hx_result->__construct();
return _hx_result;
}
bool ApplicationMain_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x4a39ff89;
}
void ApplicationMain_obj::__init__(){
HX_STACKFRAME(&_hx_pos_b3b993f62d801895_225___init__)
HXDLIN( 225) ::Dynamic init = hx::ClassOf< ::lime::app::Application >();
}
void ApplicationMain_obj::main(){
HX_STACKFRAME(&_hx_pos_6fcf922b66429816_17_main)
HXLINE( 18) ::lime::_hx_system::System_obj::_hx___registerEntryPoint(HX_("FLWork",37,86,45,f9),::ApplicationMain_obj::create_dyn());
HXLINE( 25) ::ApplicationMain_obj::create(null());
}
STATIC_HX_DEFINE_DYNAMIC_FUNC0(ApplicationMain_obj,main,(void))
void ApplicationMain_obj::create( ::Dynamic config){
HX_BEGIN_LOCAL_FUNC_S1(hx::LocalFunc,_hx_Closure_0, ::openfl::display::Preloader,preloader) HXARGC(2)
void _hx_run(int loaded,int total){
HX_GC_STACKFRAME(&_hx_pos_6fcf922b66429816_109_create)
HXLINE( 109) preloader->update(loaded,total);
}
HX_END_LOCAL_FUNC2((void))
HX_BEGIN_LOCAL_FUNC_S1(hx::LocalFunc,_hx_Closure_1, ::openfl::display::Preloader,preloader) HXARGC(0)
void _hx_run(){
HX_GC_STACKFRAME(&_hx_pos_6fcf922b66429816_113_create)
HXLINE( 113) preloader->start();
}
HX_END_LOCAL_FUNC0((void))
HX_BEGIN_LOCAL_FUNC_S1(hx::LocalFunc,_hx_Closure_2, ::openfl::display::Stage,stage) HXARGC(0)
void _hx_run(){
HX_GC_STACKFRAME(&_hx_pos_6fcf922b66429816_116_create)
HXLINE( 116) ::ApplicationMain_obj::start(stage);
}
HX_END_LOCAL_FUNC0((void))
HX_GC_STACKFRAME(&_hx_pos_6fcf922b66429816_30_create)
HXLINE( 31) ::openfl::display::Application app = ::openfl::display::Application_obj::__alloc( HX_CTX );
HXLINE( 33) ::ManifestResources_obj::init(config);
HXLINE( 35) app->meta->set(HX_("build",2e,db,ea,ba),HX_("41",7d,2d,00,00));
HXLINE( 36) app->meta->set(HX_("company",3d,15,69,83),HX_("",00,00,00,00));
HXLINE( 37) app->meta->set(HX_("file",7c,ce,bb,43),HX_("FLWork",37,86,45,f9));
HXLINE( 38) app->meta->set(HX_("name",4b,72,ff,48),HX_("FLWork",37,86,45,f9));
HXLINE( 39) app->meta->set(HX_("packageName",f1,04,ad,04),HX_("FLWork",37,86,45,f9));
HXLINE( 40) app->meta->set(HX_("version",18,e7,f1,7c),HX_("1.0.0",b5,d1,2e,55));
HXLINE( 46) ::Dynamic attributes = ::Dynamic(hx::Anon_obj::Create(16)
->setFixed(0,HX_("resizable",6b,37,50,a9),true)
->setFixed(1,HX_("allowHighDPI",92,07,a2,b4),false)
->setFixed(2,HX_("width",06,b6,62,ca),320)
->setFixed(3,HX_("fullscreen",3b,3a,b4,f9),false)
->setFixed(4,HX_("maximized",18,0e,e1,fe),false)
->setFixed(5,HX_("x",78,00,00,00),null())
->setFixed(6,HX_("y",79,00,00,00),null())
->setFixed(7,HX_("height",e7,07,4c,02),480)
->setFixed(8,HX_("element",bc,ae,54,06),null())
->setFixed(9,HX_("title",98,15,3b,10),HX_("FLWork",37,86,45,f9))
->setFixed(10,HX_("alwaysOnTop",67,4d,53,16),false)
->setFixed(11,HX_("borderless",45,46,71,17),false)
->setFixed(12,HX_("minimized",86,fb,9d,28),false)
->setFixed(13,HX_("frameRate",ad,11,25,39),60)
->setFixed(14,HX_("hidden",6a,ff,95,4c),false)
->setFixed(15,HX_("parameters",aa,be,7e,51), ::Dynamic(hx::Anon_obj::Create(0))));
HXLINE( 66) attributes->__SetField(HX_("context",ef,95,77,19), ::Dynamic(hx::Anon_obj::Create(8)
->setFixed(0,HX_("stencil",fc,bd,03,80),true)
->setFixed(1,HX_("depth",03,f1,29,d7),true)
->setFixed(2,HX_("colorDepth",a0,08,96,fb),32)
->setFixed(3,HX_("background",ee,93,1d,26),null())
->setFixed(4,HX_("vsync",d1,2d,a8,3d),false)
->setFixed(5,HX_("antialiasing",f4,16,b3,48),0)
->setFixed(6,HX_("type",ba,f2,08,4d),null())
->setFixed(7,HX_("hardware",a8,e2,d3,75),true)),hx::paccDynamic);
HXLINE( 77) if (hx::IsNull( app->_hx___window )) {
HXLINE( 79) if (hx::IsNotNull( config )) {
HXLINE( 81) int _g = 0;
HXDLIN( 81) ::Array< ::String > _g1 = ::Reflect_obj::fields(config);
HXDLIN( 81) while((_g < _g1->length)){
HXLINE( 81) ::String field = _g1->__get(_g);
HXDLIN( 81) _g = (_g + 1);
HXLINE( 83) if (::Reflect_obj::hasField(attributes,field)) {
HXLINE( 85) ::Reflect_obj::setField(attributes,field,::Reflect_obj::field(config,field));
}
else {
HXLINE( 87) if (::Reflect_obj::hasField( ::Dynamic(attributes->__Field(HX_("context",ef,95,77,19),hx::paccDynamic)),field)) {
HXLINE( 89) ::Dynamic attributes1 = attributes->__Field(HX_("context",ef,95,77,19),hx::paccDynamic);
HXDLIN( 89) ::Reflect_obj::setField(attributes1,field,::Reflect_obj::field(config,field));
}
}
}
}
HXLINE( 95) ::lime::_hx_system::System_obj::_hx___parseArguments(attributes);
}
HXLINE( 99) Dynamic( app->createWindow(attributes)).StaticCast< ::openfl::display::Window >();
HXLINE( 106) ::openfl::display::Preloader preloader = ::openfl::display::Preloader_obj::__alloc( HX_CTX , ::openfl::display::DefaultPreloader_obj::__alloc( HX_CTX ));
HXLINE( 107) app->_hx___preloader->onProgress->add( ::Dynamic(new _hx_Closure_0(preloader)),null(),null());
HXLINE( 111) app->_hx___preloader->onComplete->add( ::Dynamic(new _hx_Closure_1(preloader)),null(),null());
HXLINE( 116) ::openfl::display::Stage stage = app->_hx___window->stage;
HXDLIN( 116) ::Dynamic _hx_tmp = ::Dynamic(new _hx_Closure_2(stage));
HXDLIN( 116) preloader->onComplete->add(_hx_tmp,null(),null());
HXLINE( 118) {
HXLINE( 118) int _g2 = 0;
HXDLIN( 118) ::Array< ::Dynamic> _g11 = ::ManifestResources_obj::preloadLibraries;
HXDLIN( 118) while((_g2 < _g11->length)){
HXLINE( 118) ::lime::utils::AssetLibrary library = _g11->__get(_g2).StaticCast< ::lime::utils::AssetLibrary >();
HXDLIN( 118) _g2 = (_g2 + 1);
HXLINE( 120) app->_hx___preloader->addLibrary(library);
}
}
HXLINE( 123) {
HXLINE( 123) int _g21 = 0;
HXDLIN( 123) ::Array< ::String > _g3 = ::ManifestResources_obj::preloadLibraryNames;
HXDLIN( 123) while((_g21 < _g3->length)){
HXLINE( 123) ::String name = _g3->__get(_g21);
HXDLIN( 123) _g21 = (_g21 + 1);
HXLINE( 125) app->_hx___preloader->addLibraryName(name);
}
}
HXLINE( 128) app->_hx___preloader->load();
HXLINE( 130) int result = app->exec();
HXLINE( 133) ::lime::_hx_system::System_obj::exit(result);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(ApplicationMain_obj,create,(void))
void ApplicationMain_obj::start( ::openfl::display::Stage stage){
HX_GC_STACKFRAME(&_hx_pos_6fcf922b66429816_142_start)
HXDLIN( 142) try {
HX_STACK_CATCHABLE( ::Dynamic, 0);
HXLINE( 187) {
HXLINE( 188) ::openfl::display::DisplayObject current = stage->getChildAt(0);
HXLINE( 190) bool _hx_tmp;
HXDLIN( 190) if (hx::IsNotNull( current )) {
HXLINE( 190) _hx_tmp = !(::Std_obj::is(current,hx::ClassOf< ::openfl::display::DisplayObjectContainer >()));
}
else {
HXLINE( 190) _hx_tmp = true;
}
HXDLIN( 190) if (_hx_tmp) {
HXLINE( 192) current = ::openfl::display::MovieClip_obj::__alloc( HX_CTX );
HXLINE( 193) stage->addChild(current);
}
HXLINE( 196) ::DocumentClass_obj::__alloc( HX_CTX ,( ( ::openfl::display::DisplayObjectContainer)(current) ));
}
HXLINE( 145) stage->dispatchEvent( ::openfl::events::Event_obj::__alloc( HX_CTX ,HX_("resize",f4,59,7b,08),false,false));
HXLINE( 147) if (stage->window->_hx___fullscreen) {
HXLINE( 149) stage->dispatchEvent( ::openfl::events::FullScreenEvent_obj::__alloc( HX_CTX ,HX_("fullScreen",5b,ae,48,2e),false,false,true,true));
}
} catch( ::Dynamic _hx_e) {
if (_hx_e.IsClass< ::Dynamic >() ){
HX_STACK_BEGIN_CATCH
::Dynamic e = _hx_e;
HXLINE( 155) stage->_hx___handleError(e);
}
else {
HX_STACK_DO_THROW(_hx_e);
}
}
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(ApplicationMain_obj,start,(void))
ApplicationMain_obj::ApplicationMain_obj()
{
}
bool ApplicationMain_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"main") ) { outValue = main_dyn(); return true; }
break;
case 5:
if (HX_FIELD_EQ(inName,"start") ) { outValue = start_dyn(); return true; }
break;
case 6:
if (HX_FIELD_EQ(inName,"create") ) { outValue = create_dyn(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *ApplicationMain_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *ApplicationMain_obj_sStaticStorageInfo = 0;
#endif
hx::Class ApplicationMain_obj::__mClass;
static ::String ApplicationMain_obj_sStaticFields[] = {
HX_("main",39,38,56,48),
HX_("create",fc,66,0f,7c),
HX_("start",62,74,0b,84),
::String(null())
};
void ApplicationMain_obj::__register()
{
ApplicationMain_obj _hx_dummy;
ApplicationMain_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("ApplicationMain",89,ff,39,4a);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &ApplicationMain_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(ApplicationMain_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< ApplicationMain_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = ApplicationMain_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = ApplicationMain_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
void ApplicationMain_obj::__boot()
{
}

View File

@@ -0,0 +1,191 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_Date
#include <Date.h>
#endif
#ifndef INCLUDED_Std
#include <Std.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_03b6f5be6798d30f_26_new,"Date","new",0x9aa26240,"Date.new","/usr/share/haxe/std/cpp/_std/Date.hx",26,0xb33fd9ec)
HX_LOCAL_STACK_FRAME(_hx_pos_03b6f5be6798d30f_30_getTime,"Date","getTime",0x0cac7da3,"Date.getTime","/usr/share/haxe/std/cpp/_std/Date.hx",30,0xb33fd9ec)
HX_LOCAL_STACK_FRAME(_hx_pos_03b6f5be6798d30f_94_toString,"Date","toString",0xd2a372cc,"Date.toString","/usr/share/haxe/std/cpp/_std/Date.hx",94,0xb33fd9ec)
HX_LOCAL_STACK_FRAME(_hx_pos_03b6f5be6798d30f_105_fromTime,"Date","fromTime",0x44fd3cb7,"Date.fromTime","/usr/share/haxe/std/cpp/_std/Date.hx",105,0xb33fd9ec)
HX_LOCAL_STACK_FRAME(_hx_pos_03b6f5be6798d30f_112_fromString,"Date","fromString",0x5ead97fb,"Date.fromString","/usr/share/haxe/std/cpp/_std/Date.hx",112,0xb33fd9ec)
void Date_obj::__construct(int year,int month,int day,int hour,int min,int sec){
HX_STACKFRAME(&_hx_pos_03b6f5be6798d30f_26_new)
HXDLIN( 26) this->mSeconds = ::__hxcpp_new_date(year,month,day,hour,min,sec);
}
Dynamic Date_obj::__CreateEmpty() { return new Date_obj; }
void *Date_obj::_hx_vtable = 0;
Dynamic Date_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Date_obj > _hx_result = new Date_obj();
_hx_result->__construct(inArgs[0],inArgs[1],inArgs[2],inArgs[3],inArgs[4],inArgs[5]);
return _hx_result;
}
bool Date_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x2d3c824e;
}
Float Date_obj::getTime(){
HX_STACKFRAME(&_hx_pos_03b6f5be6798d30f_30_getTime)
HXDLIN( 30) return (this->mSeconds * ((Float)1000.0));
}
HX_DEFINE_DYNAMIC_FUNC0(Date_obj,getTime,return )
::String Date_obj::toString(){
HX_STACKFRAME(&_hx_pos_03b6f5be6798d30f_94_toString)
HXDLIN( 94) return ::__hxcpp_to_string(this->mSeconds);
}
HX_DEFINE_DYNAMIC_FUNC0(Date_obj,toString,return )
::Date Date_obj::fromTime(Float t){
HX_GC_STACKFRAME(&_hx_pos_03b6f5be6798d30f_105_fromTime)
HXLINE( 106) ::Date result = ::Date_obj::__alloc( HX_CTX ,0,0,0,0,0,0);
HXLINE( 107) result->mSeconds = (t * ((Float)0.001));
HXLINE( 108) return result;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Date_obj,fromTime,return )
::Date Date_obj::fromString(::String s){
HX_GC_STACKFRAME(&_hx_pos_03b6f5be6798d30f_112_fromString)
HXDLIN( 112) switch((int)(s.length)){
case (int)8: {
HXLINE( 114) ::Array< ::String > k = s.split(HX_(":",3a,00,00,00));
HXLINE( 115) Float _hx_tmp = (( (Float)(::Std_obj::parseInt(k->__get(0))) ) * ((Float)3600000.));
HXDLIN( 115) Float _hx_tmp1 = (_hx_tmp + (( (Float)(::Std_obj::parseInt(k->__get(1))) ) * ((Float)60000.)));
HXDLIN( 115) return ::Date_obj::fromTime((_hx_tmp1 + (( (Float)(::Std_obj::parseInt(k->__get(2))) ) * ((Float)1000.))));
}
break;
case (int)10: {
HXLINE( 117) ::Array< ::String > k1 = s.split(HX_("-",2d,00,00,00));
HXLINE( 118) ::Dynamic _hx_tmp2 = ::Std_obj::parseInt(k1->__get(0));
HXDLIN( 118) int _hx_tmp3 = (( (int)(::Std_obj::parseInt(k1->__get(1))) ) - 1);
HXDLIN( 118) return ::Date_obj::__alloc( HX_CTX ,( (int)(_hx_tmp2) ),_hx_tmp3,( (int)(::Std_obj::parseInt(k1->__get(2))) ),0,0,0);
}
break;
case (int)19: {
HXLINE( 120) ::Array< ::String > k2 = s.split(HX_(" ",20,00,00,00));
HXLINE( 121) ::Array< ::String > y = k2->__get(0).split(HX_("-",2d,00,00,00));
HXLINE( 122) ::Array< ::String > t = k2->__get(1).split(HX_(":",3a,00,00,00));
HXLINE( 123) ::Dynamic _hx_tmp4 = ::Std_obj::parseInt(y->__get(0));
HXDLIN( 123) int _hx_tmp5 = (( (int)(::Std_obj::parseInt(y->__get(1))) ) - 1);
HXDLIN( 123) ::Dynamic _hx_tmp6 = ::Std_obj::parseInt(y->__get(2));
HXDLIN( 123) ::Dynamic _hx_tmp7 = ::Std_obj::parseInt(t->__get(0));
HXDLIN( 123) ::Dynamic _hx_tmp8 = ::Std_obj::parseInt(t->__get(1));
HXDLIN( 123) return ::Date_obj::__alloc( HX_CTX ,( (int)(_hx_tmp4) ),_hx_tmp5,( (int)(_hx_tmp6) ),( (int)(_hx_tmp7) ),( (int)(_hx_tmp8) ),( (int)(::Std_obj::parseInt(t->__get(2))) ));
}
break;
default:{
HXLINE( 125) HX_STACK_DO_THROW((HX_("Invalid date format : ",a6,de,58,13) + s));
}
}
HXLINE( 112) return null();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Date_obj,fromString,return )
Date_obj::Date_obj()
{
}
hx::Val Date_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 7:
if (HX_FIELD_EQ(inName,"getTime") ) { return hx::Val( getTime_dyn() ); }
break;
case 8:
if (HX_FIELD_EQ(inName,"mSeconds") ) { return hx::Val( mSeconds ); }
if (HX_FIELD_EQ(inName,"toString") ) { return hx::Val( toString_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
bool Date_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 8:
if (HX_FIELD_EQ(inName,"fromTime") ) { outValue = fromTime_dyn(); return true; }
break;
case 10:
if (HX_FIELD_EQ(inName,"fromString") ) { outValue = fromString_dyn(); return true; }
}
return false;
}
hx::Val Date_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 8:
if (HX_FIELD_EQ(inName,"mSeconds") ) { mSeconds=inValue.Cast< Float >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void Date_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("mSeconds",92,75,59,82));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo Date_obj_sMemberStorageInfo[] = {
{hx::fsFloat,(int)offsetof(Date_obj,mSeconds),HX_("mSeconds",92,75,59,82)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *Date_obj_sStaticStorageInfo = 0;
#endif
static ::String Date_obj_sMemberFields[] = {
HX_("mSeconds",92,75,59,82),
HX_("getTime",c3,7b,7f,1f),
HX_("toString",ac,d0,6e,38),
::String(null()) };
hx::Class Date_obj::__mClass;
static ::String Date_obj_sStaticFields[] = {
HX_("fromTime",97,9a,c8,aa),
HX_("fromString",db,2d,74,54),
::String(null())
};
void Date_obj::__register()
{
Date_obj _hx_dummy;
Date_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("Date",4e,82,3c,2d);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &Date_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(Date_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(Date_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< Date_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Date_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Date_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}

View File

@@ -0,0 +1,122 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_DocumentClass
#include <DocumentClass.h>
#endif
#ifndef INCLUDED_Main
#include <Main.h>
#endif
#ifndef INCLUDED_openfl_display_DisplayObject
#include <openfl/display/DisplayObject.h>
#endif
#ifndef INCLUDED_openfl_display_DisplayObjectContainer
#include <openfl/display/DisplayObjectContainer.h>
#endif
#ifndef INCLUDED_openfl_display_IBitmapDrawable
#include <openfl/display/IBitmapDrawable.h>
#endif
#ifndef INCLUDED_openfl_display_InteractiveObject
#include <openfl/display/InteractiveObject.h>
#endif
#ifndef INCLUDED_openfl_display_Sprite
#include <openfl/display/Sprite.h>
#endif
#ifndef INCLUDED_openfl_events_Event
#include <openfl/events/Event.h>
#endif
#ifndef INCLUDED_openfl_events_EventDispatcher
#include <openfl/events/EventDispatcher.h>
#endif
#ifndef INCLUDED_openfl_events_IEventDispatcher
#include <openfl/events/IEventDispatcher.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_9453f8fd92a21d0a_284_new,"DocumentClass","new",0x4aeb0a6f,"DocumentClass.new","ApplicationMain.hx",284,0x0780ded5)
void DocumentClass_obj::__construct( ::openfl::display::DisplayObjectContainer current){
HX_GC_STACKFRAME(&_hx_pos_9453f8fd92a21d0a_284_new)
HXLINE( 285) current->addChild(hx::ObjectPtr<OBJ_>(this));
HXLINE( 286) super::__construct();
HXLINE( 287) this->dispatchEvent( ::openfl::events::Event_obj::__alloc( HX_CTX ,HX_("addedToStage",63,22,55,0c),false,false));
}
Dynamic DocumentClass_obj::__CreateEmpty() { return new DocumentClass_obj; }
void *DocumentClass_obj::_hx_vtable = 0;
Dynamic DocumentClass_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< DocumentClass_obj > _hx_result = new DocumentClass_obj();
_hx_result->__construct(inArgs[0]);
return _hx_result;
}
bool DocumentClass_obj::_hx_isInstanceOf(int inClassId) {
if (inClassId<=(int)0x1b123bf8) {
if (inClassId<=(int)0x17120186) {
if (inClassId<=(int)0x0ddfced7) {
return inClassId==(int)0x00000001 || inClassId==(int)0x0ddfced7;
} else {
return inClassId==(int)0x17120186;
}
} else {
return inClassId==(int)0x19c29573 || inClassId==(int)0x1b123bf8;
}
} else {
if (inClassId<=(int)0x3e03a6fd) {
return inClassId==(int)0x332f6459 || inClassId==(int)0x3e03a6fd;
} else {
return inClassId==(int)0x3f2b00af;
}
}
}
hx::ObjectPtr< DocumentClass_obj > DocumentClass_obj::__new( ::openfl::display::DisplayObjectContainer current) {
hx::ObjectPtr< DocumentClass_obj > __this = new DocumentClass_obj();
__this->__construct(current);
return __this;
}
hx::ObjectPtr< DocumentClass_obj > DocumentClass_obj::__alloc(hx::Ctx *_hx_ctx, ::openfl::display::DisplayObjectContainer current) {
DocumentClass_obj *__this = (DocumentClass_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(DocumentClass_obj), true, "DocumentClass"));
*(void **)__this = DocumentClass_obj::_hx_vtable;
__this->__construct(current);
return __this;
}
DocumentClass_obj::DocumentClass_obj()
{
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *DocumentClass_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *DocumentClass_obj_sStaticStorageInfo = 0;
#endif
hx::Class DocumentClass_obj::__mClass;
void DocumentClass_obj::__register()
{
DocumentClass_obj _hx_dummy;
DocumentClass_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("DocumentClass",fd,a6,03,3e);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< DocumentClass_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = DocumentClass_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = DocumentClass_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}

View File

@@ -0,0 +1,209 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_EReg
#include <EReg.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_0f9ac110bd093a4e_28_new,"EReg","new",0x8b859e81,"EReg.new","/usr/share/haxe/std/cpp/_std/EReg.hx",28,0x3bcaa0cb)
HX_LOCAL_STACK_FRAME(_hx_pos_0f9ac110bd093a4e_36_match,"EReg","match",0x18fda1a6,"EReg.match","/usr/share/haxe/std/cpp/_std/EReg.hx",36,0x3bcaa0cb)
HX_LOCAL_STACK_FRAME(_hx_pos_0f9ac110bd093a4e_45_matched,"EReg","matched",0x8ce62f85,"EReg.matched","/usr/share/haxe/std/cpp/_std/EReg.hx",45,0x3bcaa0cb)
HX_LOCAL_STACK_FRAME(_hx_pos_0f9ac110bd093a4e_62_matchedPos,"EReg","matchedPos",0x7007a70f,"EReg.matchedPos","/usr/share/haxe/std/cpp/_std/EReg.hx",62,0x3bcaa0cb)
HX_LOCAL_STACK_FRAME(_hx_pos_0f9ac110bd093a4e_65_matchSub,"EReg","matchSub",0xbc75cb7a,"EReg.matchSub","/usr/share/haxe/std/cpp/_std/EReg.hx",65,0x3bcaa0cb)
void EReg_obj::__construct(::String r,::String opt){
HX_STACKFRAME(&_hx_pos_0f9ac110bd093a4e_28_new)
HXLINE( 29) ::Array< ::String > a = opt.split(HX_("g",67,00,00,00));
HXLINE( 30) this->global = (a->length > 1);
HXLINE( 31) if (this->global) {
HXLINE( 32) opt = a->join(HX_("",00,00,00,00));
}
HXLINE( 33) this->r = _hx_regexp_new_options(r,opt);
}
Dynamic EReg_obj::__CreateEmpty() { return new EReg_obj; }
void *EReg_obj::_hx_vtable = 0;
Dynamic EReg_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< EReg_obj > _hx_result = new EReg_obj();
_hx_result->__construct(inArgs[0],inArgs[1]);
return _hx_result;
}
bool EReg_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x2dda4a0f;
}
bool EReg_obj::match(::String s){
HX_STACKFRAME(&_hx_pos_0f9ac110bd093a4e_36_match)
HXLINE( 37) bool p = _hx_regexp_match(this->r,s,0,s.length);
HXLINE( 38) if (p) {
HXLINE( 39) this->last = s;
}
else {
HXLINE( 41) this->last = null();
}
HXLINE( 42) return p;
}
HX_DEFINE_DYNAMIC_FUNC1(EReg_obj,match,return )
::String EReg_obj::matched(int n){
HX_STACKFRAME(&_hx_pos_0f9ac110bd093a4e_45_matched)
HXLINE( 46) ::String m = _hx_regexp_matched(this->r,n);
HXLINE( 47) return m;
}
HX_DEFINE_DYNAMIC_FUNC1(EReg_obj,matched,return )
::Dynamic EReg_obj::matchedPos(){
HX_STACKFRAME(&_hx_pos_0f9ac110bd093a4e_62_matchedPos)
HXDLIN( 62) return _hx_regexp_matched_pos(this->r,0);
}
HX_DEFINE_DYNAMIC_FUNC0(EReg_obj,matchedPos,return )
bool EReg_obj::matchSub(::String s,int pos,hx::Null< int > __o_len){
int len = __o_len.Default(-1);
HX_STACKFRAME(&_hx_pos_0f9ac110bd093a4e_65_matchSub)
HXLINE( 66) int p;
HXDLIN( 66) if ((len < 0)) {
HXLINE( 66) p = (s.length - pos);
}
else {
HXLINE( 66) p = len;
}
HXDLIN( 66) bool p1 = _hx_regexp_match(this->r,s,pos,p);
HXLINE( 67) if (p1) {
HXLINE( 68) this->last = s;
}
else {
HXLINE( 70) this->last = null();
}
HXLINE( 71) return p1;
}
HX_DEFINE_DYNAMIC_FUNC3(EReg_obj,matchSub,return )
EReg_obj::EReg_obj()
{
}
void EReg_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(EReg);
HX_MARK_MEMBER_NAME(r,"r");
HX_MARK_MEMBER_NAME(last,"last");
HX_MARK_MEMBER_NAME(global,"global");
HX_MARK_END_CLASS();
}
void EReg_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(r,"r");
HX_VISIT_MEMBER_NAME(last,"last");
HX_VISIT_MEMBER_NAME(global,"global");
}
hx::Val EReg_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"r") ) { return hx::Val( r ); }
break;
case 4:
if (HX_FIELD_EQ(inName,"last") ) { return hx::Val( last ); }
break;
case 5:
if (HX_FIELD_EQ(inName,"match") ) { return hx::Val( match_dyn() ); }
break;
case 6:
if (HX_FIELD_EQ(inName,"global") ) { return hx::Val( global ); }
break;
case 7:
if (HX_FIELD_EQ(inName,"matched") ) { return hx::Val( matched_dyn() ); }
break;
case 8:
if (HX_FIELD_EQ(inName,"matchSub") ) { return hx::Val( matchSub_dyn() ); }
break;
case 10:
if (HX_FIELD_EQ(inName,"matchedPos") ) { return hx::Val( matchedPos_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val EReg_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"r") ) { r=inValue.Cast< ::Dynamic >(); return inValue; }
break;
case 4:
if (HX_FIELD_EQ(inName,"last") ) { last=inValue.Cast< ::String >(); return inValue; }
break;
case 6:
if (HX_FIELD_EQ(inName,"global") ) { global=inValue.Cast< bool >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void EReg_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("r",72,00,00,00));
outFields->push(HX_("last",56,0a,ad,47));
outFields->push(HX_("global",63,31,b2,a7));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo EReg_obj_sMemberStorageInfo[] = {
{hx::fsObject /* ::Dynamic */ ,(int)offsetof(EReg_obj,r),HX_("r",72,00,00,00)},
{hx::fsString,(int)offsetof(EReg_obj,last),HX_("last",56,0a,ad,47)},
{hx::fsBool,(int)offsetof(EReg_obj,global),HX_("global",63,31,b2,a7)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *EReg_obj_sStaticStorageInfo = 0;
#endif
static ::String EReg_obj_sMemberFields[] = {
HX_("r",72,00,00,00),
HX_("last",56,0a,ad,47),
HX_("global",63,31,b2,a7),
HX_("match",45,49,23,03),
HX_("matched",e4,3c,7c,89),
HX_("matchedPos",10,ff,c2,cb),
HX_("matchSub",3b,71,2b,c3),
::String(null()) };
hx::Class EReg_obj::__mClass;
void EReg_obj::__register()
{
EReg_obj _hx_dummy;
EReg_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("EReg",0f,4a,da,2d);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(EReg_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< EReg_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = EReg_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = EReg_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}

View File

@@ -0,0 +1,205 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_Game
#include <Game.h>
#endif
#ifndef INCLUDED_lime_app_IModule
#include <lime/app/IModule.h>
#endif
#ifndef INCLUDED_openfl_display_Bitmap
#include <openfl/display/Bitmap.h>
#endif
#ifndef INCLUDED_openfl_display_BitmapData
#include <openfl/display/BitmapData.h>
#endif
#ifndef INCLUDED_openfl_display_DisplayObject
#include <openfl/display/DisplayObject.h>
#endif
#ifndef INCLUDED_openfl_display_DisplayObjectContainer
#include <openfl/display/DisplayObjectContainer.h>
#endif
#ifndef INCLUDED_openfl_display_IBitmapDrawable
#include <openfl/display/IBitmapDrawable.h>
#endif
#ifndef INCLUDED_openfl_display_InteractiveObject
#include <openfl/display/InteractiveObject.h>
#endif
#ifndef INCLUDED_openfl_display_Sprite
#include <openfl/display/Sprite.h>
#endif
#ifndef INCLUDED_openfl_display_Stage
#include <openfl/display/Stage.h>
#endif
#ifndef INCLUDED_openfl_events_Event
#include <openfl/events/Event.h>
#endif
#ifndef INCLUDED_openfl_events_EventDispatcher
#include <openfl/events/EventDispatcher.h>
#endif
#ifndef INCLUDED_openfl_events_IEventDispatcher
#include <openfl/events/IEventDispatcher.h>
#endif
#ifndef INCLUDED_openfl_utils_Assets
#include <openfl/utils/Assets.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_69efd8c9269cf369_11_new,"Game","new",0x79ba3204,"Game.new","Game.hx",11,0x56a4f9ec)
HX_LOCAL_STACK_FRAME(_hx_pos_69efd8c9269cf369_15_onInit,"Game","onInit",0x5cb880ab,"Game.onInit","Game.hx",15,0x56a4f9ec)
HX_LOCAL_STACK_FRAME(_hx_pos_69efd8c9269cf369_25_onEnterFrame,"Game","onEnterFrame",0x6b8defd0,"Game.onEnterFrame","Game.hx",25,0x56a4f9ec)
void Game_obj::__construct( ::openfl::display::Stage _stage){
HX_STACKFRAME(&_hx_pos_69efd8c9269cf369_11_new)
HXDLIN( 11) this->stage = _stage;
}
Dynamic Game_obj::__CreateEmpty() { return new Game_obj; }
void *Game_obj::_hx_vtable = 0;
Dynamic Game_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Game_obj > _hx_result = new Game_obj();
_hx_result->__construct(inArgs[0]);
return _hx_result;
}
bool Game_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x2f382012;
}
void Game_obj::onInit(){
HX_GC_STACKFRAME(&_hx_pos_69efd8c9269cf369_15_onInit)
HXLINE( 16) this->player = ::openfl::display::Sprite_obj::__alloc( HX_CTX );
HXLINE( 17) this->stage->addChild(this->player);
HXLINE( 20) ::openfl::display::BitmapData bitmapData = ::openfl::utils::Assets_obj::getBitmapData(HX_("sprites/character.png",23,15,fe,aa),null());
HXLINE( 21) ::openfl::display::Sprite _hx_tmp = this->player;
HXDLIN( 21) _hx_tmp->addChild( ::openfl::display::Bitmap_obj::__alloc( HX_CTX ,bitmapData,null(),null()));
}
HX_DEFINE_DYNAMIC_FUNC0(Game_obj,onInit,(void))
void Game_obj::onEnterFrame( ::openfl::events::Event e){
HX_STACKFRAME(&_hx_pos_69efd8c9269cf369_25_onEnterFrame)
HXLINE( 26) {
HXLINE( 26) ::openfl::display::Sprite _g = this->player;
HXDLIN( 26) _g->set_x((_g->get_x() + 1));
}
HXLINE( 27) {
HXLINE( 27) ::openfl::display::Sprite _g1 = this->player;
HXDLIN( 27) _g1->set_y((_g1->get_y() + 1));
}
}
HX_DEFINE_DYNAMIC_FUNC1(Game_obj,onEnterFrame,(void))
hx::ObjectPtr< Game_obj > Game_obj::__new( ::openfl::display::Stage _stage) {
hx::ObjectPtr< Game_obj > __this = new Game_obj();
__this->__construct(_stage);
return __this;
}
hx::ObjectPtr< Game_obj > Game_obj::__alloc(hx::Ctx *_hx_ctx, ::openfl::display::Stage _stage) {
Game_obj *__this = (Game_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(Game_obj), true, "Game"));
*(void **)__this = Game_obj::_hx_vtable;
__this->__construct(_stage);
return __this;
}
Game_obj::Game_obj()
{
}
void Game_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(Game);
HX_MARK_MEMBER_NAME(stage,"stage");
HX_MARK_MEMBER_NAME(player,"player");
HX_MARK_END_CLASS();
}
void Game_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(stage,"stage");
HX_VISIT_MEMBER_NAME(player,"player");
}
hx::Val Game_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 5:
if (HX_FIELD_EQ(inName,"stage") ) { return hx::Val( stage ); }
break;
case 6:
if (HX_FIELD_EQ(inName,"player") ) { return hx::Val( player ); }
if (HX_FIELD_EQ(inName,"onInit") ) { return hx::Val( onInit_dyn() ); }
break;
case 12:
if (HX_FIELD_EQ(inName,"onEnterFrame") ) { return hx::Val( onEnterFrame_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val Game_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 5:
if (HX_FIELD_EQ(inName,"stage") ) { stage=inValue.Cast< ::openfl::display::Stage >(); return inValue; }
break;
case 6:
if (HX_FIELD_EQ(inName,"player") ) { player=inValue.Cast< ::openfl::display::Sprite >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void Game_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("stage",be,6a,0b,84));
outFields->push(HX_("player",61,eb,b8,37));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo Game_obj_sMemberStorageInfo[] = {
{hx::fsObject /* ::openfl::display::Stage */ ,(int)offsetof(Game_obj,stage),HX_("stage",be,6a,0b,84)},
{hx::fsObject /* ::openfl::display::Sprite */ ,(int)offsetof(Game_obj,player),HX_("player",61,eb,b8,37)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *Game_obj_sStaticStorageInfo = 0;
#endif
static ::String Game_obj_sMemberFields[] = {
HX_("stage",be,6a,0b,84),
HX_("player",61,eb,b8,37),
HX_("onInit",cf,43,45,e8),
HX_("onEnterFrame",f4,a5,93,da),
::String(null()) };
hx::Class Game_obj::__mClass;
void Game_obj::__register()
{
Game_obj _hx_dummy;
Game_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("Game",12,20,38,2f);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(Game_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< Game_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Game_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Game_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}

View File

@@ -0,0 +1,91 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_Lambda
#include <Lambda.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_fe797cbef4e9ff25_45_array,"Lambda","array",0x9c8b0512,"Lambda.array","/usr/share/haxe/std/Lambda.hx",45,0x92dd64dc)
void Lambda_obj::__construct() { }
Dynamic Lambda_obj::__CreateEmpty() { return new Lambda_obj; }
void *Lambda_obj::_hx_vtable = 0;
Dynamic Lambda_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Lambda_obj > _hx_result = new Lambda_obj();
_hx_result->__construct();
return _hx_result;
}
bool Lambda_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x02196def;
}
::cpp::VirtualArray Lambda_obj::array( ::Dynamic it){
HX_STACKFRAME(&_hx_pos_fe797cbef4e9ff25_45_array)
HXLINE( 46) ::cpp::VirtualArray a = ::cpp::VirtualArray_obj::__new();
HXLINE( 47) {
HXLINE( 47) ::Dynamic i = it->__Field(HX_("iterator",ee,49,9a,93),hx::paccDynamic)();
HXDLIN( 47) while(( (bool)(i->__Field(HX_("hasNext",6d,a5,46,18),hx::paccDynamic)()) )){
HXLINE( 47) ::Dynamic i1 = i->__Field(HX_("next",f3,84,02,49),hx::paccDynamic)();
HXLINE( 48) a->push(i1);
}
}
HXLINE( 49) return a;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Lambda_obj,array,return )
Lambda_obj::Lambda_obj()
{
}
bool Lambda_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 5:
if (HX_FIELD_EQ(inName,"array") ) { outValue = array_dyn(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *Lambda_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *Lambda_obj_sStaticStorageInfo = 0;
#endif
hx::Class Lambda_obj::__mClass;
static ::String Lambda_obj_sStaticFields[] = {
HX_("array",99,6d,8f,25),
::String(null())
};
void Lambda_obj::__register()
{
Lambda_obj _hx_dummy;
Lambda_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("Lambda",27,a7,54,85);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &Lambda_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(Lambda_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< Lambda_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Lambda_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Lambda_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}

View File

@@ -0,0 +1,163 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_Game
#include <Game.h>
#endif
#ifndef INCLUDED_Main
#include <Main.h>
#endif
#ifndef INCLUDED_lime_app_Application
#include <lime/app/Application.h>
#endif
#ifndef INCLUDED_lime_app_IModule
#include <lime/app/IModule.h>
#endif
#ifndef INCLUDED_lime_app_Module
#include <lime/app/Module.h>
#endif
#ifndef INCLUDED_lime_ui_Window
#include <lime/ui/Window.h>
#endif
#ifndef INCLUDED_openfl_display_DisplayObject
#include <openfl/display/DisplayObject.h>
#endif
#ifndef INCLUDED_openfl_display_DisplayObjectContainer
#include <openfl/display/DisplayObjectContainer.h>
#endif
#ifndef INCLUDED_openfl_display_IBitmapDrawable
#include <openfl/display/IBitmapDrawable.h>
#endif
#ifndef INCLUDED_openfl_display_InteractiveObject
#include <openfl/display/InteractiveObject.h>
#endif
#ifndef INCLUDED_openfl_display_Sprite
#include <openfl/display/Sprite.h>
#endif
#ifndef INCLUDED_openfl_display_Stage
#include <openfl/display/Stage.h>
#endif
#ifndef INCLUDED_openfl_events_Event
#include <openfl/events/Event.h>
#endif
#ifndef INCLUDED_openfl_events_EventDispatcher
#include <openfl/events/EventDispatcher.h>
#endif
#ifndef INCLUDED_openfl_events_IEventDispatcher
#include <openfl/events/IEventDispatcher.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_e47a9afac0942eb9_5_new,"Main","new",0x6616a5cb,"Main.new","Main.hx",5,0x087e5c05)
HX_LOCAL_STACK_FRAME(_hx_pos_e47a9afac0942eb9_16_onResize,"Main","onResize",0x2f30f728,"Main.onResize","Main.hx",16,0x087e5c05)
void Main_obj::__construct(){
HX_GC_STACKFRAME(&_hx_pos_e47a9afac0942eb9_5_new)
HXLINE( 6) super::__construct();
HXLINE( 7) this->stage->set_frameRate(( (Float)(1000) ));
HXLINE( 8) ::Game game = ::Game_obj::__alloc( HX_CTX ,this->stage);
HXLINE( 9) game->onInit();
HXLINE( 10) this->stage->addEventListener(HX_("enterFrame",f5,03,50,02),game->onEnterFrame_dyn(),null(),null(),null());
HXLINE( 11) this->stage->addEventListener(HX_("resize",f4,59,7b,08),this->onResize_dyn(),null(),null(),null());
HXLINE( 12) this->stage->application->_hx___window->resize(1920,1080);
HXLINE( 13) this->stage->application->_hx___window->set_title(HX_("Kanker",a0,56,a9,1f));
}
Dynamic Main_obj::__CreateEmpty() { return new Main_obj; }
void *Main_obj::_hx_vtable = 0;
Dynamic Main_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Main_obj > _hx_result = new Main_obj();
_hx_result->__construct();
return _hx_result;
}
bool Main_obj::_hx_isInstanceOf(int inClassId) {
if (inClassId<=(int)0x19c29573) {
if (inClassId<=(int)0x17120186) {
if (inClassId<=(int)0x0ddfced7) {
return inClassId==(int)0x00000001 || inClassId==(int)0x0ddfced7;
} else {
return inClassId==(int)0x17120186;
}
} else {
return inClassId==(int)0x19c29573;
}
} else {
if (inClassId<=(int)0x332f6459) {
return inClassId==(int)0x1b123bf8 || inClassId==(int)0x332f6459;
} else {
return inClassId==(int)0x3f2b00af;
}
}
}
void Main_obj::onResize( ::openfl::events::Event event){
HX_STACKFRAME(&_hx_pos_e47a9afac0942eb9_16_onResize)
}
HX_DEFINE_DYNAMIC_FUNC1(Main_obj,onResize,(void))
hx::ObjectPtr< Main_obj > Main_obj::__new() {
hx::ObjectPtr< Main_obj > __this = new Main_obj();
__this->__construct();
return __this;
}
hx::ObjectPtr< Main_obj > Main_obj::__alloc(hx::Ctx *_hx_ctx) {
Main_obj *__this = (Main_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(Main_obj), true, "Main"));
*(void **)__this = Main_obj::_hx_vtable;
__this->__construct();
return __this;
}
Main_obj::Main_obj()
{
}
hx::Val Main_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 8:
if (HX_FIELD_EQ(inName,"onResize") ) { return hx::Val( onResize_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *Main_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *Main_obj_sStaticStorageInfo = 0;
#endif
static ::String Main_obj_sMemberFields[] = {
HX_("onResize",73,50,28,e8),
::String(null()) };
hx::Class Main_obj::__mClass;
void Main_obj::__register()
{
Main_obj _hx_dummy;
Main_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("Main",59,64,2f,33);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(Main_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< Main_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Main_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Main_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}

View File

@@ -0,0 +1,184 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_ManifestResources
#include <ManifestResources.h>
#endif
#ifndef INCLUDED_Reflect
#include <Reflect.h>
#endif
#ifndef INCLUDED_haxe_IMap
#include <haxe/IMap.h>
#endif
#ifndef INCLUDED_haxe_ds_StringMap
#include <haxe/ds/StringMap.h>
#endif
#ifndef INCLUDED_lime_utils_AssetLibrary
#include <lime/utils/AssetLibrary.h>
#endif
#ifndef INCLUDED_lime_utils_Assets
#include <lime/utils/Assets.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_6b0b98c45b3017d4_25_init,"ManifestResources","init",0xc8e10c68,"ManifestResources.init","ManifestResources.hx",25,0xf77aa668)
void ManifestResources_obj::__construct() { }
Dynamic ManifestResources_obj::__CreateEmpty() { return new ManifestResources_obj; }
void *ManifestResources_obj::_hx_vtable = 0;
Dynamic ManifestResources_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< ManifestResources_obj > _hx_result = new ManifestResources_obj();
_hx_result->__construct();
return _hx_result;
}
bool ManifestResources_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x56300e16;
}
::Array< ::Dynamic> ManifestResources_obj::preloadLibraries;
::Array< ::String > ManifestResources_obj::preloadLibraryNames;
::String ManifestResources_obj::rootPath;
void ManifestResources_obj::init( ::Dynamic config){
HX_STACKFRAME(&_hx_pos_6b0b98c45b3017d4_25_init)
HXLINE( 27) ::ManifestResources_obj::preloadLibraries = ::Array_obj< ::Dynamic>::__new();
HXLINE( 28) ::ManifestResources_obj::preloadLibraryNames = ::Array_obj< ::String >::__new();
HXLINE( 30) ::ManifestResources_obj::rootPath = null();
HXLINE( 32) bool _hx_tmp;
HXDLIN( 32) if (hx::IsNotNull( config )) {
HXLINE( 32) _hx_tmp = ::Reflect_obj::hasField(config,HX_("rootPath",e7,b8,88,e1));
}
else {
HXLINE( 32) _hx_tmp = false;
}
HXDLIN( 32) if (_hx_tmp) {
HXLINE( 34) ::ManifestResources_obj::rootPath = ( (::String)(::Reflect_obj::field(config,HX_("rootPath",e7,b8,88,e1))) );
}
HXLINE( 38) if (hx::IsNull( ::ManifestResources_obj::rootPath )) {
HXLINE( 47) ::ManifestResources_obj::rootPath = HX_("./",41,28,00,00);
}
HXLINE( 56) ::Dynamic data;
HXDLIN( 56) ::Dynamic manifest;
HXDLIN( 56) ::Dynamic bundle;
HXLINE( 69) {
HXLINE( 69) ::String v = (::ManifestResources_obj::rootPath + HX_("manifest/default.json",95,ea,cc,42));
HXDLIN( 69) ::lime::utils::Assets_obj::libraryPaths->set(HX_("default",c1,d8,c3,9b),v);
}
HXLINE( 56) ::lime::utils::AssetLibrary library = ::lime::utils::Assets_obj::getLibrary(HX_("default",c1,d8,c3,9b));
HXLINE( 73) if (hx::IsNotNull( library )) {
HXLINE( 73) ::ManifestResources_obj::preloadLibraries->push(library);
}
else {
HXLINE( 74) ::ManifestResources_obj::preloadLibraryNames->push(HX_("default",c1,d8,c3,9b));
}
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(ManifestResources_obj,init,(void))
ManifestResources_obj::ManifestResources_obj()
{
}
bool ManifestResources_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"init") ) { outValue = init_dyn(); return true; }
break;
case 8:
if (HX_FIELD_EQ(inName,"rootPath") ) { outValue = ( rootPath ); return true; }
break;
case 16:
if (HX_FIELD_EQ(inName,"preloadLibraries") ) { outValue = ( preloadLibraries ); return true; }
break;
case 19:
if (HX_FIELD_EQ(inName,"preloadLibraryNames") ) { outValue = ( preloadLibraryNames ); return true; }
}
return false;
}
bool ManifestResources_obj::__SetStatic(const ::String &inName,Dynamic &ioValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 8:
if (HX_FIELD_EQ(inName,"rootPath") ) { rootPath=ioValue.Cast< ::String >(); return true; }
break;
case 16:
if (HX_FIELD_EQ(inName,"preloadLibraries") ) { preloadLibraries=ioValue.Cast< ::Array< ::Dynamic> >(); return true; }
break;
case 19:
if (HX_FIELD_EQ(inName,"preloadLibraryNames") ) { preloadLibraryNames=ioValue.Cast< ::Array< ::String > >(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *ManifestResources_obj_sMemberStorageInfo = 0;
static hx::StaticInfo ManifestResources_obj_sStaticStorageInfo[] = {
{hx::fsObject /* ::Array< ::Dynamic> */ ,(void *) &ManifestResources_obj::preloadLibraries,HX_("preloadLibraries",10,27,df,e6)},
{hx::fsObject /* ::Array< ::String > */ ,(void *) &ManifestResources_obj::preloadLibraryNames,HX_("preloadLibraryNames",36,48,52,5c)},
{hx::fsString,(void *) &ManifestResources_obj::rootPath,HX_("rootPath",e7,b8,88,e1)},
{ hx::fsUnknown, 0, null()}
};
#endif
static void ManifestResources_obj_sMarkStatics(HX_MARK_PARAMS) {
HX_MARK_MEMBER_NAME(ManifestResources_obj::preloadLibraries,"preloadLibraries");
HX_MARK_MEMBER_NAME(ManifestResources_obj::preloadLibraryNames,"preloadLibraryNames");
HX_MARK_MEMBER_NAME(ManifestResources_obj::rootPath,"rootPath");
};
#ifdef HXCPP_VISIT_ALLOCS
static void ManifestResources_obj_sVisitStatics(HX_VISIT_PARAMS) {
HX_VISIT_MEMBER_NAME(ManifestResources_obj::preloadLibraries,"preloadLibraries");
HX_VISIT_MEMBER_NAME(ManifestResources_obj::preloadLibraryNames,"preloadLibraryNames");
HX_VISIT_MEMBER_NAME(ManifestResources_obj::rootPath,"rootPath");
};
#endif
hx::Class ManifestResources_obj::__mClass;
static ::String ManifestResources_obj_sStaticFields[] = {
HX_("preloadLibraries",10,27,df,e6),
HX_("preloadLibraryNames",36,48,52,5c),
HX_("rootPath",e7,b8,88,e1),
HX_("init",10,3b,bb,45),
::String(null())
};
void ManifestResources_obj::__register()
{
ManifestResources_obj _hx_dummy;
ManifestResources_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("ManifestResources",16,0e,30,56);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &ManifestResources_obj::__GetStatic;
__mClass->mSetStaticField = &ManifestResources_obj::__SetStatic;
__mClass->mMarkFunc = ManifestResources_obj_sMarkStatics;
__mClass->mStatics = hx::Class_obj::dupFunctions(ManifestResources_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< ManifestResources_obj >;
#ifdef HXCPP_VISIT_ALLOCS
__mClass->mVisitFunc = ManifestResources_obj_sVisitStatics;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = ManifestResources_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = ManifestResources_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}

View File

@@ -0,0 +1,221 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_Reflect
#include <Reflect.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_f7db3bba25961ad3_30_hasField,"Reflect","hasField",0xef8c2571,"Reflect.hasField","/usr/share/haxe/std/cpp/_std/Reflect.hx",30,0x95b6af85)
HX_LOCAL_STACK_FRAME(_hx_pos_f7db3bba25961ad3_35_field,"Reflect","field",0x54b04da9,"Reflect.field","/usr/share/haxe/std/cpp/_std/Reflect.hx",35,0x95b6af85)
HX_LOCAL_STACK_FRAME(_hx_pos_f7db3bba25961ad3_40_setField,"Reflect","setField",0x71684429,"Reflect.setField","/usr/share/haxe/std/cpp/_std/Reflect.hx",40,0x95b6af85)
HX_LOCAL_STACK_FRAME(_hx_pos_f7db3bba25961ad3_54_callMethod,"Reflect","callMethod",0xb49e52d0,"Reflect.callMethod","/usr/share/haxe/std/cpp/_std/Reflect.hx",54,0x95b6af85)
HX_LOCAL_STACK_FRAME(_hx_pos_f7db3bba25961ad3_67_fields,"Reflect","fields",0xc593a6aa,"Reflect.fields","/usr/share/haxe/std/cpp/_std/Reflect.hx",67,0x95b6af85)
HX_LOCAL_STACK_FRAME(_hx_pos_f7db3bba25961ad3_77_isFunction,"Reflect","isFunction",0x0f1541d3,"Reflect.isFunction","/usr/share/haxe/std/cpp/_std/Reflect.hx",77,0x95b6af85)
HX_LOCAL_STACK_FRAME(_hx_pos_f7db3bba25961ad3_81_compare,"Reflect","compare",0xa2d92b54,"Reflect.compare","/usr/share/haxe/std/cpp/_std/Reflect.hx",81,0x95b6af85)
HX_LOCAL_STACK_FRAME(_hx_pos_f7db3bba25961ad3_84_compareMethods,"Reflect","compareMethods",0x8b8ddd7e,"Reflect.compareMethods","/usr/share/haxe/std/cpp/_std/Reflect.hx",84,0x95b6af85)
HX_LOCAL_STACK_FRAME(_hx_pos_f7db3bba25961ad3_93_isObject,"Reflect","isObject",0xd04960ba,"Reflect.isObject","/usr/share/haxe/std/cpp/_std/Reflect.hx",93,0x95b6af85)
HX_LOCAL_STACK_FRAME(_hx_pos_f7db3bba25961ad3_127_makeVarArgs,"Reflect","makeVarArgs",0x978955c5,"Reflect.makeVarArgs","/usr/share/haxe/std/cpp/_std/Reflect.hx",127,0x95b6af85)
void Reflect_obj::__construct() { }
Dynamic Reflect_obj::__CreateEmpty() { return new Reflect_obj; }
void *Reflect_obj::_hx_vtable = 0;
Dynamic Reflect_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Reflect_obj > _hx_result = new Reflect_obj();
_hx_result->__construct();
return _hx_result;
}
bool Reflect_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x0e2f4039;
}
bool Reflect_obj::hasField( ::Dynamic o,::String field){
HX_STACKFRAME(&_hx_pos_f7db3bba25961ad3_30_hasField)
HXDLIN( 30) return (hx::IsNotNull( o ) && ( (bool)(o->__HasField(field)) ));
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(Reflect_obj,hasField,return )
::Dynamic Reflect_obj::field( ::Dynamic o,::String field){
HX_STACKFRAME(&_hx_pos_f7db3bba25961ad3_35_field)
HXDLIN( 35) return hx::IsNull( o ) ? null() : o->__Field(field,hx::paccNever);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(Reflect_obj,field,return )
void Reflect_obj::setField( ::Dynamic o,::String field, ::Dynamic value){
HX_STACKFRAME(&_hx_pos_f7db3bba25961ad3_40_setField)
HXDLIN( 40) if (hx::IsNotNull( o )) {
HXLINE( 41) o->__SetField(field,value,hx::paccNever);
}
}
STATIC_HX_DEFINE_DYNAMIC_FUNC3(Reflect_obj,setField,(void))
::Dynamic Reflect_obj::callMethod( ::Dynamic o, ::Dynamic func,::cpp::VirtualArray args){
HX_STACKFRAME(&_hx_pos_f7db3bba25961ad3_54_callMethod)
HXLINE( 55) if ((hx::IsNotNull( func ) && hx::IsEq( func->__GetType(),3 ))) {
HXLINE( 56) if (hx::IsNull( o )) {
HXLINE( 57) HX_STACK_DO_THROW(HX_INVALID_OBJECT);
}
HXLINE( 58) func = o->__Field(func,hx::paccDynamic);
}
HXLINE( 60) if (hx::IsNull( func )) {
HXLINE( 61) HX_STACK_DO_THROW(HX_NULL_FUNCTION_POINTER);
}
HXLINE( 62) func->__SetThis(o);
HXLINE( 63) return func->__Run(args);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC3(Reflect_obj,callMethod,return )
::Array< ::String > Reflect_obj::fields( ::Dynamic o){
HX_STACKFRAME(&_hx_pos_f7db3bba25961ad3_67_fields)
HXLINE( 68) if (hx::IsNull( o )) {
HXLINE( 69) return ::Array_obj< ::String >::__new();
}
HXLINE( 70) ::Array< ::String > a = ::Array_obj< ::String >::__new(0);
HXLINE( 71) o->__GetFields(a);
HXLINE( 72) return a;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Reflect_obj,fields,return )
bool Reflect_obj::isFunction( ::Dynamic f){
HX_STACKFRAME(&_hx_pos_f7db3bba25961ad3_77_isFunction)
HXDLIN( 77) return (hx::IsNotNull( f ) && hx::IsEq( f->__GetType(),6 ));
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Reflect_obj,isFunction,return )
int Reflect_obj::compare( ::Dynamic a, ::Dynamic b){
HX_STACKFRAME(&_hx_pos_f7db3bba25961ad3_81_compare)
HXDLIN( 81) return hx::IsEq( a,b ) ? 0 : hx::IsGreater( a,b ) ? 1 : -1;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(Reflect_obj,compare,return )
bool Reflect_obj::compareMethods( ::Dynamic f1, ::Dynamic f2){
HX_STACKFRAME(&_hx_pos_f7db3bba25961ad3_84_compareMethods)
HXLINE( 85) if (hx::IsEq( f1,f2 )) {
HXLINE( 86) return true;
}
HXLINE( 87) if ((!(::Reflect_obj::isFunction(f1)) || !(::Reflect_obj::isFunction(f2)))) {
HXLINE( 88) return false;
}
HXLINE( 89) return ::__hxcpp_same_closure(f1,f2);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(Reflect_obj,compareMethods,return )
bool Reflect_obj::isObject( ::Dynamic v){
HX_STACKFRAME(&_hx_pos_f7db3bba25961ad3_93_isObject)
HXLINE( 94) if (hx::IsNull( v )) {
HXLINE( 95) return false;
}
HXLINE( 96) int t = ( (int)(v->__GetType()) );
HXLINE( 97) return ((((t == 4) || (t == 8)) || (t == 3)) || (t == 5));
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Reflect_obj,isObject,return )
::Dynamic Reflect_obj::makeVarArgs( ::Dynamic f){
HX_STACKFRAME(&_hx_pos_f7db3bba25961ad3_127_makeVarArgs)
HXDLIN( 127) return ::__hxcpp_create_var_args(f);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Reflect_obj,makeVarArgs,return )
Reflect_obj::Reflect_obj()
{
}
bool Reflect_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 5:
if (HX_FIELD_EQ(inName,"field") ) { outValue = field_dyn(); return true; }
break;
case 6:
if (HX_FIELD_EQ(inName,"fields") ) { outValue = fields_dyn(); return true; }
break;
case 7:
if (HX_FIELD_EQ(inName,"compare") ) { outValue = compare_dyn(); return true; }
break;
case 8:
if (HX_FIELD_EQ(inName,"hasField") ) { outValue = hasField_dyn(); return true; }
if (HX_FIELD_EQ(inName,"setField") ) { outValue = setField_dyn(); return true; }
if (HX_FIELD_EQ(inName,"isObject") ) { outValue = isObject_dyn(); return true; }
break;
case 10:
if (HX_FIELD_EQ(inName,"callMethod") ) { outValue = callMethod_dyn(); return true; }
if (HX_FIELD_EQ(inName,"isFunction") ) { outValue = isFunction_dyn(); return true; }
break;
case 11:
if (HX_FIELD_EQ(inName,"makeVarArgs") ) { outValue = makeVarArgs_dyn(); return true; }
break;
case 14:
if (HX_FIELD_EQ(inName,"compareMethods") ) { outValue = compareMethods_dyn(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *Reflect_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *Reflect_obj_sStaticStorageInfo = 0;
#endif
hx::Class Reflect_obj::__mClass;
static ::String Reflect_obj_sStaticFields[] = {
HX_("hasField",00,df,eb,8c),
HX_("field",ba,94,93,00),
HX_("setField",b8,fd,c7,0e),
HX_("callMethod",1f,ce,8a,34),
HX_("fields",79,8e,8e,80),
HX_("isFunction",22,bd,01,8f),
HX_("compare",a5,18,69,83),
HX_("compareMethods",4d,ac,7b,37),
HX_("isObject",49,1a,a9,6d),
HX_("makeVarArgs",96,bf,88,06),
::String(null())
};
void Reflect_obj::__register()
{
Reflect_obj _hx_dummy;
Reflect_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("Reflect",1d,ac,7a,b6);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &Reflect_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(Reflect_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< Reflect_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Reflect_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Reflect_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}

View File

@@ -0,0 +1,190 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_10265659e446e554_25_is,"Std","is",0x3c56d6f5,"Std.is","/usr/share/haxe/std/cpp/_std/Std.hx",25,0x63298cdf)
HX_LOCAL_STACK_FRAME(_hx_pos_10265659e446e554_29_downcast,"Std","downcast",0x4619c56c,"Std.downcast","/usr/share/haxe/std/cpp/_std/Std.hx",29,0x63298cdf)
HX_LOCAL_STACK_FRAME(_hx_pos_10265659e446e554_34_instance,"Std","instance",0x1431f4e0,"Std.instance","/usr/share/haxe/std/cpp/_std/Std.hx",34,0x63298cdf)
HX_LOCAL_STACK_FRAME(_hx_pos_10265659e446e554_38_string,"Std","string",0xcf48855c,"Std.string","/usr/share/haxe/std/cpp/_std/Std.hx",38,0x63298cdf)
HX_LOCAL_STACK_FRAME(_hx_pos_10265659e446e554_42_int,"Std","int",0x8fa53b84,"Std.int","/usr/share/haxe/std/cpp/_std/Std.hx",42,0x63298cdf)
HX_LOCAL_STACK_FRAME(_hx_pos_10265659e446e554_46_parseInt,"Std","parseInt",0x90c2ebc7,"Std.parseInt","/usr/share/haxe/std/cpp/_std/Std.hx",46,0x63298cdf)
HX_LOCAL_STACK_FRAME(_hx_pos_10265659e446e554_50_parseFloat,"Std","parseFloat",0xbca10a74,"Std.parseFloat","/usr/share/haxe/std/cpp/_std/Std.hx",50,0x63298cdf)
HX_LOCAL_STACK_FRAME(_hx_pos_10265659e446e554_53_random,"Std","random",0x75a77e8e,"Std.random","/usr/share/haxe/std/cpp/_std/Std.hx",53,0x63298cdf)
void Std_obj::__construct() { }
Dynamic Std_obj::__CreateEmpty() { return new Std_obj; }
void *Std_obj::_hx_vtable = 0;
Dynamic Std_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Std_obj > _hx_result = new Std_obj();
_hx_result->__construct();
return _hx_result;
}
bool Std_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x003f6083;
}
bool Std_obj::is( ::Dynamic v, ::Dynamic t){
HX_STACKFRAME(&_hx_pos_10265659e446e554_25_is)
HXDLIN( 25) return ::__instanceof(v,t);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(Std_obj,is,return )
::Dynamic Std_obj::downcast( ::Dynamic value,hx::Class c){
HX_STACKFRAME(&_hx_pos_10265659e446e554_29_downcast)
HXDLIN( 29) if (::Std_obj::is(value,c)) {
HXDLIN( 29) return value;
}
else {
HXDLIN( 29) return null();
}
HXDLIN( 29) return null();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(Std_obj,downcast,return )
::Dynamic Std_obj::instance( ::Dynamic value,hx::Class c){
HX_STACKFRAME(&_hx_pos_10265659e446e554_34_instance)
HXDLIN( 34) ::Dynamic _hx_tmp;
HXDLIN( 34) if (::Std_obj::is(value,c)) {
HXDLIN( 34) _hx_tmp = value;
}
else {
HXDLIN( 34) _hx_tmp = null();
}
HXDLIN( 34) return _hx_tmp;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(Std_obj,instance,return )
::String Std_obj::string( ::Dynamic s){
HX_STACKFRAME(&_hx_pos_10265659e446e554_38_string)
HXDLIN( 38) if (hx::IsNull( s )) {
HXDLIN( 38) return HX_("null",87,9e,0e,49);
}
else {
HXDLIN( 38) return ( (::String)(s->toString()) );
}
HXDLIN( 38) return null();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Std_obj,string,return )
int Std_obj::_hx_int(Float x){
HX_STACKFRAME(&_hx_pos_10265659e446e554_42_int)
HXDLIN( 42) return ::__int__(x);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Std_obj,_hx_int,return )
::Dynamic Std_obj::parseInt(::String x){
HX_STACKFRAME(&_hx_pos_10265659e446e554_46_parseInt)
HXDLIN( 46) return ::__hxcpp_parse_int(x);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Std_obj,parseInt,return )
Float Std_obj::parseFloat(::String x){
HX_STACKFRAME(&_hx_pos_10265659e446e554_50_parseFloat)
HXDLIN( 50) return ::__hxcpp_parse_float(x);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Std_obj,parseFloat,return )
int Std_obj::random(int x){
HX_STACKFRAME(&_hx_pos_10265659e446e554_53_random)
HXLINE( 54) if ((x <= 0)) {
HXLINE( 55) return 0;
}
HXLINE( 56) return ::__hxcpp_irand(x);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Std_obj,random,return )
Std_obj::Std_obj()
{
}
bool Std_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 2:
if (HX_FIELD_EQ(inName,"is") ) { outValue = is_dyn(); return true; }
break;
case 3:
if (HX_FIELD_EQ(inName,"int") ) { outValue = _hx_int_dyn(); return true; }
break;
case 6:
if (HX_FIELD_EQ(inName,"string") ) { outValue = string_dyn(); return true; }
if (HX_FIELD_EQ(inName,"random") ) { outValue = random_dyn(); return true; }
break;
case 8:
if (HX_FIELD_EQ(inName,"downcast") ) { outValue = downcast_dyn(); return true; }
if (HX_FIELD_EQ(inName,"instance") ) { outValue = instance_dyn(); return true; }
if (HX_FIELD_EQ(inName,"parseInt") ) { outValue = parseInt_dyn(); return true; }
break;
case 10:
if (HX_FIELD_EQ(inName,"parseFloat") ) { outValue = parseFloat_dyn(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *Std_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *Std_obj_sStaticStorageInfo = 0;
#endif
hx::Class Std_obj::__mClass;
static ::String Std_obj_sStaticFields[] = {
HX_("is",ea,5b,00,00),
HX_("downcast",21,f0,c8,8b),
HX_("instance",95,1f,e1,59),
HX_("string",d1,28,30,11),
HX_("int",ef,0c,50,00),
HX_("parseInt",7c,16,72,d6),
HX_("parseFloat",69,0c,78,2c),
HX_("random",03,22,8f,b7),
::String(null())
};
void Std_obj::__register()
{
Std_obj _hx_dummy;
Std_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("Std",83,60,3f,00);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &Std_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(Std_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< Std_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Std_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Std_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}

View File

@@ -0,0 +1,219 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_StringBuf
#include <StringBuf.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_7d06a5e189b00d33_35_new,"StringBuf","new",0xaaa8f4b4,"StringBuf.new","/usr/share/haxe/std/cpp/_std/StringBuf.hx",35,0x59033f00)
HX_LOCAL_STACK_FRAME(_hx_pos_7d06a5e189b00d33_37_charBufAsString,"StringBuf","charBufAsString",0x54d38cd4,"StringBuf.charBufAsString","/usr/share/haxe/std/cpp/_std/StringBuf.hx",37,0x59033f00)
HX_LOCAL_STACK_FRAME(_hx_pos_7d06a5e189b00d33_43_flush,"StringBuf","flush",0xc7c14418,"StringBuf.flush","/usr/share/haxe/std/cpp/_std/StringBuf.hx",43,0x59033f00)
HX_LOCAL_STACK_FRAME(_hx_pos_7d06a5e189b00d33_51_get_length,"StringBuf","get_length",0xe673d2db,"StringBuf.get_length","/usr/share/haxe/std/cpp/_std/StringBuf.hx",51,0x59033f00)
HX_LOCAL_STACK_FRAME(_hx_pos_7d06a5e189b00d33_92_toString,"StringBuf","toString",0x68f17bd8,"StringBuf.toString","/usr/share/haxe/std/cpp/_std/StringBuf.hx",92,0x59033f00)
void StringBuf_obj::__construct(){
HX_STACKFRAME(&_hx_pos_7d06a5e189b00d33_35_new)
}
Dynamic StringBuf_obj::__CreateEmpty() { return new StringBuf_obj; }
void *StringBuf_obj::_hx_vtable = 0;
Dynamic StringBuf_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< StringBuf_obj > _hx_result = new StringBuf_obj();
_hx_result->__construct();
return _hx_result;
}
bool StringBuf_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x6983cac2;
}
::String StringBuf_obj::charBufAsString(){
HX_STACKFRAME(&_hx_pos_7d06a5e189b00d33_37_charBufAsString)
HXLINE( 38) int len = this->charBuf->length;
HXLINE( 39) this->charBuf->push(0);
HXLINE( 40) ::cpp::Pointer< char > inPtr = ( (::cpp::Pointer< char >)(::cpp::Pointer_obj::arrayElem(this->charBuf,0)) );
HXDLIN( 40) return ::String(inPtr->ptr,len);
}
HX_DEFINE_DYNAMIC_FUNC0(StringBuf_obj,charBufAsString,return )
void StringBuf_obj::flush(){
HX_STACKFRAME(&_hx_pos_7d06a5e189b00d33_43_flush)
HXLINE( 44) if (hx::IsNull( this->b )) {
HXLINE( 45) this->b = ::Array_obj< ::String >::__new(1)->init(0,this->charBufAsString());
}
else {
HXLINE( 47) ::Array< ::String > _hx_tmp = this->b;
HXDLIN( 47) _hx_tmp->push(this->charBufAsString());
}
HXLINE( 48) this->charBuf = null();
}
HX_DEFINE_DYNAMIC_FUNC0(StringBuf_obj,flush,(void))
int StringBuf_obj::get_length(){
HX_STACKFRAME(&_hx_pos_7d06a5e189b00d33_51_get_length)
HXLINE( 52) int len = 0;
HXLINE( 53) if (hx::IsNotNull( this->charBuf )) {
HXLINE( 54) len = this->charBuf->length;
}
HXLINE( 55) if (hx::IsNotNull( this->b )) {
HXLINE( 56) int _g = 0;
HXDLIN( 56) ::Array< ::String > _g1 = this->b;
HXDLIN( 56) while((_g < _g1->length)){
HXLINE( 56) ::String s = _g1->__get(_g);
HXDLIN( 56) _g = (_g + 1);
HXLINE( 57) int len1;
HXDLIN( 57) if (hx::IsNull( s )) {
HXLINE( 57) len1 = 4;
}
else {
HXLINE( 57) len1 = s.length;
}
HXDLIN( 57) len = (len + len1);
}
}
HXLINE( 58) return len;
}
HX_DEFINE_DYNAMIC_FUNC0(StringBuf_obj,get_length,return )
::String StringBuf_obj::toString(){
HX_STACKFRAME(&_hx_pos_7d06a5e189b00d33_92_toString)
HXLINE( 93) if (hx::IsNotNull( this->charBuf )) {
HXLINE( 94) this->flush();
}
HXLINE( 95) bool _hx_tmp;
HXDLIN( 95) if (hx::IsNotNull( this->b )) {
HXLINE( 95) _hx_tmp = (this->b->length == 0);
}
else {
HXLINE( 95) _hx_tmp = true;
}
HXDLIN( 95) if (_hx_tmp) {
HXLINE( 96) return HX_("",00,00,00,00);
}
HXLINE( 97) if ((this->b->length == 1)) {
HXLINE( 98) return this->b->__get(0);
}
HXLINE( 99) return this->b->join(HX_("",00,00,00,00));
}
HX_DEFINE_DYNAMIC_FUNC0(StringBuf_obj,toString,return )
StringBuf_obj::StringBuf_obj()
{
}
void StringBuf_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(StringBuf);
HX_MARK_MEMBER_NAME(b,"b");
HX_MARK_MEMBER_NAME(charBuf,"charBuf");
HX_MARK_END_CLASS();
}
void StringBuf_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(b,"b");
HX_VISIT_MEMBER_NAME(charBuf,"charBuf");
}
hx::Val StringBuf_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"b") ) { return hx::Val( b ); }
break;
case 5:
if (HX_FIELD_EQ(inName,"flush") ) { return hx::Val( flush_dyn() ); }
break;
case 6:
if (HX_FIELD_EQ(inName,"length") ) { if (inCallProp == hx::paccAlways) return hx::Val( get_length() ); }
break;
case 7:
if (HX_FIELD_EQ(inName,"charBuf") ) { return hx::Val( charBuf ); }
break;
case 8:
if (HX_FIELD_EQ(inName,"toString") ) { return hx::Val( toString_dyn() ); }
break;
case 10:
if (HX_FIELD_EQ(inName,"get_length") ) { return hx::Val( get_length_dyn() ); }
break;
case 15:
if (HX_FIELD_EQ(inName,"charBufAsString") ) { return hx::Val( charBufAsString_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val StringBuf_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"b") ) { b=inValue.Cast< ::Array< ::String > >(); return inValue; }
break;
case 7:
if (HX_FIELD_EQ(inName,"charBuf") ) { charBuf=inValue.Cast< ::Array< char > >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void StringBuf_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("b",62,00,00,00));
outFields->push(HX_("length",e6,94,07,9f));
outFields->push(HX_("charBuf",fd,85,55,cf));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo StringBuf_obj_sMemberStorageInfo[] = {
{hx::fsObject /* ::Array< ::String > */ ,(int)offsetof(StringBuf_obj,b),HX_("b",62,00,00,00)},
{hx::fsObject /* ::Array< char > */ ,(int)offsetof(StringBuf_obj,charBuf),HX_("charBuf",fd,85,55,cf)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *StringBuf_obj_sStaticStorageInfo = 0;
#endif
static ::String StringBuf_obj_sMemberFields[] = {
HX_("b",62,00,00,00),
HX_("charBuf",fd,85,55,cf),
HX_("charBufAsString",80,3a,2f,0a),
HX_("flush",c4,62,9b,02),
HX_("get_length",af,04,8f,8f),
HX_("toString",ac,d0,6e,38),
::String(null()) };
hx::Class StringBuf_obj::__mClass;
void StringBuf_obj::__register()
{
StringBuf_obj _hx_dummy;
StringBuf_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("StringBuf",c2,ca,83,69);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(StringBuf_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< StringBuf_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = StringBuf_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = StringBuf_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}

View File

@@ -0,0 +1,354 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_5f5af744d9ff5693
#define INCLUDED_5f5af744d9ff5693
#include "cpp/Pointer.h"
#endif
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_StringBuf
#include <StringBuf.h>
#endif
#ifndef INCLUDED_StringTools
#include <StringTools.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_0b3aba623971508c_50_urlEncode,"StringTools","urlEncode",0x06afdce1,"StringTools.urlEncode","/usr/share/haxe/std/StringTools.hx",50,0xd8cfb08f)
HX_LOCAL_STACK_FRAME(_hx_pos_0b3aba623971508c_118_urlDecode,"StringTools","urlDecode",0x71b947f9,"StringTools.urlDecode","/usr/share/haxe/std/StringTools.hx",118,0xd8cfb08f)
HX_LOCAL_STACK_FRAME(_hx_pos_0b3aba623971508c_222_startsWith,"StringTools","startsWith",0x5f4e6efb,"StringTools.startsWith","/usr/share/haxe/std/StringTools.hx",222,0xd8cfb08f)
HX_LOCAL_STACK_FRAME(_hx_pos_0b3aba623971508c_252_endsWith,"StringTools","endsWith",0x0eb5bfe2,"StringTools.endsWith","/usr/share/haxe/std/StringTools.hx",252,0xd8cfb08f)
HX_LOCAL_STACK_FRAME(_hx_pos_0b3aba623971508c_288_isSpace,"StringTools","isSpace",0xe0290778,"StringTools.isSpace","/usr/share/haxe/std/StringTools.hx",288,0xd8cfb08f)
HX_LOCAL_STACK_FRAME(_hx_pos_0b3aba623971508c_306_ltrim,"StringTools","ltrim",0x24d2234a,"StringTools.ltrim","/usr/share/haxe/std/StringTools.hx",306,0xd8cfb08f)
HX_LOCAL_STACK_FRAME(_hx_pos_0b3aba623971508c_331_rtrim,"StringTools","rtrim",0x99399e50,"StringTools.rtrim","/usr/share/haxe/std/StringTools.hx",331,0xd8cfb08f)
HX_LOCAL_STACK_FRAME(_hx_pos_0b3aba623971508c_359_trim,"StringTools","trim",0x2908d066,"StringTools.trim","/usr/share/haxe/std/StringTools.hx",359,0xd8cfb08f)
HX_LOCAL_STACK_FRAME(_hx_pos_0b3aba623971508c_375_lpad,"StringTools","lpad",0x23bd8feb,"StringTools.lpad","/usr/share/haxe/std/StringTools.hx",375,0xd8cfb08f)
HX_LOCAL_STACK_FRAME(_hx_pos_0b3aba623971508c_434_replace,"StringTools","replace",0x6d651f30,"StringTools.replace","/usr/share/haxe/std/StringTools.hx",434,0xd8cfb08f)
HX_LOCAL_STACK_FRAME(_hx_pos_0b3aba623971508c_444_hex,"StringTools","hex",0xd91debd7,"StringTools.hex","/usr/share/haxe/std/StringTools.hx",444,0xd8cfb08f)
void StringTools_obj::__construct() { }
Dynamic StringTools_obj::__CreateEmpty() { return new StringTools_obj; }
void *StringTools_obj::_hx_vtable = 0;
Dynamic StringTools_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< StringTools_obj > _hx_result = new StringTools_obj();
_hx_result->__construct();
return _hx_result;
}
bool StringTools_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x0363db6a;
}
::String StringTools_obj::urlEncode(::String s){
HX_STACKFRAME(&_hx_pos_0b3aba623971508c_50_urlEncode)
HXDLIN( 50) return ( (::String)(s.__URLEncode()) );
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(StringTools_obj,urlEncode,return )
::String StringTools_obj::urlDecode(::String s){
HX_STACKFRAME(&_hx_pos_0b3aba623971508c_118_urlDecode)
HXDLIN( 118) return ( (::String)(s.__URLDecode()) );
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(StringTools_obj,urlDecode,return )
bool StringTools_obj::startsWith(::String s,::String start){
HX_STACKFRAME(&_hx_pos_0b3aba623971508c_222_startsWith)
HXLINE( 228) if ((s.length < start.length)) {
HXLINE( 229) return false;
}
HXLINE( 230) ::cpp::Pointer< char > p0 = cpp::Pointer_obj::fromPointer(s.c_str());
HXLINE( 231) ::cpp::Pointer< char > p1 = cpp::Pointer_obj::fromPointer(start.c_str());
HXLINE( 232) {
HXLINE( 232) int _g = 0;
HXDLIN( 232) int _g1 = start.length;
HXDLIN( 232) while((_g < _g1)){
HXLINE( 232) _g = (_g + 1);
HXDLIN( 232) int i = (_g - 1);
HXLINE( 233) char & _hx_tmp = p0->at(i);
HXDLIN( 233) char & _hx_tmp1 = p1->at(i);
HXDLIN( 233) if (hx::IsNotEq( _hx_tmp,_hx_tmp1 )) {
HXLINE( 234) return false;
}
}
}
HXLINE( 235) return true;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(StringTools_obj,startsWith,return )
bool StringTools_obj::endsWith(::String s,::String end){
HX_STACKFRAME(&_hx_pos_0b3aba623971508c_252_endsWith)
HXLINE( 258) if ((s.length < end.length)) {
HXLINE( 259) return false;
}
HXLINE( 260) ::cpp::Pointer< char > p0 = cpp::Pointer_obj::fromPointer(s.c_str());
HXDLIN( 260) ::cpp::Pointer< char > p01 = p0->add((s.length - end.length));
HXLINE( 261) ::cpp::Pointer< char > p1 = cpp::Pointer_obj::fromPointer(end.c_str());
HXLINE( 262) {
HXLINE( 262) int _g = 0;
HXDLIN( 262) int _g1 = end.length;
HXDLIN( 262) while((_g < _g1)){
HXLINE( 262) _g = (_g + 1);
HXDLIN( 262) int i = (_g - 1);
HXLINE( 263) char & _hx_tmp = p01->at(i);
HXDLIN( 263) char & _hx_tmp1 = p1->at(i);
HXDLIN( 263) if (hx::IsNotEq( _hx_tmp,_hx_tmp1 )) {
HXLINE( 264) return false;
}
}
}
HXLINE( 265) return true;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(StringTools_obj,endsWith,return )
bool StringTools_obj::isSpace(::String s,int pos){
HX_STACKFRAME(&_hx_pos_0b3aba623971508c_288_isSpace)
HXLINE( 293) ::Dynamic c = s.charCodeAt(pos);
HXLINE( 294) bool _hx_tmp;
HXDLIN( 294) if (hx::IsGreater( c,8 )) {
HXLINE( 294) _hx_tmp = hx::IsLess( c,14 );
}
else {
HXLINE( 294) _hx_tmp = false;
}
HXDLIN( 294) if (!(_hx_tmp)) {
HXLINE( 294) return hx::IsEq( c,32 );
}
else {
HXLINE( 294) return true;
}
HXDLIN( 294) return false;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(StringTools_obj,isSpace,return )
::String StringTools_obj::ltrim(::String s){
HX_STACKFRAME(&_hx_pos_0b3aba623971508c_306_ltrim)
HXLINE( 310) int l = s.length;
HXLINE( 311) int r = 0;
HXLINE( 312) while(true){
HXLINE( 312) bool _hx_tmp;
HXDLIN( 312) if ((r < l)) {
HXLINE( 312) _hx_tmp = ::StringTools_obj::isSpace(s,r);
}
else {
HXLINE( 312) _hx_tmp = false;
}
HXDLIN( 312) if (!(_hx_tmp)) {
HXLINE( 312) goto _hx_goto_7;
}
HXLINE( 313) r = (r + 1);
}
_hx_goto_7:;
HXLINE( 315) if ((r > 0)) {
HXLINE( 316) return s.substr(r,(l - r));
}
else {
HXLINE( 318) return s;
}
HXLINE( 315) return null();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(StringTools_obj,ltrim,return )
::String StringTools_obj::rtrim(::String s){
HX_STACKFRAME(&_hx_pos_0b3aba623971508c_331_rtrim)
HXLINE( 335) int l = s.length;
HXLINE( 336) int r = 0;
HXLINE( 337) while(true){
HXLINE( 337) bool _hx_tmp;
HXDLIN( 337) if ((r < l)) {
HXLINE( 337) _hx_tmp = ::StringTools_obj::isSpace(s,((l - r) - 1));
}
else {
HXLINE( 337) _hx_tmp = false;
}
HXDLIN( 337) if (!(_hx_tmp)) {
HXLINE( 337) goto _hx_goto_9;
}
HXLINE( 338) r = (r + 1);
}
_hx_goto_9:;
HXLINE( 340) if ((r > 0)) {
HXLINE( 341) return s.substr(0,(l - r));
}
else {
HXLINE( 343) return s;
}
HXLINE( 340) return null();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(StringTools_obj,rtrim,return )
::String StringTools_obj::trim(::String s){
HX_STACKFRAME(&_hx_pos_0b3aba623971508c_359_trim)
HXDLIN( 359) return ::StringTools_obj::ltrim(::StringTools_obj::rtrim(s));
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(StringTools_obj,trim,return )
::String StringTools_obj::lpad(::String s,::String c,int l){
HX_GC_STACKFRAME(&_hx_pos_0b3aba623971508c_375_lpad)
HXLINE( 376) if ((c.length <= 0)) {
HXLINE( 377) return s;
}
HXLINE( 379) ::StringBuf buf = ::StringBuf_obj::__alloc( HX_CTX );
HXLINE( 380) l = (l - s.length);
HXLINE( 381) while((buf->get_length() < l)){
HXLINE( 382) if (hx::IsNotNull( buf->charBuf )) {
HXLINE( 382) buf->flush();
}
HXDLIN( 382) if (hx::IsNull( buf->b )) {
HXLINE( 382) buf->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(c));
}
else {
HXLINE( 382) ::Array< ::String > buf1 = buf->b;
HXDLIN( 382) buf1->push(::Std_obj::string(c));
}
}
HXLINE( 384) {
HXLINE( 384) if (hx::IsNotNull( buf->charBuf )) {
HXLINE( 384) buf->flush();
}
HXDLIN( 384) if (hx::IsNull( buf->b )) {
HXLINE( 384) buf->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(s));
}
else {
HXLINE( 384) ::Array< ::String > buf2 = buf->b;
HXDLIN( 384) buf2->push(::Std_obj::string(s));
}
}
HXLINE( 385) return buf->toString();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC3(StringTools_obj,lpad,return )
::String StringTools_obj::replace(::String s,::String sub,::String by){
HX_STACKFRAME(&_hx_pos_0b3aba623971508c_434_replace)
HXDLIN( 434) return s.split(sub)->join(by);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC3(StringTools_obj,replace,return )
::String StringTools_obj::hex(int n, ::Dynamic digits){
HX_STACKFRAME(&_hx_pos_0b3aba623971508c_444_hex)
HXLINE( 450) ::String s = HX_("",00,00,00,00);
HXLINE( 451) ::String hexChars = HX_("0123456789ABCDEF",68,2a,58,a2);
HXLINE( 452) while(true){
HXLINE( 453) s = (hexChars.charAt((n & 15)) + s);
HXLINE( 454) n = hx::UShr(n,4);
HXLINE( 452) if (!((n > 0))) {
HXLINE( 452) goto _hx_goto_15;
}
}
_hx_goto_15:;
HXLINE( 465) if (hx::IsNotNull( digits )) {
HXLINE( 466) while(hx::IsLess( s.length,digits )){
HXLINE( 467) s = (HX_("0",30,00,00,00) + s);
}
}
HXLINE( 469) return s;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(StringTools_obj,hex,return )
StringTools_obj::StringTools_obj()
{
}
bool StringTools_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 3:
if (HX_FIELD_EQ(inName,"hex") ) { outValue = hex_dyn(); return true; }
break;
case 4:
if (HX_FIELD_EQ(inName,"trim") ) { outValue = trim_dyn(); return true; }
if (HX_FIELD_EQ(inName,"lpad") ) { outValue = lpad_dyn(); return true; }
break;
case 5:
if (HX_FIELD_EQ(inName,"ltrim") ) { outValue = ltrim_dyn(); return true; }
if (HX_FIELD_EQ(inName,"rtrim") ) { outValue = rtrim_dyn(); return true; }
break;
case 7:
if (HX_FIELD_EQ(inName,"isSpace") ) { outValue = isSpace_dyn(); return true; }
if (HX_FIELD_EQ(inName,"replace") ) { outValue = replace_dyn(); return true; }
break;
case 8:
if (HX_FIELD_EQ(inName,"endsWith") ) { outValue = endsWith_dyn(); return true; }
break;
case 9:
if (HX_FIELD_EQ(inName,"urlEncode") ) { outValue = urlEncode_dyn(); return true; }
if (HX_FIELD_EQ(inName,"urlDecode") ) { outValue = urlDecode_dyn(); return true; }
break;
case 10:
if (HX_FIELD_EQ(inName,"startsWith") ) { outValue = startsWith_dyn(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *StringTools_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *StringTools_obj_sStaticStorageInfo = 0;
#endif
hx::Class StringTools_obj::__mClass;
static ::String StringTools_obj_sStaticFields[] = {
HX_("urlEncode",e5,4e,52,9a),
HX_("urlDecode",fd,b9,5b,05),
HX_("startsWith",77,c0,cf,f9),
HX_("endsWith",5e,7a,b6,db),
HX_("isSpace",7c,30,ec,1d),
HX_("ltrim",4e,43,4a,7c),
HX_("rtrim",54,be,b1,f0),
HX_("trim",e2,9c,03,4d),
HX_("lpad",67,5c,b8,47),
HX_("replace",34,48,28,ab),
HX_("hex",db,42,4f,00),
::String(null())
};
void StringTools_obj::__register()
{
StringTools_obj _hx_dummy;
StringTools_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("StringTools",6a,db,63,03);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &StringTools_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(StringTools_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< StringTools_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = StringTools_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = StringTools_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}

View File

@@ -0,0 +1,216 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_StringTools
#include <StringTools.h>
#endif
#ifndef INCLUDED_Sys
#include <Sys.h>
#endif
#ifndef INCLUDED_haxe_SysTools
#include <haxe/SysTools.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_7ec14b5404d30118_28_print,"Sys","print",0x483745ec,"Sys.print","/usr/share/haxe/std/cpp/_std/Sys.hx",28,0x4e14a6b5)
HX_LOCAL_STACK_FRAME(_hx_pos_7ec14b5404d30118_32_println,"Sys","println",0x3905f76e,"Sys.println","/usr/share/haxe/std/cpp/_std/Sys.hx",32,0x4e14a6b5)
HX_LOCAL_STACK_FRAME(_hx_pos_7ec14b5404d30118_56_args,"Sys","args",0xeaeddc7e,"Sys.args","/usr/share/haxe/std/cpp/_std/Sys.hx",56,0x4e14a6b5)
HX_LOCAL_STACK_FRAME(_hx_pos_7ec14b5404d30118_59_getEnv,"Sys","getEnv",0xd9e05658,"Sys.getEnv","/usr/share/haxe/std/cpp/_std/Sys.hx",59,0x4e14a6b5)
HX_LOCAL_STACK_FRAME(_hx_pos_7ec14b5404d30118_71_sleep,"Sys","sleep",0xfe70aad6,"Sys.sleep","/usr/share/haxe/std/cpp/_std/Sys.hx",71,0x4e14a6b5)
HX_LOCAL_STACK_FRAME(_hx_pos_7ec14b5404d30118_87_systemName,"Sys","systemName",0xbea5b6bb,"Sys.systemName","/usr/share/haxe/std/cpp/_std/Sys.hx",87,0x4e14a6b5)
HX_LOCAL_STACK_FRAME(_hx_pos_7ec14b5404d30118_91_command,"Sys","command",0x363f8cca,"Sys.command","/usr/share/haxe/std/cpp/_std/Sys.hx",91,0x4e14a6b5)
HX_LOCAL_STACK_FRAME(_hx_pos_7ec14b5404d30118_109_exit,"Sys","exit",0xed97463f,"Sys.exit","/usr/share/haxe/std/cpp/_std/Sys.hx",109,0x4e14a6b5)
void Sys_obj::__construct() { }
Dynamic Sys_obj::__CreateEmpty() { return new Sys_obj; }
void *Sys_obj::_hx_vtable = 0;
Dynamic Sys_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Sys_obj > _hx_result = new Sys_obj();
_hx_result->__construct();
return _hx_result;
}
bool Sys_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x003f64ed;
}
void Sys_obj::print( ::Dynamic v){
HX_STACKFRAME(&_hx_pos_7ec14b5404d30118_28_print)
HXDLIN( 28) ::__hxcpp_print(v);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Sys_obj,print,(void))
void Sys_obj::println( ::Dynamic v){
HX_STACKFRAME(&_hx_pos_7ec14b5404d30118_32_println)
HXDLIN( 32) ::__hxcpp_println(v);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Sys_obj,println,(void))
::Array< ::String > Sys_obj::args(){
HX_STACKFRAME(&_hx_pos_7ec14b5404d30118_56_args)
HXDLIN( 56) return ::__get_args();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC0(Sys_obj,args,return )
::String Sys_obj::getEnv(::String s){
HX_STACKFRAME(&_hx_pos_7ec14b5404d30118_59_getEnv)
HXLINE( 60) ::String v = _hx_std_get_env(s);
HXLINE( 61) if (hx::IsNull( v )) {
HXLINE( 62) return null();
}
HXLINE( 63) return v;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Sys_obj,getEnv,return )
void Sys_obj::sleep(Float seconds){
HX_STACKFRAME(&_hx_pos_7ec14b5404d30118_71_sleep)
HXDLIN( 71) _hx_std_sys_sleep(seconds);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Sys_obj,sleep,(void))
::String Sys_obj::systemName(){
HX_STACKFRAME(&_hx_pos_7ec14b5404d30118_87_systemName)
HXDLIN( 87) return _hx_std_sys_string();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC0(Sys_obj,systemName,return )
int Sys_obj::command(::String cmd,::Array< ::String > args){
HX_STACKFRAME(&_hx_pos_7ec14b5404d30118_91_command)
HXDLIN( 91) if (hx::IsNull( args )) {
HXLINE( 92) return _hx_std_sys_command(cmd);
}
else {
HXLINE( 94) if ((::Sys_obj::systemName() == HX_("Windows",63,06,c6,b5))) {
HXLINE( 96) ::Array< ::String > _g = ::Array_obj< ::String >::__new(0);
HXLINE( 97) {
HXLINE( 97) int _g1 = 0;
HXDLIN( 97) ::Array< ::String > _g2 = ::Array_obj< ::String >::__new(1)->init(0,::StringTools_obj::replace(cmd,HX_("/",2f,00,00,00),HX_("\\",5c,00,00,00)))->concat(args);
HXDLIN( 97) while((_g1 < _g2->length)){
HXLINE( 97) ::String a = _g2->__get(_g1);
HXDLIN( 97) _g1 = (_g1 + 1);
HXLINE( 98) _g->push(::haxe::SysTools_obj::quoteWinArg(a,true));
}
}
HXLINE( 96) cmd = _g->join(HX_(" ",20,00,00,00));
HXLINE( 100) return _hx_std_sys_command(cmd);
}
else {
HXLINE( 102) ::Array< ::String > _this = ::Array_obj< ::String >::__new(1)->init(0,cmd)->concat(args);
HXDLIN( 102) ::Dynamic f = ::haxe::SysTools_obj::quoteUnixArg_dyn();
HXDLIN( 102) ::Array< ::String > result = ::Array_obj< ::String >::__new(_this->length);
HXDLIN( 102) {
HXLINE( 102) int _g3 = 0;
HXDLIN( 102) int _g11 = _this->length;
HXDLIN( 102) while((_g3 < _g11)){
HXLINE( 102) _g3 = (_g3 + 1);
HXDLIN( 102) int i = (_g3 - 1);
HXDLIN( 102) {
HXLINE( 102) ::String inValue = ( (::String)(f(_hx_array_unsafe_get(_this,i))) );
HXDLIN( 102) result->__unsafe_set(i,inValue);
}
}
}
HXDLIN( 102) cmd = result->join(HX_(" ",20,00,00,00));
HXLINE( 103) return _hx_std_sys_command(cmd);
}
}
HXLINE( 91) return 0;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(Sys_obj,command,return )
void Sys_obj::exit(int code){
HX_STACKFRAME(&_hx_pos_7ec14b5404d30118_109_exit)
HXDLIN( 109) ::__hxcpp_exit(code);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Sys_obj,exit,(void))
Sys_obj::Sys_obj()
{
}
bool Sys_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"args") ) { outValue = args_dyn(); return true; }
if (HX_FIELD_EQ(inName,"exit") ) { outValue = exit_dyn(); return true; }
break;
case 5:
if (HX_FIELD_EQ(inName,"print") ) { outValue = print_dyn(); return true; }
if (HX_FIELD_EQ(inName,"sleep") ) { outValue = sleep_dyn(); return true; }
break;
case 6:
if (HX_FIELD_EQ(inName,"getEnv") ) { outValue = getEnv_dyn(); return true; }
break;
case 7:
if (HX_FIELD_EQ(inName,"println") ) { outValue = println_dyn(); return true; }
if (HX_FIELD_EQ(inName,"command") ) { outValue = command_dyn(); return true; }
break;
case 10:
if (HX_FIELD_EQ(inName,"systemName") ) { outValue = systemName_dyn(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *Sys_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *Sys_obj_sStaticStorageInfo = 0;
#endif
hx::Class Sys_obj::__mClass;
static ::String Sys_obj_sStaticFields[] = {
HX_("print",2d,58,8b,c8),
HX_("println",ef,db,33,84),
HX_("args",5d,8d,74,40),
HX_("getEnv",f7,3c,1c,a3),
HX_("sleep",17,bd,c4,7e),
HX_("systemName",da,d8,82,f7),
HX_("command",4b,71,6d,81),
HX_("exit",1e,f7,1d,43),
::String(null())
};
void Sys_obj::__register()
{
Sys_obj _hx_dummy;
Sys_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("Sys",ed,64,3f,00);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &Sys_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(Sys_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< Sys_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Sys_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Sys_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}

View File

@@ -0,0 +1,308 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_Reflect
#include <Reflect.h>
#endif
#ifndef INCLUDED_Type
#include <Type.h>
#endif
#ifndef INCLUDED_ValueType
#include <ValueType.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_fd61cb8e002c8329_36_getClass,"Type","getClass",0xc4e49bd6,"Type.getClass","/usr/share/haxe/std/cpp/_std/Type.hx",36,0x978d9ce0)
HX_LOCAL_STACK_FRAME(_hx_pos_fd61cb8e002c8329_58_getSuperClass,"Type","getSuperClass",0xd9ffa85f,"Type.getSuperClass","/usr/share/haxe/std/cpp/_std/Type.hx",58,0x978d9ce0)
HX_LOCAL_STACK_FRAME(_hx_pos_fd61cb8e002c8329_61_getClassName,"Type","getClassName",0x8e66dd41,"Type.getClassName","/usr/share/haxe/std/cpp/_std/Type.hx",61,0x978d9ce0)
HX_LOCAL_STACK_FRAME(_hx_pos_fd61cb8e002c8329_68_getEnumName,"Type","getEnumName",0x9b42910e,"Type.getEnumName","/usr/share/haxe/std/cpp/_std/Type.hx",68,0x978d9ce0)
HX_LOCAL_STACK_FRAME(_hx_pos_fd61cb8e002c8329_72_resolveClass,"Type","resolveClass",0x23b06bc0,"Type.resolveClass","/usr/share/haxe/std/cpp/_std/Type.hx",72,0x978d9ce0)
HX_LOCAL_STACK_FRAME(_hx_pos_fd61cb8e002c8329_80_resolveEnum,"Type","resolveEnum",0x26394079,"Type.resolveEnum","/usr/share/haxe/std/cpp/_std/Type.hx",80,0x978d9ce0)
HX_LOCAL_STACK_FRAME(_hx_pos_fd61cb8e002c8329_88_createInstance,"Type","createInstance",0xab84f9c5,"Type.createInstance","/usr/share/haxe/std/cpp/_std/Type.hx",88,0x978d9ce0)
HX_LOCAL_STACK_FRAME(_hx_pos_fd61cb8e002c8329_96_createEmptyInstance,"Type","createEmptyInstance",0xcb752312,"Type.createEmptyInstance","/usr/share/haxe/std/cpp/_std/Type.hx",96,0x978d9ce0)
HX_LOCAL_STACK_FRAME(_hx_pos_fd61cb8e002c8329_100_createEnum,"Type","createEnum",0xd8d56d31,"Type.createEnum","/usr/share/haxe/std/cpp/_std/Type.hx",100,0x978d9ce0)
HX_LOCAL_STACK_FRAME(_hx_pos_fd61cb8e002c8329_111_getInstanceFields,"Type","getInstanceFields",0xe970f890,"Type.getInstanceFields","/usr/share/haxe/std/cpp/_std/Type.hx",111,0x978d9ce0)
HX_LOCAL_STACK_FRAME(_hx_pos_fd61cb8e002c8329_120_getEnumConstructs,"Type","getEnumConstructs",0x7f46cf7f,"Type.getEnumConstructs","/usr/share/haxe/std/cpp/_std/Type.hx",120,0x978d9ce0)
HX_LOCAL_STACK_FRAME(_hx_pos_fd61cb8e002c8329_124_typeof,"Type","typeof",0xd6c51d65,"Type.typeof","/usr/share/haxe/std/cpp/_std/Type.hx",124,0x978d9ce0)
void Type_obj::__construct() { }
Dynamic Type_obj::__CreateEmpty() { return new Type_obj; }
void *Type_obj::_hx_vtable = 0;
Dynamic Type_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Type_obj > _hx_result = new Type_obj();
_hx_result->__construct();
return _hx_result;
}
bool Type_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x37e21eda;
}
hx::Class Type_obj::getClass( ::Dynamic o){
HX_STACKFRAME(&_hx_pos_fd61cb8e002c8329_36_getClass)
HXLINE( 37) bool _hx_tmp;
HXDLIN( 37) if (hx::IsNotNull( o )) {
HXLINE( 37) _hx_tmp = !(::Reflect_obj::isObject(o));
}
else {
HXLINE( 37) _hx_tmp = true;
}
HXDLIN( 37) if (_hx_tmp) {
HXLINE( 38) return null();
}
HXLINE( 39) ::Dynamic c = o->__GetClass();
HXLINE( 40) ::String _hx_switch_0 = ( (::String)(c->toString()) );
if ( (_hx_switch_0==HX_("Class",18,e8,85,db)) ){
HXLINE( 44) return null();
HXDLIN( 44) goto _hx_goto_0;
}
if ( (_hx_switch_0==HX_("__Anon",8c,1a,43,da)) ){
HXLINE( 42) return null();
HXDLIN( 42) goto _hx_goto_0;
}
_hx_goto_0:;
HXLINE( 46) return c;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Type_obj,getClass,return )
hx::Class Type_obj::getSuperClass(hx::Class c){
HX_STACKFRAME(&_hx_pos_fd61cb8e002c8329_58_getSuperClass)
HXDLIN( 58) return c->GetSuper();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Type_obj,getSuperClass,return )
::String Type_obj::getClassName(hx::Class c){
HX_STACKFRAME(&_hx_pos_fd61cb8e002c8329_61_getClassName)
HXLINE( 62) if (hx::IsNull( c )) {
HXLINE( 63) return null();
}
HXLINE( 64) return c->mName;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Type_obj,getClassName,return )
::String Type_obj::getEnumName(hx::Class e){
HX_STACKFRAME(&_hx_pos_fd61cb8e002c8329_68_getEnumName)
HXDLIN( 68) return ( (::String)(e->__ToString()) );
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Type_obj,getEnumName,return )
hx::Class Type_obj::resolveClass(::String name){
HX_STACKFRAME(&_hx_pos_fd61cb8e002c8329_72_resolveClass)
HXLINE( 73) hx::Class result = ::hx::Class_obj::Resolve(name);
HXLINE( 74) bool _hx_tmp;
HXDLIN( 74) if (hx::IsNotNull( result )) {
HXLINE( 74) _hx_tmp = ( (bool)(result->__IsEnum()) );
}
else {
HXLINE( 74) _hx_tmp = false;
}
HXDLIN( 74) if (_hx_tmp) {
HXLINE( 75) return null();
}
HXLINE( 76) return result;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Type_obj,resolveClass,return )
hx::Class Type_obj::resolveEnum(::String name){
HX_STACKFRAME(&_hx_pos_fd61cb8e002c8329_80_resolveEnum)
HXLINE( 81) hx::Class result = ::hx::Class_obj::Resolve(name);
HXLINE( 82) bool _hx_tmp;
HXDLIN( 82) if (hx::IsNotNull( result )) {
HXLINE( 82) _hx_tmp = !(( (bool)(result->__IsEnum()) ));
}
else {
HXLINE( 82) _hx_tmp = false;
}
HXDLIN( 82) if (_hx_tmp) {
HXLINE( 83) return null();
}
HXLINE( 84) return result;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Type_obj,resolveEnum,return )
::Dynamic Type_obj::createInstance(hx::Class cl,::cpp::VirtualArray args){
HX_STACKFRAME(&_hx_pos_fd61cb8e002c8329_88_createInstance)
HXLINE( 89) if (hx::IsNotNull( cl )) {
HXLINE( 90) return cl->ConstructArgs(args);
}
HXLINE( 91) return null();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(Type_obj,createInstance,return )
::Dynamic Type_obj::createEmptyInstance(hx::Class cl){
HX_STACKFRAME(&_hx_pos_fd61cb8e002c8329_96_createEmptyInstance)
HXDLIN( 96) return cl->ConstructEmpty();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Type_obj,createEmptyInstance,return )
::Dynamic Type_obj::createEnum(hx::Class e,::String constr,::cpp::VirtualArray params){
HX_STACKFRAME(&_hx_pos_fd61cb8e002c8329_100_createEnum)
HXDLIN( 100) return e->ConstructEnum(constr,params);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC3(Type_obj,createEnum,return )
::Array< ::String > Type_obj::getInstanceFields(hx::Class c){
HX_STACKFRAME(&_hx_pos_fd61cb8e002c8329_111_getInstanceFields)
HXDLIN( 111) return ( (::Array< ::String >)(c->GetInstanceFields()) );
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Type_obj,getInstanceFields,return )
::Array< ::String > Type_obj::getEnumConstructs(hx::Class e){
HX_STACKFRAME(&_hx_pos_fd61cb8e002c8329_120_getEnumConstructs)
HXDLIN( 120) return ( (::Array< ::String >)(e->GetClassFields()) );
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Type_obj,getEnumConstructs,return )
::ValueType Type_obj::_hx_typeof( ::Dynamic v){
HX_STACKFRAME(&_hx_pos_fd61cb8e002c8329_124_typeof)
HXLINE( 125) if (hx::IsNull( v )) {
HXLINE( 126) return ::ValueType_obj::TNull_dyn();
}
HXLINE( 127) int t = ( (int)(v->__GetType()) );
HXLINE( 128) switch((int)(t)){
case (int)1: {
HXLINE( 134) return ::ValueType_obj::TFloat_dyn();
}
break;
case (int)2: {
HXLINE( 130) return ::ValueType_obj::TBool_dyn();
}
break;
case (int)4: {
HXLINE( 138) return ::ValueType_obj::TObject_dyn();
}
break;
case (int)6: {
HXLINE( 136) return ::ValueType_obj::TFunction_dyn();
}
break;
case (int)7: {
HXLINE( 140) return ::ValueType_obj::TEnum(v->__GetClass());
}
break;
case (int)255: {
HXLINE( 132) return ::ValueType_obj::TInt_dyn();
}
break;
default:{
HXLINE( 142) return ::ValueType_obj::TClass(v->__GetClass());
}
}
HXLINE( 128) return null();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Type_obj,_hx_typeof,return )
Type_obj::Type_obj()
{
}
bool Type_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 6:
if (HX_FIELD_EQ(inName,"typeof") ) { outValue = _hx_typeof_dyn(); return true; }
break;
case 8:
if (HX_FIELD_EQ(inName,"getClass") ) { outValue = getClass_dyn(); return true; }
break;
case 10:
if (HX_FIELD_EQ(inName,"createEnum") ) { outValue = createEnum_dyn(); return true; }
break;
case 11:
if (HX_FIELD_EQ(inName,"getEnumName") ) { outValue = getEnumName_dyn(); return true; }
if (HX_FIELD_EQ(inName,"resolveEnum") ) { outValue = resolveEnum_dyn(); return true; }
break;
case 12:
if (HX_FIELD_EQ(inName,"getClassName") ) { outValue = getClassName_dyn(); return true; }
if (HX_FIELD_EQ(inName,"resolveClass") ) { outValue = resolveClass_dyn(); return true; }
break;
case 13:
if (HX_FIELD_EQ(inName,"getSuperClass") ) { outValue = getSuperClass_dyn(); return true; }
break;
case 14:
if (HX_FIELD_EQ(inName,"createInstance") ) { outValue = createInstance_dyn(); return true; }
break;
case 17:
if (HX_FIELD_EQ(inName,"getInstanceFields") ) { outValue = getInstanceFields_dyn(); return true; }
if (HX_FIELD_EQ(inName,"getEnumConstructs") ) { outValue = getEnumConstructs_dyn(); return true; }
break;
case 19:
if (HX_FIELD_EQ(inName,"createEmptyInstance") ) { outValue = createEmptyInstance_dyn(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *Type_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *Type_obj_sStaticStorageInfo = 0;
#endif
hx::Class Type_obj::__mClass;
static ::String Type_obj_sStaticFields[] = {
HX_("getClass",c2,87,2f,a8),
HX_("getSuperClass",f3,04,7a,04),
HX_("getClassName",2d,2f,94,eb),
HX_("getEnumName",a2,e0,5a,53),
HX_("resolveClass",ac,bd,dd,80),
HX_("resolveEnum",0d,90,51,de),
HX_("createInstance",b1,9e,1b,ac),
HX_("createEmptyInstance",a6,26,85,ce),
HX_("createEnum",1d,2c,a4,55),
HX_("getInstanceFields",24,2f,97,ed),
HX_("getEnumConstructs",13,06,6d,83),
HX_("typeof",51,f6,36,57),
::String(null())
};
void Type_obj::__register()
{
Type_obj _hx_dummy;
Type_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("Type",da,1e,e2,37);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &Type_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(Type_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< Type_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Type_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Type_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}

View File

@@ -0,0 +1,138 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_ValueType
#include <ValueType.h>
#endif
::ValueType ValueType_obj::TBool;
::ValueType ValueType_obj::TClass(hx::Class c)
{
return hx::CreateEnum< ValueType_obj >(HX_("TClass",44,37,80,71),6,1)->_hx_init(0,c);
}
::ValueType ValueType_obj::TEnum(hx::Class e)
{
return hx::CreateEnum< ValueType_obj >(HX_("TEnum",75,51,98,8b),7,1)->_hx_init(0,e);
}
::ValueType ValueType_obj::TFloat;
::ValueType ValueType_obj::TFunction;
::ValueType ValueType_obj::TInt;
::ValueType ValueType_obj::TNull;
::ValueType ValueType_obj::TObject;
::ValueType ValueType_obj::TUnknown;
bool ValueType_obj::__GetStatic(const ::String &inName, ::Dynamic &outValue, hx::PropertyAccess inCallProp)
{
if (inName==HX_("TBool",9e,6a,9d,89)) { outValue = ValueType_obj::TBool; return true; }
if (inName==HX_("TClass",44,37,80,71)) { outValue = ValueType_obj::TClass_dyn(); return true; }
if (inName==HX_("TEnum",75,51,98,8b)) { outValue = ValueType_obj::TEnum_dyn(); return true; }
if (inName==HX_("TFloat",a8,84,be,2b)) { outValue = ValueType_obj::TFloat; return true; }
if (inName==HX_("TFunction",8c,db,3a,25)) { outValue = ValueType_obj::TFunction; return true; }
if (inName==HX_("TInt",fb,b0,bd,37)) { outValue = ValueType_obj::TInt; return true; }
if (inName==HX_("TNull",fb,84,90,91)) { outValue = ValueType_obj::TNull; return true; }
if (inName==HX_("TObject",33,ea,de,ee)) { outValue = ValueType_obj::TObject; return true; }
if (inName==HX_("TUnknown",96,bd,59,73)) { outValue = ValueType_obj::TUnknown; return true; }
return super::__GetStatic(inName, outValue, inCallProp);
}
HX_DEFINE_CREATE_ENUM(ValueType_obj)
int ValueType_obj::__FindIndex(::String inName)
{
if (inName==HX_("TBool",9e,6a,9d,89)) return 3;
if (inName==HX_("TClass",44,37,80,71)) return 6;
if (inName==HX_("TEnum",75,51,98,8b)) return 7;
if (inName==HX_("TFloat",a8,84,be,2b)) return 2;
if (inName==HX_("TFunction",8c,db,3a,25)) return 5;
if (inName==HX_("TInt",fb,b0,bd,37)) return 1;
if (inName==HX_("TNull",fb,84,90,91)) return 0;
if (inName==HX_("TObject",33,ea,de,ee)) return 4;
if (inName==HX_("TUnknown",96,bd,59,73)) return 8;
return super::__FindIndex(inName);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(ValueType_obj,TClass,return)
STATIC_HX_DEFINE_DYNAMIC_FUNC1(ValueType_obj,TEnum,return)
int ValueType_obj::__FindArgCount(::String inName)
{
if (inName==HX_("TBool",9e,6a,9d,89)) return 0;
if (inName==HX_("TClass",44,37,80,71)) return 1;
if (inName==HX_("TEnum",75,51,98,8b)) return 1;
if (inName==HX_("TFloat",a8,84,be,2b)) return 0;
if (inName==HX_("TFunction",8c,db,3a,25)) return 0;
if (inName==HX_("TInt",fb,b0,bd,37)) return 0;
if (inName==HX_("TNull",fb,84,90,91)) return 0;
if (inName==HX_("TObject",33,ea,de,ee)) return 0;
if (inName==HX_("TUnknown",96,bd,59,73)) return 0;
return super::__FindArgCount(inName);
}
hx::Val ValueType_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
if (inName==HX_("TBool",9e,6a,9d,89)) return TBool;
if (inName==HX_("TClass",44,37,80,71)) return TClass_dyn();
if (inName==HX_("TEnum",75,51,98,8b)) return TEnum_dyn();
if (inName==HX_("TFloat",a8,84,be,2b)) return TFloat;
if (inName==HX_("TFunction",8c,db,3a,25)) return TFunction;
if (inName==HX_("TInt",fb,b0,bd,37)) return TInt;
if (inName==HX_("TNull",fb,84,90,91)) return TNull;
if (inName==HX_("TObject",33,ea,de,ee)) return TObject;
if (inName==HX_("TUnknown",96,bd,59,73)) return TUnknown;
return super::__Field(inName,inCallProp);
}
static ::String ValueType_obj_sStaticFields[] = {
HX_("TNull",fb,84,90,91),
HX_("TInt",fb,b0,bd,37),
HX_("TFloat",a8,84,be,2b),
HX_("TBool",9e,6a,9d,89),
HX_("TObject",33,ea,de,ee),
HX_("TFunction",8c,db,3a,25),
HX_("TClass",44,37,80,71),
HX_("TEnum",75,51,98,8b),
HX_("TUnknown",96,bd,59,73),
::String(null())
};
hx::Class ValueType_obj::__mClass;
Dynamic __Create_ValueType_obj() { return new ValueType_obj; }
void ValueType_obj::__register()
{
hx::Static(__mClass) = hx::_hx_RegisterClass(HX_("ValueType",ab,8a,60,3b), hx::TCanCast< ValueType_obj >,ValueType_obj_sStaticFields,0,
&__Create_ValueType_obj, &__Create,
&super::__SGetClass(), &CreateValueType_obj, 0
#ifdef HXCPP_VISIT_ALLOCS
, 0
#endif
#ifdef HXCPP_SCRIPTABLE
, 0
#endif
);
__mClass->mGetStaticField = &ValueType_obj::__GetStatic;
}
void ValueType_obj::__boot()
{
TBool = hx::CreateConstEnum< ValueType_obj >(HX_("TBool",9e,6a,9d,89),3);
TFloat = hx::CreateConstEnum< ValueType_obj >(HX_("TFloat",a8,84,be,2b),2);
TFunction = hx::CreateConstEnum< ValueType_obj >(HX_("TFunction",8c,db,3a,25),5);
TInt = hx::CreateConstEnum< ValueType_obj >(HX_("TInt",fb,b0,bd,37),1);
TNull = hx::CreateConstEnum< ValueType_obj >(HX_("TNull",fb,84,90,91),0);
TObject = hx::CreateConstEnum< ValueType_obj >(HX_("TObject",33,ea,de,ee),4);
TUnknown = hx::CreateConstEnum< ValueType_obj >(HX_("TUnknown",96,bd,59,73),8);
}

View File

@@ -0,0 +1,140 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED___ASSET__manifest_default_json
#include <__ASSET__manifest_default_json.h>
#endif
#ifndef INCLUDED_haxe_Resource
#include <haxe/Resource.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_47f1ac2ead05c009_34_new,"__ASSET__manifest_default_json","new",0x8da5bf98,"__ASSET__manifest_default_json.new","lime/_internal/macros/AssetsMacro.hx",34,0xc651f030)
HX_LOCAL_STACK_FRAME(_hx_pos_e49d3eafffbcb03c_102_boot,"__ASSET__manifest_default_json","boot",0x5b7ae5fa,"__ASSET__manifest_default_json.boot","ManifestResources.hx",102,0xf77aa668)
void __ASSET__manifest_default_json_obj::__construct( ::Dynamic length,::Array< unsigned char > bytesData){
HX_STACKFRAME(&_hx_pos_47f1ac2ead05c009_34_new)
HXLINE( 35) ::haxe::io::Bytes bytes = ::haxe::Resource_obj::getBytes(::__ASSET__manifest_default_json_obj::resourceName);
HXLINE( 41) super::__construct(bytes->length,bytes->b);
}
Dynamic __ASSET__manifest_default_json_obj::__CreateEmpty() { return new __ASSET__manifest_default_json_obj; }
void *__ASSET__manifest_default_json_obj::_hx_vtable = 0;
Dynamic __ASSET__manifest_default_json_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< __ASSET__manifest_default_json_obj > _hx_result = new __ASSET__manifest_default_json_obj();
_hx_result->__construct(inArgs[0],inArgs[1]);
return _hx_result;
}
bool __ASSET__manifest_default_json_obj::_hx_isInstanceOf(int inClassId) {
if (inClassId<=(int)0x5b931193) {
return inClassId==(int)0x00000001 || inClassId==(int)0x5b931193;
} else {
return inClassId==(int)0x784053a6;
}
}
::String __ASSET__manifest_default_json_obj::resourceName;
hx::ObjectPtr< __ASSET__manifest_default_json_obj > __ASSET__manifest_default_json_obj::__new( ::Dynamic length,::Array< unsigned char > bytesData) {
hx::ObjectPtr< __ASSET__manifest_default_json_obj > __this = new __ASSET__manifest_default_json_obj();
__this->__construct(length,bytesData);
return __this;
}
hx::ObjectPtr< __ASSET__manifest_default_json_obj > __ASSET__manifest_default_json_obj::__alloc(hx::Ctx *_hx_ctx, ::Dynamic length,::Array< unsigned char > bytesData) {
__ASSET__manifest_default_json_obj *__this = (__ASSET__manifest_default_json_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(__ASSET__manifest_default_json_obj), true, "__ASSET__manifest_default_json"));
*(void **)__this = __ASSET__manifest_default_json_obj::_hx_vtable;
__this->__construct(length,bytesData);
return __this;
}
__ASSET__manifest_default_json_obj::__ASSET__manifest_default_json_obj()
{
}
bool __ASSET__manifest_default_json_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 12:
if (HX_FIELD_EQ(inName,"resourceName") ) { outValue = ( resourceName ); return true; }
}
return false;
}
bool __ASSET__manifest_default_json_obj::__SetStatic(const ::String &inName,Dynamic &ioValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 12:
if (HX_FIELD_EQ(inName,"resourceName") ) { resourceName=ioValue.Cast< ::String >(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *__ASSET__manifest_default_json_obj_sMemberStorageInfo = 0;
static hx::StaticInfo __ASSET__manifest_default_json_obj_sStaticStorageInfo[] = {
{hx::fsString,(void *) &__ASSET__manifest_default_json_obj::resourceName,HX_("resourceName",39,7a,62,90)},
{ hx::fsUnknown, 0, null()}
};
#endif
static void __ASSET__manifest_default_json_obj_sMarkStatics(HX_MARK_PARAMS) {
HX_MARK_MEMBER_NAME(__ASSET__manifest_default_json_obj::resourceName,"resourceName");
};
#ifdef HXCPP_VISIT_ALLOCS
static void __ASSET__manifest_default_json_obj_sVisitStatics(HX_VISIT_PARAMS) {
HX_VISIT_MEMBER_NAME(__ASSET__manifest_default_json_obj::resourceName,"resourceName");
};
#endif
hx::Class __ASSET__manifest_default_json_obj::__mClass;
static ::String __ASSET__manifest_default_json_obj_sStaticFields[] = {
HX_("resourceName",39,7a,62,90),
::String(null())
};
void __ASSET__manifest_default_json_obj::__register()
{
__ASSET__manifest_default_json_obj _hx_dummy;
__ASSET__manifest_default_json_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("__ASSET__manifest_default_json",a6,53,40,78);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &__ASSET__manifest_default_json_obj::__GetStatic;
__mClass->mSetStaticField = &__ASSET__manifest_default_json_obj::__SetStatic;
__mClass->mMarkFunc = __ASSET__manifest_default_json_obj_sMarkStatics;
__mClass->mStatics = hx::Class_obj::dupFunctions(__ASSET__manifest_default_json_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< __ASSET__manifest_default_json_obj >;
#ifdef HXCPP_VISIT_ALLOCS
__mClass->mVisitFunc = __ASSET__manifest_default_json_obj_sVisitStatics;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = __ASSET__manifest_default_json_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = __ASSET__manifest_default_json_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
void __ASSET__manifest_default_json_obj::__boot()
{
{
HX_STACKFRAME(&_hx_pos_e49d3eafffbcb03c_102_boot)
HXDLIN( 102) resourceName = HX_("__ASSET__:file___ASSET__manifest_default_json",1f,29,36,ad);
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,28 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#include <stdio.h>
extern "C" void __hxcpp_main();
extern "C" void __hxcpp_lib_main();
#ifndef INCLUDED_ApplicationMain
#include <ApplicationMain.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_fe66fde75063e1fc_1___hxcpp_main,"hxcpp","__hxcpp_main",0x10478780,"hxcpp.__hxcpp_main","?",1,0x0000003f)
void __hxcpp_main() {
{
HX_STACKFRAME(&_hx_pos_fe66fde75063e1fc_1___hxcpp_main)
HXDLIN( 1) ::ApplicationMain_obj::main();
}
}
void __hxcpp_lib_main() {
HX_TOP_OF_STACK
hx::Boot();
__boot_all();
__hxcpp_main();
}

View File

@@ -0,0 +1,31 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#include <stdio.h>
extern "C" void __hxcpp_main();
extern "C" void __hxcpp_lib_main();
#ifndef INCLUDED_ApplicationMain
#include <ApplicationMain.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_fe66fde75063e1fc_1___hxcpp_main,"hxcpp","__hxcpp_main",0x10478780,"hxcpp.__hxcpp_main","?",1,0x0000003f)
#include <hx/HxcppMain.h>
void __hxcpp_main() {
{
HX_STACKFRAME(&_hx_pos_fe66fde75063e1fc_1___hxcpp_main)
HXDLIN( 1) ::ApplicationMain_obj::main();
}
}
void __hxcpp_lib_main() {
HX_TOP_OF_STACK
hx::Boot();
__boot_all();
__hxcpp_main();
}

View File

@@ -0,0 +1,11 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
namespace hx {
}
hx::Resource __Resources[] = {
{ ::String(null()),0,0 }
};
namespace hx { Resource *GetResources() { return __Resources; } }

View File

@@ -0,0 +1,189 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_cpp_Lib
#include <cpp/Lib.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_ead2d82c766bb2c1_38_load,"cpp.Lib","load",0xd2b2dcba,"cpp.Lib.load","/usr/share/haxe/std/cpp/Lib.hx",38,0x195878e0)
HX_LOCAL_STACK_FRAME(_hx_pos_ead2d82c766bb2c1_66_loadLazy,"cpp.Lib","loadLazy",0x865efe4e,"cpp.Lib.loadLazy","/usr/share/haxe/std/cpp/Lib.hx",66,0x195878e0)
HX_LOCAL_STACK_FRAME(_hx_pos_ead2d82c766bb2c1_70_loadLazy,"cpp.Lib","loadLazy",0x865efe4e,"cpp.Lib.loadLazy","/usr/share/haxe/std/cpp/Lib.hx",70,0x195878e0)
HX_LOCAL_STACK_FRAME(_hx_pos_ead2d82c766bb2c1_71_loadLazy,"cpp.Lib","loadLazy",0x865efe4e,"cpp.Lib.loadLazy","/usr/share/haxe/std/cpp/Lib.hx",71,0x195878e0)
HX_LOCAL_STACK_FRAME(_hx_pos_ead2d82c766bb2c1_72_loadLazy,"cpp.Lib","loadLazy",0x865efe4e,"cpp.Lib.loadLazy","/usr/share/haxe/std/cpp/Lib.hx",72,0x195878e0)
HX_LOCAL_STACK_FRAME(_hx_pos_ead2d82c766bb2c1_73_loadLazy,"cpp.Lib","loadLazy",0x865efe4e,"cpp.Lib.loadLazy","/usr/share/haxe/std/cpp/Lib.hx",73,0x195878e0)
HX_LOCAL_STACK_FRAME(_hx_pos_ead2d82c766bb2c1_74_loadLazy,"cpp.Lib","loadLazy",0x865efe4e,"cpp.Lib.loadLazy","/usr/share/haxe/std/cpp/Lib.hx",74,0x195878e0)
HX_LOCAL_STACK_FRAME(_hx_pos_ead2d82c766bb2c1_75_loadLazy,"cpp.Lib","loadLazy",0x865efe4e,"cpp.Lib.loadLazy","/usr/share/haxe/std/cpp/Lib.hx",75,0x195878e0)
namespace cpp{
void Lib_obj::__construct() { }
Dynamic Lib_obj::__CreateEmpty() { return new Lib_obj; }
void *Lib_obj::_hx_vtable = 0;
Dynamic Lib_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Lib_obj > _hx_result = new Lib_obj();
_hx_result->__construct();
return _hx_result;
}
bool Lib_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x09f990c6;
}
::Dynamic Lib_obj::load(::String lib,::String prim,int nargs){
HX_STACKFRAME(&_hx_pos_ead2d82c766bb2c1_38_load)
HXDLIN( 38) return ::__loadprim(lib,prim,nargs);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC3(Lib_obj,load,return )
::Dynamic Lib_obj::loadLazy(::String lib,::String prim,int nargs){
HX_STACKFRAME(&_hx_pos_ead2d82c766bb2c1_66_loadLazy)
HXDLIN( 66) try {
HX_STACK_CATCHABLE( ::Dynamic, 0);
HXLINE( 67) return ::__loadprim(lib,prim,nargs);
} catch( ::Dynamic _hx_e) {
if (_hx_e.IsClass< ::Dynamic >() ){
HX_STACK_BEGIN_CATCH
::Dynamic e = _hx_e;
HXLINE( 69) switch((int)(nargs)){
case (int)0: {
HX_BEGIN_LOCAL_FUNC_S1(hx::LocalFunc,_hx_Closure_1, ::Dynamic,e) HXARGC(0)
::Dynamic _hx_run(){
HX_STACKFRAME(&_hx_pos_ead2d82c766bb2c1_70_loadLazy)
HXLINE( 70) HX_STACK_DO_THROW(e);
HXDLIN( 70) return null();
}
HX_END_LOCAL_FUNC0(return)
HXLINE( 70) return ::Dynamic(new _hx_Closure_1(e));
}
break;
case (int)2: {
HX_BEGIN_LOCAL_FUNC_S1(hx::LocalFunc,_hx_Closure_2, ::Dynamic,e) HXARGC(2)
::Dynamic _hx_run( ::Dynamic _, ::Dynamic _1){
HX_STACKFRAME(&_hx_pos_ead2d82c766bb2c1_71_loadLazy)
HXLINE( 71) HX_STACK_DO_THROW(e);
HXDLIN( 71) return null();
}
HX_END_LOCAL_FUNC2(return)
HXLINE( 71) return ::Dynamic(new _hx_Closure_2(e));
}
break;
case (int)3: {
HX_BEGIN_LOCAL_FUNC_S1(hx::LocalFunc,_hx_Closure_3, ::Dynamic,e) HXARGC(3)
::Dynamic _hx_run( ::Dynamic _2, ::Dynamic _3, ::Dynamic _4){
HX_STACKFRAME(&_hx_pos_ead2d82c766bb2c1_72_loadLazy)
HXLINE( 72) HX_STACK_DO_THROW(e);
HXDLIN( 72) return null();
}
HX_END_LOCAL_FUNC3(return)
HXLINE( 72) return ::Dynamic(new _hx_Closure_3(e));
}
break;
case (int)4: {
HX_BEGIN_LOCAL_FUNC_S1(hx::LocalFunc,_hx_Closure_4, ::Dynamic,e) HXARGC(4)
::Dynamic _hx_run( ::Dynamic _5, ::Dynamic _6, ::Dynamic _7, ::Dynamic _8){
HX_STACKFRAME(&_hx_pos_ead2d82c766bb2c1_73_loadLazy)
HXLINE( 73) HX_STACK_DO_THROW(e);
HXDLIN( 73) return null();
}
HX_END_LOCAL_FUNC4(return)
HXLINE( 73) return ::Dynamic(new _hx_Closure_4(e));
}
break;
case (int)5: {
HX_BEGIN_LOCAL_FUNC_S1(hx::LocalFunc,_hx_Closure_5, ::Dynamic,e) HXARGC(5)
::Dynamic _hx_run( ::Dynamic _9, ::Dynamic _10, ::Dynamic _11, ::Dynamic _12, ::Dynamic _13){
HX_STACKFRAME(&_hx_pos_ead2d82c766bb2c1_74_loadLazy)
HXLINE( 74) HX_STACK_DO_THROW(e);
HXDLIN( 74) return null();
}
HX_END_LOCAL_FUNC5(return)
HXLINE( 74) return ::Dynamic(new _hx_Closure_5(e));
}
break;
default:{
HX_BEGIN_LOCAL_FUNC_S1(hx::LocalFunc,_hx_Closure_0, ::Dynamic,e) HXARGC(1)
::Dynamic _hx_run( ::Dynamic _14){
HX_STACKFRAME(&_hx_pos_ead2d82c766bb2c1_75_loadLazy)
HXLINE( 75) HX_STACK_DO_THROW(e);
HXDLIN( 75) return null();
}
HX_END_LOCAL_FUNC1(return)
HXLINE( 75) return ::Dynamic(new _hx_Closure_0(e));
}
}
}
else {
HX_STACK_DO_THROW(_hx_e);
}
}
HXLINE( 66) return null();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC3(Lib_obj,loadLazy,return )
Lib_obj::Lib_obj()
{
}
bool Lib_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"load") ) { outValue = load_dyn(); return true; }
break;
case 8:
if (HX_FIELD_EQ(inName,"loadLazy") ) { outValue = loadLazy_dyn(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *Lib_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *Lib_obj_sStaticStorageInfo = 0;
#endif
hx::Class Lib_obj::__mClass;
static ::String Lib_obj_sStaticFields[] = {
HX_("load",26,9a,b7,47),
HX_("loadLazy",ba,e1,4c,b8),
::String(null())
};
void Lib_obj::__register()
{
Lib_obj _hx_dummy;
Lib_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("cpp.Lib",5a,26,48,78);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &Lib_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(Lib_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< Lib_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Lib_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Lib_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace cpp

View File

@@ -0,0 +1,102 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_cpp_Prime
#include <cpp/Prime.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_303b22541f0aac86_34__loadPrime,"cpp.Prime","_loadPrime",0xdd360794,"cpp.Prime._loadPrime","/usr/share/haxe/std/cpp/Prime.hx",34,0xe6a608e6)
namespace cpp{
void Prime_obj::__construct() { }
Dynamic Prime_obj::__CreateEmpty() { return new Prime_obj; }
void *Prime_obj::_hx_vtable = 0;
Dynamic Prime_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Prime_obj > _hx_result = new Prime_obj();
_hx_result->__construct();
return _hx_result;
}
bool Prime_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x5288a064;
}
::Dynamic Prime_obj::_loadPrime(::String lib,::String prim,::String signature,hx::Null< bool > __o_quietFail){
bool quietFail = __o_quietFail.Default(false);
HX_STACKFRAME(&_hx_pos_303b22541f0aac86_34__loadPrime)
HXLINE( 35) ::cpp::Function< ::hx::Object * (const char*) > factory = ::__hxcpp_cast_get_proc_address(lib,(prim + HX_("__prime",1f,b0,e9,32)),quietFail);
HXLINE( 36) if (hx::IsNotNull( factory )) {
HXLINE( 37) const char* this1 = signature.utf8_str();
HXDLIN( 37) ::Dynamic func = ( ( ::Dynamic)(factory(this1)) );
HXLINE( 38) bool _hx_tmp;
HXDLIN( 38) if (hx::IsNull( func )) {
HXLINE( 38) _hx_tmp = !(quietFail);
}
else {
HXLINE( 38) _hx_tmp = false;
}
HXDLIN( 38) if (_hx_tmp) {
HXLINE( 39) HX_STACK_DO_THROW((((HX_("",00,00,00,00) + prim) + HX_(" does not have signature ",0c,77,54,95)) + signature));
}
HXLINE( 40) return func;
}
HXLINE( 42) return null();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC4(Prime_obj,_loadPrime,return )
Prime_obj::Prime_obj()
{
}
bool Prime_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 10:
if (HX_FIELD_EQ(inName,"_loadPrime") ) { outValue = _loadPrime_dyn(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *Prime_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *Prime_obj_sStaticStorageInfo = 0;
#endif
hx::Class Prime_obj::__mClass;
static ::String Prime_obj_sStaticFields[] = {
HX_("_loadPrime",fa,1e,65,3f),
::String(null())
};
void Prime_obj::__register()
{
Prime_obj _hx_dummy;
Prime_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("cpp.Prime",94,dd,f4,8a);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &Prime_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(Prime_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< Prime_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Prime_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Prime_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace cpp

View File

@@ -0,0 +1,416 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_StringBuf
#include <StringBuf.h>
#endif
#ifndef INCLUDED_haxe_CallStack
#include <haxe/CallStack.h>
#endif
#ifndef INCLUDED_haxe_StackItem
#include <haxe/StackItem.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_b1d74213eefbc85d_259_toString,"haxe.CallStack","toString",0xd59be738,"haxe.CallStack.toString","/usr/share/haxe/std/haxe/CallStack.hx",259,0xe5f54202)
static const ::String _hx_array_data_6d544b62_2[] = {
HX_("\nCalled from ",bd,26,6b,81),
};
HX_LOCAL_STACK_FRAME(_hx_pos_b1d74213eefbc85d_269_itemToString,"haxe.CallStack","itemToString",0xc121696b,"haxe.CallStack.itemToString","/usr/share/haxe/std/haxe/CallStack.hx",269,0xe5f54202)
static const ::String _hx_array_data_6d544b62_4[] = {
HX_("a C function",f4,1b,53,cb),
};
static const ::String _hx_array_data_6d544b62_5[] = {
HX_("module ",f4,e1,fa,f7),
};
static const ::String _hx_array_data_6d544b62_6[] = {
HX_(" (",08,1c,00,00),
};
static const ::String _hx_array_data_6d544b62_7[] = {
HX_(" line ",8c,69,6d,40),
};
static const ::String _hx_array_data_6d544b62_8[] = {
HX_(" column ",6a,f0,a7,19),
};
static const ::String _hx_array_data_6d544b62_9[] = {
HX_(")",29,00,00,00),
};
static const ::String _hx_array_data_6d544b62_10[] = {
HX_(".",2e,00,00,00),
};
static const ::String _hx_array_data_6d544b62_11[] = {
HX_("local function #",b0,cd,97,ff),
};
namespace haxe{
void CallStack_obj::__construct() { }
Dynamic CallStack_obj::__CreateEmpty() { return new CallStack_obj; }
void *CallStack_obj::_hx_vtable = 0;
Dynamic CallStack_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< CallStack_obj > _hx_result = new CallStack_obj();
_hx_result->__construct();
return _hx_result;
}
bool CallStack_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x6207a884;
}
::Array< ::Dynamic> CallStack_obj::exceptionStack(){
::Array< ::String > s = ::__hxcpp_get_exception_stack();
return ::haxe::CallStack_obj::makeStack(s);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC0(CallStack_obj,exceptionStack,return )
::String CallStack_obj::toString(::Array< ::Dynamic> stack){
HX_GC_STACKFRAME(&_hx_pos_b1d74213eefbc85d_259_toString)
HXLINE( 260) ::StringBuf b = ::StringBuf_obj::__alloc( HX_CTX );
HXLINE( 261) {
HXLINE( 261) int _g = 0;
HXDLIN( 261) while((_g < stack->length)){
HXLINE( 261) ::haxe::StackItem s = stack->__get(_g).StaticCast< ::haxe::StackItem >();
HXDLIN( 261) _g = (_g + 1);
HXLINE( 262) {
HXLINE( 262) if (hx::IsNotNull( b->charBuf )) {
HXLINE( 262) b->flush();
}
HXDLIN( 262) if (hx::IsNull( b->b )) {
HXLINE( 262) b->b = ::Array_obj< ::String >::fromData( _hx_array_data_6d544b62_2,1);
}
else {
HXLINE( 262) b->b->push(HX_("\nCalled from ",bd,26,6b,81));
}
}
HXLINE( 263) ::haxe::CallStack_obj::itemToString(b,s);
}
}
HXLINE( 265) return b->toString();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(CallStack_obj,toString,return )
void CallStack_obj::itemToString( ::StringBuf b, ::haxe::StackItem s){
HX_STACKFRAME(&_hx_pos_b1d74213eefbc85d_269_itemToString)
HXDLIN( 269) switch((int)(s->_hx_getIndex())){
case (int)0: {
HXLINE( 271) if (hx::IsNotNull( b->charBuf )) {
HXLINE( 271) b->flush();
}
HXDLIN( 271) if (hx::IsNull( b->b )) {
HXLINE( 271) b->b = ::Array_obj< ::String >::fromData( _hx_array_data_6d544b62_4,1);
}
else {
HXLINE( 271) b->b->push(HX_("a C function",f4,1b,53,cb));
}
}
break;
case (int)1: {
HXLINE( 272) ::String m = s->_hx_getString(0);
HXDLIN( 272) {
HXLINE( 273) {
HXLINE( 273) if (hx::IsNotNull( b->charBuf )) {
HXLINE( 273) b->flush();
}
HXDLIN( 273) if (hx::IsNull( b->b )) {
HXLINE( 273) b->b = ::Array_obj< ::String >::fromData( _hx_array_data_6d544b62_5,1);
}
else {
HXLINE( 273) b->b->push(HX_("module ",f4,e1,fa,f7));
}
}
HXLINE( 274) {
HXLINE( 274) if (hx::IsNotNull( b->charBuf )) {
HXLINE( 274) b->flush();
}
HXDLIN( 274) if (hx::IsNull( b->b )) {
HXLINE( 274) b->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(m));
}
else {
HXLINE( 274) ::Array< ::String > b1 = b->b;
HXDLIN( 274) b1->push(::Std_obj::string(m));
}
}
}
}
break;
case (int)2: {
HXLINE( 275) ::Dynamic col = s->_hx_getObject(3);
HXDLIN( 275) int line = s->_hx_getInt(2);
HXDLIN( 275) ::String file = s->_hx_getString(1);
HXDLIN( 275) ::haxe::StackItem s1 = s->_hx_getObject(0).StaticCast< ::haxe::StackItem >();
HXDLIN( 275) {
HXLINE( 276) if (hx::IsNotNull( s1 )) {
HXLINE( 277) ::haxe::CallStack_obj::itemToString(b,s1);
HXLINE( 278) {
HXLINE( 278) if (hx::IsNotNull( b->charBuf )) {
HXLINE( 278) b->flush();
}
HXDLIN( 278) if (hx::IsNull( b->b )) {
HXLINE( 278) b->b = ::Array_obj< ::String >::fromData( _hx_array_data_6d544b62_6,1);
}
else {
HXLINE( 278) b->b->push(HX_(" (",08,1c,00,00));
}
}
}
HXLINE( 280) {
HXLINE( 280) if (hx::IsNotNull( b->charBuf )) {
HXLINE( 280) b->flush();
}
HXDLIN( 280) if (hx::IsNull( b->b )) {
HXLINE( 280) b->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(file));
}
else {
HXLINE( 280) ::Array< ::String > b2 = b->b;
HXDLIN( 280) b2->push(::Std_obj::string(file));
}
}
HXLINE( 281) {
HXLINE( 281) if (hx::IsNotNull( b->charBuf )) {
HXLINE( 281) b->flush();
}
HXDLIN( 281) if (hx::IsNull( b->b )) {
HXLINE( 281) b->b = ::Array_obj< ::String >::fromData( _hx_array_data_6d544b62_7,1);
}
else {
HXLINE( 281) b->b->push(HX_(" line ",8c,69,6d,40));
}
}
HXLINE( 282) {
HXLINE( 282) if (hx::IsNotNull( b->charBuf )) {
HXLINE( 282) b->flush();
}
HXDLIN( 282) if (hx::IsNull( b->b )) {
HXLINE( 282) b->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(line));
}
else {
HXLINE( 282) ::Array< ::String > b3 = b->b;
HXDLIN( 282) b3->push(::Std_obj::string(line));
}
}
HXLINE( 283) if (hx::IsNotNull( col )) {
HXLINE( 284) {
HXLINE( 284) if (hx::IsNotNull( b->charBuf )) {
HXLINE( 284) b->flush();
}
HXDLIN( 284) if (hx::IsNull( b->b )) {
HXLINE( 284) b->b = ::Array_obj< ::String >::fromData( _hx_array_data_6d544b62_8,1);
}
else {
HXLINE( 284) b->b->push(HX_(" column ",6a,f0,a7,19));
}
}
HXLINE( 285) {
HXLINE( 285) if (hx::IsNotNull( b->charBuf )) {
HXLINE( 285) b->flush();
}
HXDLIN( 285) if (hx::IsNull( b->b )) {
HXLINE( 285) b->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(col));
}
else {
HXLINE( 285) ::Array< ::String > b4 = b->b;
HXDLIN( 285) b4->push(::Std_obj::string(col));
}
}
}
HXLINE( 287) if (hx::IsNotNull( s1 )) {
HXLINE( 288) if (hx::IsNotNull( b->charBuf )) {
HXLINE( 288) b->flush();
}
HXDLIN( 288) if (hx::IsNull( b->b )) {
HXLINE( 288) b->b = ::Array_obj< ::String >::fromData( _hx_array_data_6d544b62_9,1);
}
else {
HXLINE( 288) b->b->push(HX_(")",29,00,00,00));
}
}
}
}
break;
case (int)3: {
HXLINE( 289) ::String meth = s->_hx_getString(1);
HXDLIN( 289) ::String cname = s->_hx_getString(0);
HXDLIN( 289) {
HXLINE( 290) {
HXLINE( 290) ::String x;
HXDLIN( 290) if (hx::IsNull( cname )) {
HXLINE( 290) x = HX_("<unknown>",b0,91,d8,da);
}
else {
HXLINE( 290) x = cname;
}
HXDLIN( 290) if (hx::IsNotNull( b->charBuf )) {
HXLINE( 290) b->flush();
}
HXDLIN( 290) if (hx::IsNull( b->b )) {
HXLINE( 290) b->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(x));
}
else {
HXLINE( 290) ::Array< ::String > b5 = b->b;
HXDLIN( 290) b5->push(::Std_obj::string(x));
}
}
HXLINE( 291) {
HXLINE( 291) if (hx::IsNotNull( b->charBuf )) {
HXLINE( 291) b->flush();
}
HXDLIN( 291) if (hx::IsNull( b->b )) {
HXLINE( 291) b->b = ::Array_obj< ::String >::fromData( _hx_array_data_6d544b62_10,1);
}
else {
HXLINE( 291) b->b->push(HX_(".",2e,00,00,00));
}
}
HXLINE( 292) {
HXLINE( 292) if (hx::IsNotNull( b->charBuf )) {
HXLINE( 292) b->flush();
}
HXDLIN( 292) if (hx::IsNull( b->b )) {
HXLINE( 292) b->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(meth));
}
else {
HXLINE( 292) ::Array< ::String > b6 = b->b;
HXDLIN( 292) b6->push(::Std_obj::string(meth));
}
}
}
}
break;
case (int)4: {
HXLINE( 293) ::Dynamic n = s->_hx_getObject(0);
HXDLIN( 293) {
HXLINE( 294) {
HXLINE( 294) if (hx::IsNotNull( b->charBuf )) {
HXLINE( 294) b->flush();
}
HXDLIN( 294) if (hx::IsNull( b->b )) {
HXLINE( 294) b->b = ::Array_obj< ::String >::fromData( _hx_array_data_6d544b62_11,1);
}
else {
HXLINE( 294) b->b->push(HX_("local function #",b0,cd,97,ff));
}
}
HXLINE( 295) {
HXLINE( 295) if (hx::IsNotNull( b->charBuf )) {
HXLINE( 295) b->flush();
}
HXDLIN( 295) if (hx::IsNull( b->b )) {
HXLINE( 295) b->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(n));
}
else {
HXLINE( 295) ::Array< ::String > b7 = b->b;
HXDLIN( 295) b7->push(::Std_obj::string(n));
}
}
}
}
break;
}
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(CallStack_obj,itemToString,(void))
::Array< ::Dynamic> CallStack_obj::makeStack( ::Dynamic s){
::Array< ::String > stack = ( (::Array< ::String >)(s) );
::Array< ::Dynamic> m = ::Array_obj< ::Dynamic>::__new();
{
int _g = 0;
while((_g < stack->length)){
::String func = stack->__get(_g);
_g = (_g + 1);
::Array< ::String > words = func.split(HX_("::",c0,32,00,00));
if ((words->length == 0)) {
m->push(::haxe::StackItem_obj::CFunction_dyn());
}
else {
if ((words->length == 2)) {
m->push(::haxe::StackItem_obj::Method(words->__get(0),words->__get(1)));
}
else {
if ((words->length == 4)) {
::haxe::StackItem _hx_tmp = ::haxe::StackItem_obj::Method(words->__get(0),words->__get(1));
::String words1 = words->__get(2);
m->push(::haxe::StackItem_obj::FilePos(_hx_tmp,words1,::Std_obj::parseInt(words->__get(3)),null()));
}
}
}
}
}
return m;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(CallStack_obj,makeStack,return )
CallStack_obj::CallStack_obj()
{
}
bool CallStack_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 8:
if (HX_FIELD_EQ(inName,"toString") ) { outValue = toString_dyn(); return true; }
break;
case 9:
if (HX_FIELD_EQ(inName,"makeStack") ) { outValue = makeStack_dyn(); return true; }
break;
case 12:
if (HX_FIELD_EQ(inName,"itemToString") ) { outValue = itemToString_dyn(); return true; }
break;
case 14:
if (HX_FIELD_EQ(inName,"exceptionStack") ) { outValue = exceptionStack_dyn(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *CallStack_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *CallStack_obj_sStaticStorageInfo = 0;
#endif
hx::Class CallStack_obj::__mClass;
static ::String CallStack_obj_sStaticFields[] = {
HX_("exceptionStack",79,48,56,0b),
HX_("toString",ac,d0,6e,38),
HX_("itemToString",df,1c,98,1c),
HX_("makeStack",7a,de,a3,57),
::String(null())
};
void CallStack_obj::__register()
{
CallStack_obj _hx_dummy;
CallStack_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.CallStack",62,4b,54,6d);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &CallStack_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(CallStack_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< CallStack_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = CallStack_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = CallStack_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe

View File

@@ -0,0 +1,261 @@
// Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_haxe_Exception
#include <haxe/Exception.h>
#endif
#ifndef INCLUDED_haxe_NativeStackTrace
#include <haxe/NativeStackTrace.h>
#endif
#ifndef INCLUDED_haxe_ValueException
#include <haxe/ValueException.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_c7e014ce41a096e9_5_new,"haxe.Exception","new",0xa32fba59,"haxe.Exception.new","/usr/share/haxe/std/cpp/_std/haxe/Exception.hx",5,0xd6630874)
HX_LOCAL_STACK_FRAME(_hx_pos_c7e014ce41a096e9_49_unwrap,"haxe.Exception","unwrap",0x6c26184a,"haxe.Exception.unwrap","/usr/share/haxe/std/cpp/_std/haxe/Exception.hx",49,0xd6630874)
HX_LOCAL_STACK_FRAME(_hx_pos_c7e014ce41a096e9_75_get_native,"haxe.Exception","get_native",0xdd187087,"haxe.Exception.get_native","/usr/share/haxe/std/cpp/_std/haxe/Exception.hx",75,0xd6630874)
HX_LOCAL_STACK_FRAME(_hx_pos_c7e014ce41a096e9_19_caught,"haxe.Exception","caught",0xbc294f23,"haxe.Exception.caught","/usr/share/haxe/std/cpp/_std/haxe/Exception.hx",19,0xd6630874)
HX_LOCAL_STACK_FRAME(_hx_pos_c7e014ce41a096e9_27_thrown,"haxe.Exception","thrown",0x8e12fc2f,"haxe.Exception.thrown","/usr/share/haxe/std/cpp/_std/haxe/Exception.hx",27,0xd6630874)
namespace haxe{
void Exception_obj::__construct(::String message, ::haxe::Exception previous, ::Dynamic native){
HX_STACKFRAME(&_hx_pos_c7e014ce41a096e9_5_new)
HXLINE( 14) this->_hx___skipStack = 0;
HXLINE( 37) this->_hx___exceptionMessage = message;
HXLINE( 38) this->_hx___previousException = previous;
HXLINE( 39) if (::hx::IsNotNull( native )) {
HXLINE( 40) this->_hx___nativeStack = ::haxe::NativeStackTrace_obj::exceptionStack();
HXLINE( 41) this->_hx___nativeException = native;
}
else {
HXLINE( 43) this->_hx___nativeStack = ::haxe::NativeStackTrace_obj::callStack();
HXLINE( 44) this->_hx___nativeException = ::hx::ObjectPtr<OBJ_>(this);
}
}
Dynamic Exception_obj::__CreateEmpty() { return new Exception_obj; }
void *Exception_obj::_hx_vtable = 0;
Dynamic Exception_obj::__Create(::hx::DynamicArray inArgs)
{
::hx::ObjectPtr< Exception_obj > _hx_result = new Exception_obj();
_hx_result->__construct(inArgs[0],inArgs[1],inArgs[2]);
return _hx_result;
}
bool Exception_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x677ddc49;
}
::Dynamic Exception_obj::unwrap(){
HX_STACKFRAME(&_hx_pos_c7e014ce41a096e9_49_unwrap)
HXDLIN( 49) return this->_hx___nativeException;
}
HX_DEFINE_DYNAMIC_FUNC0(Exception_obj,unwrap,return )
::Dynamic Exception_obj::get_native(){
HX_STACKFRAME(&_hx_pos_c7e014ce41a096e9_75_get_native)
HXDLIN( 75) return this->_hx___nativeException;
}
HX_DEFINE_DYNAMIC_FUNC0(Exception_obj,get_native,return )
::haxe::Exception Exception_obj::caught( ::Dynamic value){
HX_GC_STACKFRAME(&_hx_pos_c7e014ce41a096e9_19_caught)
HXDLIN( 19) if (::Std_obj::isOfType(value,( ( ::Dynamic)(::hx::ClassOf< ::haxe::Exception >()) ))) {
HXLINE( 20) return ( ( ::haxe::Exception)(value) );
}
else {
HXLINE( 22) return ::haxe::ValueException_obj::__alloc( HX_CTX ,value,null(),value);
}
HXLINE( 19) return null();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Exception_obj,caught,return )
::Dynamic Exception_obj::thrown( ::Dynamic value){
HX_GC_STACKFRAME(&_hx_pos_c7e014ce41a096e9_27_thrown)
HXDLIN( 27) if (::Std_obj::isOfType(value,::hx::ClassOf< ::haxe::Exception >())) {
HXLINE( 28) return ( ( ::haxe::Exception)(value) )->get_native();
}
else {
HXLINE( 30) ::haxe::ValueException e = ::haxe::ValueException_obj::__alloc( HX_CTX ,value,null(),null());
HXLINE( 31) e->_hx___skipStack++;
HXLINE( 32) return e;
}
HXLINE( 27) return null();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Exception_obj,thrown,return )
::hx::ObjectPtr< Exception_obj > Exception_obj::__new(::String message, ::haxe::Exception previous, ::Dynamic native) {
::hx::ObjectPtr< Exception_obj > __this = new Exception_obj();
__this->__construct(message,previous,native);
return __this;
}
::hx::ObjectPtr< Exception_obj > Exception_obj::__alloc(::hx::Ctx *_hx_ctx,::String message, ::haxe::Exception previous, ::Dynamic native) {
Exception_obj *__this = (Exception_obj*)(::hx::Ctx::alloc(_hx_ctx, sizeof(Exception_obj), true, "haxe.Exception"));
*(void **)__this = Exception_obj::_hx_vtable;
__this->__construct(message,previous,native);
return __this;
}
Exception_obj::Exception_obj()
{
}
void Exception_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(Exception);
HX_MARK_MEMBER_NAME(_hx___exceptionMessage,"__exceptionMessage");
HX_MARK_MEMBER_NAME(_hx___nativeStack,"__nativeStack");
HX_MARK_MEMBER_NAME(_hx___skipStack,"__skipStack");
HX_MARK_MEMBER_NAME(_hx___nativeException,"__nativeException");
HX_MARK_MEMBER_NAME(_hx___previousException,"__previousException");
HX_MARK_END_CLASS();
}
void Exception_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(_hx___exceptionMessage,"__exceptionMessage");
HX_VISIT_MEMBER_NAME(_hx___nativeStack,"__nativeStack");
HX_VISIT_MEMBER_NAME(_hx___skipStack,"__skipStack");
HX_VISIT_MEMBER_NAME(_hx___nativeException,"__nativeException");
HX_VISIT_MEMBER_NAME(_hx___previousException,"__previousException");
}
::hx::Val Exception_obj::__Field(const ::String &inName,::hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 6:
if (HX_FIELD_EQ(inName,"native") ) { if (inCallProp == ::hx::paccAlways) return ::hx::Val( get_native() ); }
if (HX_FIELD_EQ(inName,"unwrap") ) { return ::hx::Val( unwrap_dyn() ); }
break;
case 10:
if (HX_FIELD_EQ(inName,"get_native") ) { return ::hx::Val( get_native_dyn() ); }
break;
case 11:
if (HX_FIELD_EQ(inName,"__skipStack") ) { return ::hx::Val( _hx___skipStack ); }
break;
case 13:
if (HX_FIELD_EQ(inName,"__nativeStack") ) { return ::hx::Val( _hx___nativeStack ); }
break;
case 17:
if (HX_FIELD_EQ(inName,"__nativeException") ) { return ::hx::Val( _hx___nativeException ); }
break;
case 18:
if (HX_FIELD_EQ(inName,"__exceptionMessage") ) { return ::hx::Val( _hx___exceptionMessage ); }
break;
case 19:
if (HX_FIELD_EQ(inName,"__previousException") ) { return ::hx::Val( _hx___previousException ); }
}
return super::__Field(inName,inCallProp);
}
bool Exception_obj::__GetStatic(const ::String &inName, Dynamic &outValue, ::hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 6:
if (HX_FIELD_EQ(inName,"caught") ) { outValue = caught_dyn(); return true; }
if (HX_FIELD_EQ(inName,"thrown") ) { outValue = thrown_dyn(); return true; }
}
return false;
}
::hx::Val Exception_obj::__SetField(const ::String &inName,const ::hx::Val &inValue,::hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 11:
if (HX_FIELD_EQ(inName,"__skipStack") ) { _hx___skipStack=inValue.Cast< int >(); return inValue; }
break;
case 13:
if (HX_FIELD_EQ(inName,"__nativeStack") ) { _hx___nativeStack=inValue.Cast< ::Array< ::String > >(); return inValue; }
break;
case 17:
if (HX_FIELD_EQ(inName,"__nativeException") ) { _hx___nativeException=inValue.Cast< ::Dynamic >(); return inValue; }
break;
case 18:
if (HX_FIELD_EQ(inName,"__exceptionMessage") ) { _hx___exceptionMessage=inValue.Cast< ::String >(); return inValue; }
break;
case 19:
if (HX_FIELD_EQ(inName,"__previousException") ) { _hx___previousException=inValue.Cast< ::haxe::Exception >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void Exception_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("native",97,c9,1c,22));
outFields->push(HX_("__exceptionMessage",58,18,4c,1e));
outFields->push(HX_("__nativeStack",11,2b,7f,33));
outFields->push(HX_("__skipStack",29,1d,33,c6));
outFields->push(HX_("__nativeException",98,ec,35,0d));
outFields->push(HX_("__previousException",f8,9d,b4,84));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static ::hx::StorageInfo Exception_obj_sMemberStorageInfo[] = {
{::hx::fsString,(int)offsetof(Exception_obj,_hx___exceptionMessage),HX_("__exceptionMessage",58,18,4c,1e)},
{::hx::fsObject /* ::Array< ::String > */ ,(int)offsetof(Exception_obj,_hx___nativeStack),HX_("__nativeStack",11,2b,7f,33)},
{::hx::fsInt,(int)offsetof(Exception_obj,_hx___skipStack),HX_("__skipStack",29,1d,33,c6)},
{::hx::fsObject /* ::Dynamic */ ,(int)offsetof(Exception_obj,_hx___nativeException),HX_("__nativeException",98,ec,35,0d)},
{::hx::fsObject /* ::haxe::Exception */ ,(int)offsetof(Exception_obj,_hx___previousException),HX_("__previousException",f8,9d,b4,84)},
{ ::hx::fsUnknown, 0, null()}
};
static ::hx::StaticInfo *Exception_obj_sStaticStorageInfo = 0;
#endif
static ::String Exception_obj_sMemberFields[] = {
HX_("__exceptionMessage",58,18,4c,1e),
HX_("__nativeStack",11,2b,7f,33),
HX_("__skipStack",29,1d,33,c6),
HX_("__nativeException",98,ec,35,0d),
HX_("__previousException",f8,9d,b4,84),
HX_("unwrap",a3,40,d4,6c),
HX_("get_native",60,39,a4,12),
::String(null()) };
::hx::Class Exception_obj::__mClass;
static ::String Exception_obj_sStaticFields[] = {
HX_("caught",7c,77,d7,bc),
HX_("thrown",88,24,c1,8e),
::String(null())
};
void Exception_obj::__register()
{
Exception_obj _hx_dummy;
Exception_obj::_hx_vtable = *(void **)&_hx_dummy;
::hx::Static(__mClass) = new ::hx::Class_obj();
__mClass->mName = HX_("haxe.Exception",e7,99,a3,a6);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &Exception_obj::__GetStatic;
__mClass->mSetStaticField = &::hx::Class_obj::SetNoStaticField;
__mClass->mStatics = ::hx::Class_obj::dupFunctions(Exception_obj_sStaticFields);
__mClass->mMembers = ::hx::Class_obj::dupFunctions(Exception_obj_sMemberFields);
__mClass->mCanCast = ::hx::TCanCast< Exception_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Exception_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Exception_obj_sStaticStorageInfo;
#endif
::hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe

View File

@@ -0,0 +1,29 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_IMap
#include <haxe/IMap.h>
#endif
namespace haxe{
static ::String IMap_obj_sMemberFields[] = {
HX_("set",a2,9b,57,00),
HX_("exists",dc,1d,e0,bf),
HX_("remove",44,9c,88,04),
::String(null()) };
hx::Class IMap_obj::__mClass;
void IMap_obj::__register()
{
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.IMap",1b,07,35,eb);
__mClass->mSuper = &super::__SGetClass();
__mClass->mMembers = hx::Class_obj::dupFunctions(IMap_obj_sMemberFields);
__mClass->mCanCast = hx::TIsInterface< (int)0x09c2bd39 >;
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe

View File

@@ -0,0 +1,145 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_haxe_Log
#include <haxe/Log.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_1fafd6d538e4c565_30___default_trace,"haxe.Log","__default_trace",0xe2f5e5d5,"haxe.Log.__default_trace","/usr/share/haxe/std/cpp/_std/haxe/Log.hx",30,0x0d72599f)
namespace haxe{
void Log_obj::__construct() { }
Dynamic Log_obj::__CreateEmpty() { return new Log_obj; }
void *Log_obj::_hx_vtable = 0;
Dynamic Log_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Log_obj > _hx_result = new Log_obj();
_hx_result->__construct();
return _hx_result;
}
bool Log_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x0446b9f6;
}
HX_BEGIN_DEFAULT_FUNC(__default_trace,Log_obj)
void _hx_run( ::Dynamic v, ::Dynamic infos){
HX_STACKFRAME(&_hx_pos_1fafd6d538e4c565_30___default_trace)
HXDLIN( 30) bool _hx_tmp;
HXDLIN( 30) if (hx::IsNotNull( infos )) {
HXDLIN( 30) _hx_tmp = hx::IsNotNull( infos->__Field(HX_("customParams",d7,51,18,ed),hx::paccDynamic) );
}
else {
HXDLIN( 30) _hx_tmp = false;
}
HXDLIN( 30) if (_hx_tmp) {
HXLINE( 31) ::String extra = HX_("",00,00,00,00);
HXLINE( 32) {
HXLINE( 32) int _g = 0;
HXDLIN( 32) ::cpp::VirtualArray _g1 = ( (::cpp::VirtualArray)(infos->__Field(HX_("customParams",d7,51,18,ed),hx::paccDynamic)) );
HXDLIN( 32) while((_g < _g1->get_length())){
HXLINE( 32) ::Dynamic v1 = _g1->__get(_g);
HXDLIN( 32) _g = (_g + 1);
HXLINE( 33) extra = (extra + (HX_(",",2c,00,00,00) + ::Std_obj::string(v1)));
}
}
HXLINE( 34) __trace((::Std_obj::string(v) + extra),infos);
}
else {
HXLINE( 36) __trace(( (::String)(v) ),infos);
}
}
HX_END_LOCAL_FUNC2((void))
HX_END_DEFAULT_FUNC
::Dynamic Log_obj::trace;
Log_obj::Log_obj()
{
}
bool Log_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 5:
if (HX_FIELD_EQ(inName,"trace") ) { outValue = ( trace ); return true; }
}
return false;
}
bool Log_obj::__SetStatic(const ::String &inName,Dynamic &ioValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 5:
if (HX_FIELD_EQ(inName,"trace") ) { trace=ioValue.Cast< ::Dynamic >(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *Log_obj_sMemberStorageInfo = 0;
static hx::StaticInfo Log_obj_sStaticStorageInfo[] = {
{hx::fsObject /* ::Dynamic */ ,(void *) &Log_obj::trace,HX_("trace",85,8e,1f,16)},
{ hx::fsUnknown, 0, null()}
};
#endif
static void Log_obj_sMarkStatics(HX_MARK_PARAMS) {
HX_MARK_MEMBER_NAME(Log_obj::trace,"trace");
};
#ifdef HXCPP_VISIT_ALLOCS
static void Log_obj_sVisitStatics(HX_VISIT_PARAMS) {
HX_VISIT_MEMBER_NAME(Log_obj::trace,"trace");
};
#endif
hx::Class Log_obj::__mClass;
static ::String Log_obj_sStaticFields[] = {
HX_("trace",85,8e,1f,16),
::String(null())
};
void Log_obj::__register()
{
Log_obj _hx_dummy;
Log_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.Log",1c,1c,0e,3f);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &Log_obj::__GetStatic;
__mClass->mSetStaticField = &Log_obj::__SetStatic;
__mClass->mMarkFunc = Log_obj_sMarkStatics;
__mClass->mStatics = hx::Class_obj::dupFunctions(Log_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< Log_obj >;
#ifdef HXCPP_VISIT_ALLOCS
__mClass->mVisitFunc = Log_obj_sVisitStatics;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Log_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Log_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
void Log_obj::__boot()
{
trace = new __default_trace;
}
} // end namespace haxe

View File

@@ -0,0 +1,153 @@
// Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_haxe_NativeStackTrace
#include <haxe/NativeStackTrace.h>
#endif
#ifndef INCLUDED_haxe_StackItem
#include <haxe/StackItem.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_92118109ac299797_12_saveStack,"haxe.NativeStackTrace","saveStack",0x471b27d9,"haxe.NativeStackTrace.saveStack","/usr/share/haxe/std/cpp/_std/haxe/NativeStackTrace.hx",12,0x826068a5)
HX_LOCAL_STACK_FRAME(_hx_pos_92118109ac299797_25_toHaxe,"haxe.NativeStackTrace","toHaxe",0x6b36d173,"haxe.NativeStackTrace.toHaxe","/usr/share/haxe/std/cpp/_std/haxe/NativeStackTrace.hx",25,0x826068a5)
namespace haxe{
void NativeStackTrace_obj::__construct() { }
Dynamic NativeStackTrace_obj::__CreateEmpty() { return new NativeStackTrace_obj; }
void *NativeStackTrace_obj::_hx_vtable = 0;
Dynamic NativeStackTrace_obj::__Create(::hx::DynamicArray inArgs)
{
::hx::ObjectPtr< NativeStackTrace_obj > _hx_result = new NativeStackTrace_obj();
_hx_result->__construct();
return _hx_result;
}
bool NativeStackTrace_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x3984963e;
}
void NativeStackTrace_obj::saveStack( ::Dynamic exception){
HX_STACKFRAME(&_hx_pos_92118109ac299797_12_saveStack)
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(NativeStackTrace_obj,saveStack,(void))
::Array< ::String > NativeStackTrace_obj::callStack(){
return ::__hxcpp_get_call_stack(true);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC0(NativeStackTrace_obj,callStack,return )
::Array< ::String > NativeStackTrace_obj::exceptionStack(){
return ::__hxcpp_get_exception_stack();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC0(NativeStackTrace_obj,exceptionStack,return )
::Array< ::Dynamic> NativeStackTrace_obj::toHaxe(::Array< ::String > native,::hx::Null< int > __o_skip){
int skip = __o_skip.Default(0);
HX_STACKFRAME(&_hx_pos_92118109ac299797_25_toHaxe)
HXLINE( 26) ::Array< ::String > stack = native;
HXLINE( 27) ::Array< ::Dynamic> m = ::Array_obj< ::Dynamic>::__new();
HXLINE( 28) {
HXLINE( 28) int _g = 0;
HXDLIN( 28) int _g1 = stack->length;
HXDLIN( 28) while((_g < _g1)){
HXLINE( 28) _g = (_g + 1);
HXDLIN( 28) int i = (_g - 1);
HXLINE( 29) if ((skip > i)) {
HXLINE( 30) continue;
}
HXLINE( 32) ::Array< ::String > words = stack->__get(i).split(HX_("::",c0,32,00,00));
HXLINE( 33) if ((words->length == 0)) {
HXLINE( 34) m->push(::haxe::StackItem_obj::CFunction_dyn());
}
else {
HXLINE( 35) if ((words->length == 2)) {
HXLINE( 36) m->push(::haxe::StackItem_obj::Method(words->__get(0),words->__get(1)));
}
else {
HXLINE( 37) if ((words->length == 4)) {
HXLINE( 38) ::haxe::StackItem _hx_tmp = ::haxe::StackItem_obj::Method(words->__get(0),words->__get(1));
HXDLIN( 38) ::String words1 = words->__get(2);
HXDLIN( 38) m->push(::haxe::StackItem_obj::FilePos(_hx_tmp,words1,::Std_obj::parseInt(words->__get(3)),null()));
}
}
}
}
}
HXLINE( 40) return m;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(NativeStackTrace_obj,toHaxe,return )
NativeStackTrace_obj::NativeStackTrace_obj()
{
}
bool NativeStackTrace_obj::__GetStatic(const ::String &inName, Dynamic &outValue, ::hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 6:
if (HX_FIELD_EQ(inName,"toHaxe") ) { outValue = toHaxe_dyn(); return true; }
break;
case 9:
if (HX_FIELD_EQ(inName,"saveStack") ) { outValue = saveStack_dyn(); return true; }
if (HX_FIELD_EQ(inName,"callStack") ) { outValue = callStack_dyn(); return true; }
break;
case 14:
if (HX_FIELD_EQ(inName,"exceptionStack") ) { outValue = exceptionStack_dyn(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static ::hx::StorageInfo *NativeStackTrace_obj_sMemberStorageInfo = 0;
static ::hx::StaticInfo *NativeStackTrace_obj_sStaticStorageInfo = 0;
#endif
::hx::Class NativeStackTrace_obj::__mClass;
static ::String NativeStackTrace_obj_sStaticFields[] = {
HX_("saveStack",cb,6e,b8,12),
HX_("callStack",ca,c1,4a,10),
HX_("exceptionStack",79,48,56,0b),
HX_("toHaxe",41,9f,c1,7a),
::String(null())
};
void NativeStackTrace_obj::__register()
{
NativeStackTrace_obj _hx_dummy;
NativeStackTrace_obj::_hx_vtable = *(void **)&_hx_dummy;
::hx::Static(__mClass) = new ::hx::Class_obj();
__mClass->mName = HX_("haxe.NativeStackTrace",fc,db,8f,5d);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &NativeStackTrace_obj::__GetStatic;
__mClass->mSetStaticField = &::hx::Class_obj::SetNoStaticField;
__mClass->mStatics = ::hx::Class_obj::dupFunctions(NativeStackTrace_obj_sStaticFields);
__mClass->mMembers = ::hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = ::hx::TCanCast< NativeStackTrace_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = NativeStackTrace_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = NativeStackTrace_obj_sStaticStorageInfo;
#endif
::hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe

View File

@@ -0,0 +1,92 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_Resource
#include <haxe/Resource.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_9e5f3007daf6fcd8_35_getBytes,"haxe.Resource","getBytes",0x9bc1712d,"haxe.Resource.getBytes","/usr/share/haxe/std/cpp/_std/haxe/Resource.hx",35,0x309b3bab)
namespace haxe{
void Resource_obj::__construct() { }
Dynamic Resource_obj::__CreateEmpty() { return new Resource_obj; }
void *Resource_obj::_hx_vtable = 0;
Dynamic Resource_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Resource_obj > _hx_result = new Resource_obj();
_hx_result->__construct();
return _hx_result;
}
bool Resource_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x75b82b54;
}
::haxe::io::Bytes Resource_obj::getBytes(::String name){
HX_STACKFRAME(&_hx_pos_9e5f3007daf6fcd8_35_getBytes)
HXLINE( 36) ::Array< unsigned char > array = ::__hxcpp_resource_bytes(name);
HXLINE( 37) if (hx::IsNull( array )) {
HXLINE( 38) return null();
}
HXLINE( 39) return ::haxe::io::Bytes_obj::ofData(array);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Resource_obj,getBytes,return )
Resource_obj::Resource_obj()
{
}
bool Resource_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 8:
if (HX_FIELD_EQ(inName,"getBytes") ) { outValue = getBytes_dyn(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *Resource_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *Resource_obj_sStaticStorageInfo = 0;
#endif
hx::Class Resource_obj::__mClass;
static ::String Resource_obj_sStaticFields[] = {
HX_("getBytes",f5,17,6f,1d),
::String(null())
};
void Resource_obj::__register()
{
Resource_obj _hx_dummy;
Resource_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.Resource",36,0e,12,59);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &Resource_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(Resource_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< Resource_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Resource_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Resource_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,116 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_StackItem
#include <haxe/StackItem.h>
#endif
namespace haxe{
::haxe::StackItem StackItem_obj::CFunction;
::haxe::StackItem StackItem_obj::FilePos( ::haxe::StackItem s,::String file,int line, ::Dynamic column)
{
return hx::CreateEnum< StackItem_obj >(HX_("FilePos",58,a4,9d,cc),2,4)->_hx_init(0,s)->_hx_init(1,file)->_hx_init(2,line)->_hx_init(3,column);
}
::haxe::StackItem StackItem_obj::LocalFunction( ::Dynamic v)
{
return hx::CreateEnum< StackItem_obj >(HX_("LocalFunction",83,63,3d,d5),4,1)->_hx_init(0,v);
}
::haxe::StackItem StackItem_obj::Method(::String classname,::String method)
{
return hx::CreateEnum< StackItem_obj >(HX_("Method",01,6b,ef,3d),3,2)->_hx_init(0,classname)->_hx_init(1,method);
}
::haxe::StackItem StackItem_obj::Module(::String m)
{
return hx::CreateEnum< StackItem_obj >(HX_("Module",cc,a8,67,f5),1,1)->_hx_init(0,m);
}
bool StackItem_obj::__GetStatic(const ::String &inName, ::Dynamic &outValue, hx::PropertyAccess inCallProp)
{
if (inName==HX_("CFunction",7b,e2,32,23)) { outValue = StackItem_obj::CFunction; return true; }
if (inName==HX_("FilePos",58,a4,9d,cc)) { outValue = StackItem_obj::FilePos_dyn(); return true; }
if (inName==HX_("LocalFunction",83,63,3d,d5)) { outValue = StackItem_obj::LocalFunction_dyn(); return true; }
if (inName==HX_("Method",01,6b,ef,3d)) { outValue = StackItem_obj::Method_dyn(); return true; }
if (inName==HX_("Module",cc,a8,67,f5)) { outValue = StackItem_obj::Module_dyn(); return true; }
return super::__GetStatic(inName, outValue, inCallProp);
}
HX_DEFINE_CREATE_ENUM(StackItem_obj)
int StackItem_obj::__FindIndex(::String inName)
{
if (inName==HX_("CFunction",7b,e2,32,23)) return 0;
if (inName==HX_("FilePos",58,a4,9d,cc)) return 2;
if (inName==HX_("LocalFunction",83,63,3d,d5)) return 4;
if (inName==HX_("Method",01,6b,ef,3d)) return 3;
if (inName==HX_("Module",cc,a8,67,f5)) return 1;
return super::__FindIndex(inName);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC4(StackItem_obj,FilePos,return)
STATIC_HX_DEFINE_DYNAMIC_FUNC1(StackItem_obj,LocalFunction,return)
STATIC_HX_DEFINE_DYNAMIC_FUNC2(StackItem_obj,Method,return)
STATIC_HX_DEFINE_DYNAMIC_FUNC1(StackItem_obj,Module,return)
int StackItem_obj::__FindArgCount(::String inName)
{
if (inName==HX_("CFunction",7b,e2,32,23)) return 0;
if (inName==HX_("FilePos",58,a4,9d,cc)) return 4;
if (inName==HX_("LocalFunction",83,63,3d,d5)) return 1;
if (inName==HX_("Method",01,6b,ef,3d)) return 2;
if (inName==HX_("Module",cc,a8,67,f5)) return 1;
return super::__FindArgCount(inName);
}
hx::Val StackItem_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
if (inName==HX_("CFunction",7b,e2,32,23)) return CFunction;
if (inName==HX_("FilePos",58,a4,9d,cc)) return FilePos_dyn();
if (inName==HX_("LocalFunction",83,63,3d,d5)) return LocalFunction_dyn();
if (inName==HX_("Method",01,6b,ef,3d)) return Method_dyn();
if (inName==HX_("Module",cc,a8,67,f5)) return Module_dyn();
return super::__Field(inName,inCallProp);
}
static ::String StackItem_obj_sStaticFields[] = {
HX_("CFunction",7b,e2,32,23),
HX_("Module",cc,a8,67,f5),
HX_("FilePos",58,a4,9d,cc),
HX_("Method",01,6b,ef,3d),
HX_("LocalFunction",83,63,3d,d5),
::String(null())
};
hx::Class StackItem_obj::__mClass;
Dynamic __Create_StackItem_obj() { return new StackItem_obj; }
void StackItem_obj::__register()
{
hx::Static(__mClass) = hx::_hx_RegisterClass(HX_("haxe.StackItem",13,26,c7,2d), hx::TCanCast< StackItem_obj >,StackItem_obj_sStaticFields,0,
&__Create_StackItem_obj, &__Create,
&super::__SGetClass(), &CreateStackItem_obj, 0
#ifdef HXCPP_VISIT_ALLOCS
, 0
#endif
#ifdef HXCPP_SCRIPTABLE
, 0
#endif
);
__mClass->mGetStaticField = &StackItem_obj::__GetStatic;
}
void StackItem_obj::__boot()
{
CFunction = hx::CreateConstEnum< StackItem_obj >(HX_("CFunction",7b,e2,32,23),0);
}
} // end namespace haxe

View File

@@ -0,0 +1,439 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_EReg
#include <EReg.h>
#endif
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_StringBuf
#include <StringBuf.h>
#endif
#ifndef INCLUDED_StringTools
#include <StringTools.h>
#endif
#ifndef INCLUDED_haxe_SysTools
#include <haxe/SysTools.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_63558c8e1f72d6c3_18_quoteUnixArg,"haxe.SysTools","quoteUnixArg",0xb3a0810a,"haxe.SysTools.quoteUnixArg","/usr/share/haxe/std/haxe/SysTools.hx",18,0x9dcfbea2)
HX_LOCAL_STACK_FRAME(_hx_pos_63558c8e1f72d6c3_46_quoteWinArg,"haxe.SysTools","quoteWinArg",0x08e9f6be,"haxe.SysTools.quoteWinArg","/usr/share/haxe/std/haxe/SysTools.hx",46,0x9dcfbea2)
static const ::String _hx_array_data_42269736_5[] = {
HX_("\"",22,00,00,00),
};
static const ::String _hx_array_data_42269736_6[] = {
HX_("\\\"",46,50,00,00),
};
static const ::String _hx_array_data_42269736_7[] = {
HX_("\\",5c,00,00,00),
};
static const ::String _hx_array_data_42269736_8[] = {
HX_("\"",22,00,00,00),
};
HX_LOCAL_STACK_FRAME(_hx_pos_63558c8e1f72d6c3_9_boot,"haxe.SysTools","boot",0x6c65b86a,"haxe.SysTools.boot","/usr/share/haxe/std/haxe/SysTools.hx",9,0x9dcfbea2)
static const int _hx_array_data_42269736_10[] = {
(int)32,(int)40,(int)41,(int)37,(int)33,(int)94,(int)34,(int)60,(int)62,(int)38,(int)124,(int)10,(int)13,(int)44,(int)59,
};
namespace haxe{
void SysTools_obj::__construct() { }
Dynamic SysTools_obj::__CreateEmpty() { return new SysTools_obj; }
void *SysTools_obj::_hx_vtable = 0;
Dynamic SysTools_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< SysTools_obj > _hx_result = new SysTools_obj();
_hx_result->__construct();
return _hx_result;
}
bool SysTools_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x5eccb454;
}
::Array< int > SysTools_obj::winMetaCharacters;
::String SysTools_obj::quoteUnixArg(::String argument){
HX_GC_STACKFRAME(&_hx_pos_63558c8e1f72d6c3_18_quoteUnixArg)
HXLINE( 22) if ((argument == HX_("",00,00,00,00))) {
HXLINE( 23) return HX_("''",20,22,00,00);
}
HXLINE( 25) if (!( ::EReg_obj::__alloc( HX_CTX ,HX_("[^a-zA-Z0-9_@%+=:,./-]",80,28,a0,8d),HX_("",00,00,00,00))->match(argument))) {
HXLINE( 26) return argument;
}
HXLINE( 30) return ((HX_("'",27,00,00,00) + ::StringTools_obj::replace(argument,HX_("'",27,00,00,00),HX_("'\"'\"'",71,96,37,8b))) + HX_("'",27,00,00,00));
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(SysTools_obj,quoteUnixArg,return )
::String SysTools_obj::quoteWinArg(::String argument,bool escapeMetaCharacters){
HX_GC_STACKFRAME(&_hx_pos_63558c8e1f72d6c3_46_quoteWinArg)
HXLINE( 48) if (!( ::EReg_obj::__alloc( HX_CTX ,HX_("^[^ \t\\\\\"]+$",fe,85,ca,95),HX_("",00,00,00,00))->match(argument))) {
HXLINE( 52) ::StringBuf result = ::StringBuf_obj::__alloc( HX_CTX );
HXLINE( 53) bool needquote;
HXDLIN( 53) bool needquote1;
HXDLIN( 53) if ((argument.indexOf(HX_(" ",20,00,00,00),null()) == -1)) {
HXLINE( 53) needquote1 = (argument.indexOf(HX_("\t",09,00,00,00),null()) != -1);
}
else {
HXLINE( 53) needquote1 = true;
}
HXDLIN( 53) if (!(needquote1)) {
HXLINE( 53) needquote = (argument == HX_("",00,00,00,00));
}
else {
HXLINE( 53) needquote = true;
}
HXLINE( 55) if (needquote) {
HXLINE( 56) if (hx::IsNotNull( result->charBuf )) {
HXLINE( 56) result->flush();
}
HXDLIN( 56) if (hx::IsNull( result->b )) {
HXLINE( 56) result->b = ::Array_obj< ::String >::fromData( _hx_array_data_42269736_5,1);
}
else {
HXLINE( 56) result->b->push(HX_("\"",22,00,00,00));
}
}
HXLINE( 58) ::StringBuf bs_buf = ::StringBuf_obj::__alloc( HX_CTX );
HXLINE( 59) {
HXLINE( 59) int _g = 0;
HXDLIN( 59) int _g1 = argument.length;
HXDLIN( 59) while((_g < _g1)){
HXLINE( 59) _g = (_g + 1);
HXDLIN( 59) int i = (_g - 1);
HXLINE( 60) {
HXLINE( 60) ::Dynamic _g2 = argument.charCodeAt(i);
HXDLIN( 60) if (hx::IsNull( _g2 )) {
HXLINE( 71) ::Dynamic c = _g2;
HXDLIN( 71) {
HXLINE( 73) if ((bs_buf->get_length() > 0)) {
HXLINE( 74) {
HXLINE( 74) ::String x = bs_buf->toString();
HXDLIN( 74) if (hx::IsNotNull( result->charBuf )) {
HXLINE( 74) result->flush();
}
HXDLIN( 74) if (hx::IsNull( result->b )) {
HXLINE( 74) result->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(x));
}
else {
HXLINE( 74) ::Array< ::String > result1 = result->b;
HXDLIN( 74) result1->push(::Std_obj::string(x));
}
}
HXLINE( 75) bs_buf = ::StringBuf_obj::__alloc( HX_CTX );
}
HXLINE( 77) {
HXLINE( 77) int c1 = ( (int)(c) );
HXDLIN( 77) if ((c1 >= 127)) {
HXLINE( 77) ::String x1 = ::String::fromCharCode(c1);
HXDLIN( 77) if (hx::IsNotNull( result->charBuf )) {
HXLINE( 77) result->flush();
}
HXDLIN( 77) if (hx::IsNull( result->b )) {
HXLINE( 77) result->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(x1));
}
else {
HXLINE( 77) ::Array< ::String > result2 = result->b;
HXDLIN( 77) result2->push(::Std_obj::string(x1));
}
}
else {
HXLINE( 77) if (hx::IsNull( result->charBuf )) {
HXLINE( 77) result->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 77) result->charBuf->push(c1);
}
}
}
}
else {
HXLINE( 60) ::Dynamic _hx_switch_0 = _g2;
if ( (_hx_switch_0==34) ){
HXLINE( 66) ::String bs = bs_buf->toString();
HXLINE( 67) {
HXLINE( 67) if (hx::IsNotNull( result->charBuf )) {
HXLINE( 67) result->flush();
}
HXDLIN( 67) if (hx::IsNull( result->b )) {
HXLINE( 67) result->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(bs));
}
else {
HXLINE( 67) ::Array< ::String > result3 = result->b;
HXDLIN( 67) result3->push(::Std_obj::string(bs));
}
}
HXLINE( 68) {
HXLINE( 68) if (hx::IsNotNull( result->charBuf )) {
HXLINE( 68) result->flush();
}
HXDLIN( 68) if (hx::IsNull( result->b )) {
HXLINE( 68) result->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(bs));
}
else {
HXLINE( 68) ::Array< ::String > result4 = result->b;
HXDLIN( 68) result4->push(::Std_obj::string(bs));
}
}
HXLINE( 69) bs_buf = ::StringBuf_obj::__alloc( HX_CTX );
HXLINE( 70) {
HXLINE( 70) if (hx::IsNotNull( result->charBuf )) {
HXLINE( 70) result->flush();
}
HXDLIN( 70) if (hx::IsNull( result->b )) {
HXLINE( 70) result->b = ::Array_obj< ::String >::fromData( _hx_array_data_42269736_6,1);
}
else {
HXLINE( 70) result->b->push(HX_("\\\"",46,50,00,00));
}
}
HXLINE( 64) goto _hx_goto_2;
}
if ( (_hx_switch_0==92) ){
HXLINE( 63) if (hx::IsNotNull( bs_buf->charBuf )) {
HXLINE( 63) bs_buf->flush();
}
HXDLIN( 63) if (hx::IsNull( bs_buf->b )) {
HXLINE( 63) bs_buf->b = ::Array_obj< ::String >::fromData( _hx_array_data_42269736_7,1);
}
else {
HXLINE( 63) bs_buf->b->push(HX_("\\",5c,00,00,00));
}
HXDLIN( 63) goto _hx_goto_2;
}
/* default */{
HXLINE( 71) ::Dynamic c2 = _g2;
HXDLIN( 71) {
HXLINE( 73) if ((bs_buf->get_length() > 0)) {
HXLINE( 74) {
HXLINE( 74) ::String x2 = bs_buf->toString();
HXDLIN( 74) if (hx::IsNotNull( result->charBuf )) {
HXLINE( 74) result->flush();
}
HXDLIN( 74) if (hx::IsNull( result->b )) {
HXLINE( 74) result->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(x2));
}
else {
HXLINE( 74) ::Array< ::String > result5 = result->b;
HXDLIN( 74) result5->push(::Std_obj::string(x2));
}
}
HXLINE( 75) bs_buf = ::StringBuf_obj::__alloc( HX_CTX );
}
HXLINE( 77) {
HXLINE( 77) int c3 = ( (int)(c2) );
HXDLIN( 77) if ((c3 >= 127)) {
HXLINE( 77) ::String x3 = ::String::fromCharCode(c3);
HXDLIN( 77) if (hx::IsNotNull( result->charBuf )) {
HXLINE( 77) result->flush();
}
HXDLIN( 77) if (hx::IsNull( result->b )) {
HXLINE( 77) result->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(x3));
}
else {
HXLINE( 77) ::Array< ::String > result6 = result->b;
HXDLIN( 77) result6->push(::Std_obj::string(x3));
}
}
else {
HXLINE( 77) if (hx::IsNull( result->charBuf )) {
HXLINE( 77) result->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 77) result->charBuf->push(c3);
}
}
}
}
_hx_goto_2:;
}
}
}
}
HXLINE( 82) {
HXLINE( 82) ::String x4 = bs_buf->toString();
HXDLIN( 82) if (hx::IsNotNull( result->charBuf )) {
HXLINE( 82) result->flush();
}
HXDLIN( 82) if (hx::IsNull( result->b )) {
HXLINE( 82) result->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(x4));
}
else {
HXLINE( 82) ::Array< ::String > result7 = result->b;
HXDLIN( 82) result7->push(::Std_obj::string(x4));
}
}
HXLINE( 84) if (needquote) {
HXLINE( 85) {
HXLINE( 85) ::String x5 = bs_buf->toString();
HXDLIN( 85) if (hx::IsNotNull( result->charBuf )) {
HXLINE( 85) result->flush();
}
HXDLIN( 85) if (hx::IsNull( result->b )) {
HXLINE( 85) result->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(x5));
}
else {
HXLINE( 85) ::Array< ::String > result8 = result->b;
HXDLIN( 85) result8->push(::Std_obj::string(x5));
}
}
HXLINE( 86) {
HXLINE( 86) if (hx::IsNotNull( result->charBuf )) {
HXLINE( 86) result->flush();
}
HXDLIN( 86) if (hx::IsNull( result->b )) {
HXLINE( 86) result->b = ::Array_obj< ::String >::fromData( _hx_array_data_42269736_8,1);
}
else {
HXLINE( 86) result->b->push(HX_("\"",22,00,00,00));
}
}
}
HXLINE( 89) argument = result->toString();
}
HXLINE( 92) if (escapeMetaCharacters) {
HXLINE( 93) ::StringBuf result9 = ::StringBuf_obj::__alloc( HX_CTX );
HXLINE( 94) {
HXLINE( 94) int _g3 = 0;
HXDLIN( 94) int _g11 = argument.length;
HXDLIN( 94) while((_g3 < _g11)){
HXLINE( 94) _g3 = (_g3 + 1);
HXDLIN( 94) int i1 = (_g3 - 1);
HXLINE( 95) ::Dynamic c4 = argument.charCodeAt(i1);
HXLINE( 96) if ((::haxe::SysTools_obj::winMetaCharacters->indexOf(c4,null()) >= 0)) {
HXLINE( 97) if (hx::IsNull( result9->charBuf )) {
HXLINE( 97) result9->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 97) result9->charBuf->push(94);
}
HXLINE( 99) {
HXLINE( 99) int c5 = ( (int)(c4) );
HXDLIN( 99) if ((c5 >= 127)) {
HXLINE( 99) ::String x6 = ::String::fromCharCode(c5);
HXDLIN( 99) if (hx::IsNotNull( result9->charBuf )) {
HXLINE( 99) result9->flush();
}
HXDLIN( 99) if (hx::IsNull( result9->b )) {
HXLINE( 99) result9->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(x6));
}
else {
HXLINE( 99) ::Array< ::String > result10 = result9->b;
HXDLIN( 99) result10->push(::Std_obj::string(x6));
}
}
else {
HXLINE( 99) if (hx::IsNull( result9->charBuf )) {
HXLINE( 99) result9->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 99) result9->charBuf->push(c5);
}
}
}
}
HXLINE( 101) return result9->toString();
}
else {
HXLINE( 103) return argument;
}
HXLINE( 92) return null();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(SysTools_obj,quoteWinArg,return )
SysTools_obj::SysTools_obj()
{
}
bool SysTools_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 11:
if (HX_FIELD_EQ(inName,"quoteWinArg") ) { outValue = quoteWinArg_dyn(); return true; }
break;
case 12:
if (HX_FIELD_EQ(inName,"quoteUnixArg") ) { outValue = quoteUnixArg_dyn(); return true; }
break;
case 17:
if (HX_FIELD_EQ(inName,"winMetaCharacters") ) { outValue = ( winMetaCharacters ); return true; }
}
return false;
}
bool SysTools_obj::__SetStatic(const ::String &inName,Dynamic &ioValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 17:
if (HX_FIELD_EQ(inName,"winMetaCharacters") ) { winMetaCharacters=ioValue.Cast< ::Array< int > >(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *SysTools_obj_sMemberStorageInfo = 0;
static hx::StaticInfo SysTools_obj_sStaticStorageInfo[] = {
{hx::fsObject /* ::Array< int > */ ,(void *) &SysTools_obj::winMetaCharacters,HX_("winMetaCharacters",0b,65,cd,94)},
{ hx::fsUnknown, 0, null()}
};
#endif
static void SysTools_obj_sMarkStatics(HX_MARK_PARAMS) {
HX_MARK_MEMBER_NAME(SysTools_obj::winMetaCharacters,"winMetaCharacters");
};
#ifdef HXCPP_VISIT_ALLOCS
static void SysTools_obj_sVisitStatics(HX_VISIT_PARAMS) {
HX_VISIT_MEMBER_NAME(SysTools_obj::winMetaCharacters,"winMetaCharacters");
};
#endif
hx::Class SysTools_obj::__mClass;
static ::String SysTools_obj_sStaticFields[] = {
HX_("winMetaCharacters",0b,65,cd,94),
HX_("quoteUnixArg",d2,54,33,00),
HX_("quoteWinArg",f6,b3,bc,14),
::String(null())
};
void SysTools_obj::__register()
{
SysTools_obj _hx_dummy;
SysTools_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.SysTools",36,97,26,42);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &SysTools_obj::__GetStatic;
__mClass->mSetStaticField = &SysTools_obj::__SetStatic;
__mClass->mMarkFunc = SysTools_obj_sMarkStatics;
__mClass->mStatics = hx::Class_obj::dupFunctions(SysTools_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< SysTools_obj >;
#ifdef HXCPP_VISIT_ALLOCS
__mClass->mVisitFunc = SysTools_obj_sVisitStatics;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = SysTools_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = SysTools_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
void SysTools_obj::__boot()
{
{
HX_STACKFRAME(&_hx_pos_63558c8e1f72d6c3_9_boot)
HXDLIN( 9) winMetaCharacters = ::Array_obj< int >::fromData( _hx_array_data_42269736_10,15);
}
}
} // end namespace haxe

View File

@@ -0,0 +1,343 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_Log
#include <haxe/Log.h>
#endif
#ifndef INCLUDED_haxe_Timer
#include <haxe/Timer.h>
#endif
#ifndef INCLUDED_lime_system_System
#include <lime/system/System.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_102f69689d37b2bb_230_new,"haxe.Timer","new",0x4136b0cf,"haxe.Timer.new","haxe/Timer.hx",230,0x1a690682)
HX_LOCAL_STACK_FRAME(_hx_pos_102f69689d37b2bb_263___default_run,"haxe.Timer","__default_run",0xdc2b9b9c,"haxe.Timer.__default_run","haxe/Timer.hx",263,0x1a690682)
HX_LOCAL_STACK_FRAME(_hx_pos_102f69689d37b2bb_273_stop,"haxe.Timer","stop",0xd1fd70b3,"haxe.Timer.stop","haxe/Timer.hx",273,0x1a690682)
HX_LOCAL_STACK_FRAME(_hx_pos_102f69689d37b2bb_290___check,"haxe.Timer","__check",0xb5623597,"haxe.Timer.__check","haxe/Timer.hx",290,0x1a690682)
HX_LOCAL_STACK_FRAME(_hx_pos_102f69689d37b2bb_242_delay,"haxe.Timer","delay",0x3ed5f1b2,"haxe.Timer.delay","haxe/Timer.hx",242,0x1a690682)
HX_LOCAL_STACK_FRAME(_hx_pos_102f69689d37b2bb_238_delay,"haxe.Timer","delay",0x3ed5f1b2,"haxe.Timer.delay","haxe/Timer.hx",238,0x1a690682)
HX_LOCAL_STACK_FRAME(_hx_pos_102f69689d37b2bb_252_getMS,"haxe.Timer","getMS",0xf90fafab,"haxe.Timer.getMS","haxe/Timer.hx",252,0x1a690682)
HX_LOCAL_STACK_FRAME(_hx_pos_102f69689d37b2bb_256_measure,"haxe.Timer","measure",0x42373f4d,"haxe.Timer.measure","haxe/Timer.hx",256,0x1a690682)
HX_LOCAL_STACK_FRAME(_hx_pos_102f69689d37b2bb_266_stamp,"haxe.Timer","stamp",0xebba8a32,"haxe.Timer.stamp","haxe/Timer.hx",266,0x1a690682)
HX_LOCAL_STACK_FRAME(_hx_pos_102f69689d37b2bb_223_boot,"haxe.Timer","boot",0xc6bd04e3,"haxe.Timer.boot","haxe/Timer.hx",223,0x1a690682)
namespace haxe{
void Timer_obj::__construct(Float time){
HX_STACKFRAME(&_hx_pos_102f69689d37b2bb_230_new)
HXLINE( 231) this->mTime = time;
HXLINE( 232) ::haxe::Timer_obj::sRunningTimers->push(hx::ObjectPtr<OBJ_>(this));
HXLINE( 233) Float _hx_tmp = ::haxe::Timer_obj::getMS();
HXDLIN( 233) this->mFireAt = (_hx_tmp + this->mTime);
HXLINE( 234) this->mRunning = true;
}
Dynamic Timer_obj::__CreateEmpty() { return new Timer_obj; }
void *Timer_obj::_hx_vtable = 0;
Dynamic Timer_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Timer_obj > _hx_result = new Timer_obj();
_hx_result->__construct(inArgs[0]);
return _hx_result;
}
bool Timer_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x4623e5b7;
}
HX_BEGIN_DEFAULT_FUNC(__default_run,Timer_obj)
void _hx_run(){
HX_STACKFRAME(&_hx_pos_102f69689d37b2bb_263___default_run)
}
HX_END_LOCAL_FUNC0((void))
HX_END_DEFAULT_FUNC
void Timer_obj::stop(){
HX_STACKFRAME(&_hx_pos_102f69689d37b2bb_273_stop)
HXDLIN( 273) if (this->mRunning) {
HXLINE( 275) this->mRunning = false;
HXLINE( 277) {
HXLINE( 277) int _g = 0;
HXDLIN( 277) int _g1 = ::haxe::Timer_obj::sRunningTimers->length;
HXDLIN( 277) while((_g < _g1)){
HXLINE( 277) _g = (_g + 1);
HXDLIN( 277) int i = (_g - 1);
HXLINE( 279) if (hx::IsEq( ::haxe::Timer_obj::sRunningTimers->__get(i).StaticCast< ::haxe::Timer >(),hx::ObjectPtr<OBJ_>(this) )) {
HXLINE( 281) ::haxe::Timer_obj::sRunningTimers[i] = null();
HXLINE( 282) goto _hx_goto_2;
}
}
_hx_goto_2:;
}
}
}
HX_DEFINE_DYNAMIC_FUNC0(Timer_obj,stop,(void))
void Timer_obj::_hx___check(Float inTime){
HX_STACKFRAME(&_hx_pos_102f69689d37b2bb_290___check)
HXDLIN( 290) if ((inTime >= this->mFireAt)) {
HXLINE( 292) ::haxe::Timer _hx_tmp = hx::ObjectPtr<OBJ_>(this);
HXDLIN( 292) _hx_tmp->mFireAt = (_hx_tmp->mFireAt + this->mTime);
HXLINE( 293) this->run();
}
}
HX_DEFINE_DYNAMIC_FUNC1(Timer_obj,_hx___check,(void))
::Array< ::Dynamic> Timer_obj::sRunningTimers;
::haxe::Timer Timer_obj::delay( ::Dynamic f,int time){
HX_BEGIN_LOCAL_FUNC_S2(hx::LocalFunc,_hx_Closure_0, ::Dynamic,f, ::haxe::Timer,t) HXARGC(0)
void _hx_run(){
HX_GC_STACKFRAME(&_hx_pos_102f69689d37b2bb_242_delay)
HXLINE( 243) t->stop();
HXLINE( 244) f();
}
HX_END_LOCAL_FUNC0((void))
HX_GC_STACKFRAME(&_hx_pos_102f69689d37b2bb_238_delay)
HXLINE( 239) ::haxe::Timer t = ::haxe::Timer_obj::__alloc( HX_CTX ,( (Float)(time) ));
HXLINE( 241) t->run = ::Dynamic(new _hx_Closure_0(f,t));
HXLINE( 247) return t;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(Timer_obj,delay,return )
Float Timer_obj::getMS(){
HX_STACKFRAME(&_hx_pos_102f69689d37b2bb_252_getMS)
HXDLIN( 252) return ( (Float)(::lime::_hx_system::System_obj::getTimer()) );
}
STATIC_HX_DEFINE_DYNAMIC_FUNC0(Timer_obj,getMS,return )
::Dynamic Timer_obj::measure( ::Dynamic f, ::Dynamic pos){
HX_STACKFRAME(&_hx_pos_102f69689d37b2bb_256_measure)
HXLINE( 257) int timer = ::lime::_hx_system::System_obj::getTimer();
HXDLIN( 257) Float t0;
HXDLIN( 257) if ((timer > 0)) {
HXLINE( 257) t0 = (( (Float)(timer) ) / ( (Float)(1000) ));
}
else {
HXLINE( 257) t0 = ( (Float)(0) );
}
HXLINE( 258) ::Dynamic r = f();
HXLINE( 259) ::Dynamic _hx_tmp = ::haxe::Log_obj::trace;
HXDLIN( 259) int timer1 = ::lime::_hx_system::System_obj::getTimer();
HXDLIN( 259) Float _hx_tmp1;
HXDLIN( 259) if ((timer1 > 0)) {
HXLINE( 259) _hx_tmp1 = (( (Float)(timer1) ) / ( (Float)(1000) ));
}
else {
HXLINE( 259) _hx_tmp1 = ( (Float)(0) );
}
HXDLIN( 259) _hx_tmp(((_hx_tmp1 - t0) + HX_("s",73,00,00,00)),pos);
HXLINE( 260) return r;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(Timer_obj,measure,return )
Float Timer_obj::stamp(){
HX_STACKFRAME(&_hx_pos_102f69689d37b2bb_266_stamp)
HXLINE( 267) int timer = ::lime::_hx_system::System_obj::getTimer();
HXLINE( 268) if ((timer > 0)) {
HXLINE( 268) return (( (Float)(timer) ) / ( (Float)(1000) ));
}
else {
HXLINE( 268) return ( (Float)(0) );
}
HXDLIN( 268) return ((Float)0.);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC0(Timer_obj,stamp,return )
void Timer_obj::__alloc_dynamic_functions(hx::Ctx *_hx_ctx,Timer_obj *_hx_obj) {
if (!_hx_obj->run.mPtr) _hx_obj->run = new __default_run(_hx_obj);
}
Timer_obj::Timer_obj()
{
run = new __default_run(this);
}
void Timer_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(Timer);
HX_MARK_MEMBER_NAME(mTime,"mTime");
HX_MARK_MEMBER_NAME(mFireAt,"mFireAt");
HX_MARK_MEMBER_NAME(mRunning,"mRunning");
HX_MARK_MEMBER_NAME(run,"run");
HX_MARK_END_CLASS();
}
void Timer_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(mTime,"mTime");
HX_VISIT_MEMBER_NAME(mFireAt,"mFireAt");
HX_VISIT_MEMBER_NAME(mRunning,"mRunning");
HX_VISIT_MEMBER_NAME(run,"run");
}
hx::Val Timer_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 3:
if (HX_FIELD_EQ(inName,"run") ) { return hx::Val( run ); }
break;
case 4:
if (HX_FIELD_EQ(inName,"stop") ) { return hx::Val( stop_dyn() ); }
break;
case 5:
if (HX_FIELD_EQ(inName,"mTime") ) { return hx::Val( mTime ); }
break;
case 7:
if (HX_FIELD_EQ(inName,"mFireAt") ) { return hx::Val( mFireAt ); }
if (HX_FIELD_EQ(inName,"__check") ) { return hx::Val( _hx___check_dyn() ); }
break;
case 8:
if (HX_FIELD_EQ(inName,"mRunning") ) { return hx::Val( mRunning ); }
}
return super::__Field(inName,inCallProp);
}
bool Timer_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 5:
if (HX_FIELD_EQ(inName,"delay") ) { outValue = delay_dyn(); return true; }
if (HX_FIELD_EQ(inName,"getMS") ) { outValue = getMS_dyn(); return true; }
if (HX_FIELD_EQ(inName,"stamp") ) { outValue = stamp_dyn(); return true; }
break;
case 7:
if (HX_FIELD_EQ(inName,"measure") ) { outValue = measure_dyn(); return true; }
break;
case 14:
if (HX_FIELD_EQ(inName,"sRunningTimers") ) { outValue = ( sRunningTimers ); return true; }
}
return false;
}
hx::Val Timer_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 3:
if (HX_FIELD_EQ(inName,"run") ) { run=inValue.Cast< ::Dynamic >(); return inValue; }
break;
case 5:
if (HX_FIELD_EQ(inName,"mTime") ) { mTime=inValue.Cast< Float >(); return inValue; }
break;
case 7:
if (HX_FIELD_EQ(inName,"mFireAt") ) { mFireAt=inValue.Cast< Float >(); return inValue; }
break;
case 8:
if (HX_FIELD_EQ(inName,"mRunning") ) { mRunning=inValue.Cast< bool >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
bool Timer_obj::__SetStatic(const ::String &inName,Dynamic &ioValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 14:
if (HX_FIELD_EQ(inName,"sRunningTimers") ) { sRunningTimers=ioValue.Cast< ::Array< ::Dynamic> >(); return true; }
}
return false;
}
void Timer_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("mTime",1a,33,83,fa));
outFields->push(HX_("mFireAt",96,ea,58,72));
outFields->push(HX_("mRunning",12,2d,35,13));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo Timer_obj_sMemberStorageInfo[] = {
{hx::fsFloat,(int)offsetof(Timer_obj,mTime),HX_("mTime",1a,33,83,fa)},
{hx::fsFloat,(int)offsetof(Timer_obj,mFireAt),HX_("mFireAt",96,ea,58,72)},
{hx::fsBool,(int)offsetof(Timer_obj,mRunning),HX_("mRunning",12,2d,35,13)},
{hx::fsObject /* ::Dynamic */ ,(int)offsetof(Timer_obj,run),HX_("run",4b,e7,56,00)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo Timer_obj_sStaticStorageInfo[] = {
{hx::fsObject /* ::Array< ::Dynamic> */ ,(void *) &Timer_obj::sRunningTimers,HX_("sRunningTimers",fa,bb,cd,fe)},
{ hx::fsUnknown, 0, null()}
};
#endif
static ::String Timer_obj_sMemberFields[] = {
HX_("mTime",1a,33,83,fa),
HX_("mFireAt",96,ea,58,72),
HX_("mRunning",12,2d,35,13),
HX_("run",4b,e7,56,00),
HX_("stop",02,f0,5b,4c),
HX_("__check",a8,f1,14,b0),
::String(null()) };
static void Timer_obj_sMarkStatics(HX_MARK_PARAMS) {
HX_MARK_MEMBER_NAME(Timer_obj::sRunningTimers,"sRunningTimers");
};
#ifdef HXCPP_VISIT_ALLOCS
static void Timer_obj_sVisitStatics(HX_VISIT_PARAMS) {
HX_VISIT_MEMBER_NAME(Timer_obj::sRunningTimers,"sRunningTimers");
};
#endif
hx::Class Timer_obj::__mClass;
static ::String Timer_obj_sStaticFields[] = {
HX_("sRunningTimers",fa,bb,cd,fe),
HX_("delay",83,d7,26,d7),
HX_("getMS",7c,95,60,91),
HX_("measure",5e,fb,e9,3c),
HX_("stamp",03,70,0b,84),
::String(null())
};
void Timer_obj::__register()
{
Timer_obj _hx_dummy;
Timer_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.Timer",5d,9d,24,4b);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &Timer_obj::__GetStatic;
__mClass->mSetStaticField = &Timer_obj::__SetStatic;
__mClass->mMarkFunc = Timer_obj_sMarkStatics;
__mClass->mStatics = hx::Class_obj::dupFunctions(Timer_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(Timer_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< Timer_obj >;
#ifdef HXCPP_VISIT_ALLOCS
__mClass->mVisitFunc = Timer_obj_sVisitStatics;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Timer_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Timer_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
void Timer_obj::__boot()
{
{
HX_STACKFRAME(&_hx_pos_102f69689d37b2bb_223_boot)
HXDLIN( 223) sRunningTimers = ::Array_obj< ::Dynamic>::__new(0);
}
}
} // end namespace haxe

View File

@@ -0,0 +1,904 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_95f339a1d026d52c
#define INCLUDED_95f339a1d026d52c
#include "hxMath.h"
#endif
#ifndef INCLUDED_Date
#include <Date.h>
#endif
#ifndef INCLUDED_Reflect
#include <Reflect.h>
#endif
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_StringTools
#include <StringTools.h>
#endif
#ifndef INCLUDED_Type
#include <Type.h>
#endif
#ifndef INCLUDED_haxe_IMap
#include <haxe/IMap.h>
#endif
#ifndef INCLUDED_haxe_Unserializer
#include <haxe/Unserializer.h>
#endif
#ifndef INCLUDED_haxe__Unserializer_DefaultResolver
#include <haxe/_Unserializer/DefaultResolver.h>
#endif
#ifndef INCLUDED_haxe_ds_IntMap
#include <haxe/ds/IntMap.h>
#endif
#ifndef INCLUDED_haxe_ds_List
#include <haxe/ds/List.h>
#endif
#ifndef INCLUDED_haxe_ds_ObjectMap
#include <haxe/ds/ObjectMap.h>
#endif
#ifndef INCLUDED_haxe_ds_StringMap
#include <haxe/ds/StringMap.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_f38f574a287e682f_99_new,"haxe.Unserializer","new",0xa8f5e205,"haxe.Unserializer.new","/usr/share/haxe/std/haxe/Unserializer.hx",99,0x4786e765)
HX_LOCAL_STACK_FRAME(_hx_pos_f38f574a287e682f_144_readDigits,"haxe.Unserializer","readDigits",0x75598b17,"haxe.Unserializer.readDigits","/usr/share/haxe/std/haxe/Unserializer.hx",144,0x4786e765)
HX_LOCAL_STACK_FRAME(_hx_pos_f38f574a287e682f_169_readFloat,"haxe.Unserializer","readFloat",0x5bd86dcb,"haxe.Unserializer.readFloat","/usr/share/haxe/std/haxe/Unserializer.hx",169,0x4786e765)
HX_LOCAL_STACK_FRAME(_hx_pos_f38f574a287e682f_184_unserializeObject,"haxe.Unserializer","unserializeObject",0x1b3e66eb,"haxe.Unserializer.unserializeObject","/usr/share/haxe/std/haxe/Unserializer.hx",184,0x4786e765)
HX_LOCAL_STACK_FRAME(_hx_pos_f38f574a287e682f_199_unserializeEnum,"haxe.Unserializer","unserializeEnum",0x5018b02d,"haxe.Unserializer.unserializeEnum","/usr/share/haxe/std/haxe/Unserializer.hx",199,0x4786e765)
HX_LOCAL_STACK_FRAME(_hx_pos_f38f574a287e682f_231_unserialize,"haxe.Unserializer","unserialize",0x92cca30c,"haxe.Unserializer.unserialize","/usr/share/haxe/std/haxe/Unserializer.hx",231,0x4786e765)
HX_LOCAL_STACK_FRAME(_hx_pos_f38f574a287e682f_72_initCodes,"haxe.Unserializer","initCodes",0xee42ccdb,"haxe.Unserializer.initCodes","/usr/share/haxe/std/haxe/Unserializer.hx",72,0x4786e765)
HX_LOCAL_STACK_FRAME(_hx_pos_f38f574a287e682f_465_run,"haxe.Unserializer","run",0xa8f8f8f0,"haxe.Unserializer.run","/usr/share/haxe/std/haxe/Unserializer.hx",465,0x4786e765)
HX_LOCAL_STACK_FRAME(_hx_pos_f38f574a287e682f_65_boot,"haxe.Unserializer","boot",0x2648e2ed,"haxe.Unserializer.boot","/usr/share/haxe/std/haxe/Unserializer.hx",65,0x4786e765)
HX_LOCAL_STACK_FRAME(_hx_pos_f38f574a287e682f_67_boot,"haxe.Unserializer","boot",0x2648e2ed,"haxe.Unserializer.boot","/usr/share/haxe/std/haxe/Unserializer.hx",67,0x4786e765)
HX_LOCAL_STACK_FRAME(_hx_pos_f38f574a287e682f_70_boot,"haxe.Unserializer","boot",0x2648e2ed,"haxe.Unserializer.boot","/usr/share/haxe/std/haxe/Unserializer.hx",70,0x4786e765)
namespace haxe{
void Unserializer_obj::__construct(::String buf){
HX_GC_STACKFRAME(&_hx_pos_f38f574a287e682f_99_new)
HXLINE( 100) this->buf = buf;
HXLINE( 101) this->length = buf.length;
HXLINE( 102) this->pos = 0;
HXLINE( 106) this->scache = ::Array_obj< ::String >::__new();
HXLINE( 107) this->cache = ::cpp::VirtualArray_obj::__new();
HXLINE( 108) ::Dynamic r = ::haxe::Unserializer_obj::DEFAULT_RESOLVER;
HXLINE( 109) if (hx::IsNull( r )) {
HXLINE( 110) r = ::haxe::_Unserializer::DefaultResolver_obj::__alloc( HX_CTX );
HXLINE( 111) ::haxe::Unserializer_obj::DEFAULT_RESOLVER = r;
}
HXLINE( 113) this->resolver = r;
}
Dynamic Unserializer_obj::__CreateEmpty() { return new Unserializer_obj; }
void *Unserializer_obj::_hx_vtable = 0;
Dynamic Unserializer_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Unserializer_obj > _hx_result = new Unserializer_obj();
_hx_result->__construct(inArgs[0]);
return _hx_result;
}
bool Unserializer_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x7af2b435;
}
int Unserializer_obj::readDigits(){
HX_STACKFRAME(&_hx_pos_f38f574a287e682f_144_readDigits)
HXLINE( 145) int k = 0;
HXLINE( 146) bool s = false;
HXLINE( 147) int fpos = this->pos;
HXLINE( 148) while(true){
HXLINE( 149) int c = this->buf.cca(this->pos);
HXLINE( 150) if ((c == 0)) {
HXLINE( 151) goto _hx_goto_1;
}
HXLINE( 152) if ((c == 45)) {
HXLINE( 153) if ((this->pos != fpos)) {
HXLINE( 154) goto _hx_goto_1;
}
HXLINE( 155) s = true;
HXLINE( 156) this->pos++;
HXLINE( 157) continue;
}
HXLINE( 159) bool _hx_tmp;
HXDLIN( 159) if ((c >= 48)) {
HXLINE( 159) _hx_tmp = (c > 57);
}
else {
HXLINE( 159) _hx_tmp = true;
}
HXDLIN( 159) if (_hx_tmp) {
HXLINE( 160) goto _hx_goto_1;
}
HXLINE( 161) k = ((k * 10) + (c - 48));
HXLINE( 162) this->pos++;
}
_hx_goto_1:;
HXLINE( 164) if (s) {
HXLINE( 165) k = (k * -1);
}
HXLINE( 166) return k;
}
HX_DEFINE_DYNAMIC_FUNC0(Unserializer_obj,readDigits,return )
Float Unserializer_obj::readFloat(){
HX_STACKFRAME(&_hx_pos_f38f574a287e682f_169_readFloat)
HXLINE( 170) int p1 = this->pos;
HXLINE( 171) while(true){
HXLINE( 172) int c = this->buf.cca(this->pos);
HXLINE( 173) if ((c == 0)) {
HXLINE( 174) goto _hx_goto_3;
}
HXLINE( 176) bool _hx_tmp;
HXDLIN( 176) bool _hx_tmp1;
HXDLIN( 176) bool _hx_tmp2;
HXDLIN( 176) if ((c >= 43)) {
HXLINE( 176) _hx_tmp2 = (c < 58);
}
else {
HXLINE( 176) _hx_tmp2 = false;
}
HXDLIN( 176) if (!(_hx_tmp2)) {
HXLINE( 176) _hx_tmp1 = (c == 101);
}
else {
HXLINE( 176) _hx_tmp1 = true;
}
HXDLIN( 176) if (!(_hx_tmp1)) {
HXLINE( 176) _hx_tmp = (c == 69);
}
else {
HXLINE( 176) _hx_tmp = true;
}
HXDLIN( 176) if (_hx_tmp) {
HXLINE( 177) this->pos++;
}
else {
HXLINE( 179) goto _hx_goto_3;
}
}
_hx_goto_3:;
HXLINE( 181) return ::Std_obj::parseFloat(this->buf.substr(p1,(this->pos - p1)));
}
HX_DEFINE_DYNAMIC_FUNC0(Unserializer_obj,readFloat,return )
void Unserializer_obj::unserializeObject( ::Dynamic o){
HX_STACKFRAME(&_hx_pos_f38f574a287e682f_184_unserializeObject)
HXLINE( 185) while(true){
HXLINE( 186) if ((this->pos >= this->length)) {
HXLINE( 187) HX_STACK_DO_THROW(HX_("Invalid object",e8,6c,b7,e2));
}
HXLINE( 188) if ((this->buf.cca(this->pos) == 103)) {
HXLINE( 189) goto _hx_goto_5;
}
HXLINE( 190) ::Dynamic k = this->unserialize();
HXLINE( 191) if (!(::Std_obj::is(k,hx::ClassOf< ::String >()))) {
HXLINE( 192) HX_STACK_DO_THROW(HX_("Invalid object key",67,5e,4c,fb));
}
HXLINE( 193) ::Dynamic v = this->unserialize();
HXLINE( 194) ::Reflect_obj::setField(o,( (::String)(k) ),v);
}
_hx_goto_5:;
HXLINE( 196) this->pos++;
}
HX_DEFINE_DYNAMIC_FUNC1(Unserializer_obj,unserializeObject,(void))
::Dynamic Unserializer_obj::unserializeEnum(hx::Class edecl,::String tag){
HX_STACKFRAME(&_hx_pos_f38f574a287e682f_199_unserializeEnum)
HXLINE( 200) if ((this->buf.cca(this->pos++) != 58)) {
HXLINE( 201) HX_STACK_DO_THROW(HX_("Invalid enum format",ad,eb,77,c2));
}
HXLINE( 202) int nargs = this->readDigits();
HXLINE( 203) if ((nargs == 0)) {
HXLINE( 204) return ::Type_obj::createEnum(edecl,tag,null());
}
HXLINE( 205) ::cpp::VirtualArray args = ::cpp::VirtualArray_obj::__new();
HXLINE( 206) while(true){
HXLINE( 206) nargs = (nargs - 1);
HXDLIN( 206) if (!(((nargs + 1) > 0))) {
HXLINE( 206) goto _hx_goto_7;
}
HXLINE( 207) args->push(this->unserialize());
}
_hx_goto_7:;
HXLINE( 208) return ::Type_obj::createEnum(edecl,tag,args);
}
HX_DEFINE_DYNAMIC_FUNC2(Unserializer_obj,unserializeEnum,return )
::Dynamic Unserializer_obj::unserialize(){
HX_GC_STACKFRAME(&_hx_pos_f38f574a287e682f_231_unserialize)
HXLINE( 232) switch((int)(this->buf.cca(this->pos++))){
case (int)65: {
HXLINE( 440) ::String name = ( (::String)(this->unserialize()) );
HXLINE( 441) hx::Class cl = this->resolver->__Field(HX_("resolveClass",ac,bd,dd,80),hx::paccDynamic)(name);
HXLINE( 442) if (hx::IsNull( cl )) {
HXLINE( 443) HX_STACK_DO_THROW((HX_("Class not found ",13,56,74,ed) + name));
}
HXLINE( 444) return cl;
}
break;
case (int)66: {
HXLINE( 446) ::String name1 = ( (::String)(this->unserialize()) );
HXLINE( 447) hx::Class e = this->resolver->__Field(HX_("resolveEnum",0d,90,51,de),hx::paccDynamic)(name1);
HXLINE( 448) if (hx::IsNull( e )) {
HXLINE( 449) HX_STACK_DO_THROW((HX_("Enum not found ",aa,e1,55,fd) + name1));
}
HXLINE( 450) return e;
}
break;
case (int)67: {
HXLINE( 429) ::String name2 = ( (::String)(this->unserialize()) );
HXLINE( 430) hx::Class cl1 = this->resolver->__Field(HX_("resolveClass",ac,bd,dd,80),hx::paccDynamic)(name2);
HXLINE( 431) if (hx::IsNull( cl1 )) {
HXLINE( 432) HX_STACK_DO_THROW((HX_("Class not found ",13,56,74,ed) + name2));
}
HXLINE( 433) ::Dynamic o = ::Type_obj::createEmptyInstance(cl1);
HXLINE( 434) this->cache->push(o);
HXLINE( 435) o->__Field(HX_("hxUnserialize",37,db,b9,86),hx::paccDynamic)(hx::ObjectPtr<OBJ_>(this));
HXLINE( 436) if ((this->buf.cca(this->pos++) != 103)) {
HXLINE( 437) HX_STACK_DO_THROW(HX_("Invalid custom data",30,fa,ef,08));
}
HXLINE( 438) return o;
}
break;
case (int)77: {
HXLINE( 364) ::haxe::ds::ObjectMap h = ::haxe::ds::ObjectMap_obj::__alloc( HX_CTX );
HXLINE( 365) this->cache->push(h);
HXLINE( 366) ::String buf = this->buf;
HXLINE( 367) while((this->buf.cca(this->pos) != 104)){
HXLINE( 368) ::Dynamic s = this->unserialize();
HXLINE( 369) h->set(s,this->unserialize());
}
HXLINE( 371) this->pos++;
HXLINE( 372) return h;
}
break;
case (int)82: {
HXLINE( 296) int n = this->readDigits();
HXLINE( 297) bool _hx_tmp;
HXDLIN( 297) if ((n >= 0)) {
HXLINE( 297) _hx_tmp = (n >= this->scache->length);
}
else {
HXLINE( 297) _hx_tmp = true;
}
HXDLIN( 297) if (_hx_tmp) {
HXLINE( 298) HX_STACK_DO_THROW(HX_("Invalid string reference",25,57,28,1b));
}
HXLINE( 299) return this->scache->__get(n);
}
break;
case (int)97: {
HXLINE( 261) ::String buf1 = this->buf;
HXLINE( 262) ::cpp::VirtualArray a = ::cpp::VirtualArray_obj::__new();
HXLINE( 264) int cachePos = this->cache->get_length();
HXLINE( 266) this->cache->push(a);
HXLINE( 267) while(true){
HXLINE( 268) int c = this->buf.cca(this->pos);
HXLINE( 269) if ((c == 104)) {
HXLINE( 270) this->pos++;
HXLINE( 271) goto _hx_goto_10;
}
HXLINE( 273) if ((c == 117)) {
HXLINE( 274) this->pos++;
HXLINE( 275) int n1 = this->readDigits();
HXLINE( 276) a->set(((a->get_length() + n1) - 1),null());
}
else {
HXLINE( 278) a->push(this->unserialize());
}
}
_hx_goto_10:;
HXLINE( 281) return (this->cache->set(cachePos,_hx_reslove_virtual_array(a)));
}
break;
case (int)98: {
HXLINE( 341) ::haxe::ds::StringMap h1 = ::haxe::ds::StringMap_obj::__alloc( HX_CTX );
HXLINE( 342) this->cache->push(h1);
HXLINE( 343) ::String buf2 = this->buf;
HXLINE( 344) while((this->buf.cca(this->pos) != 104)){
HXLINE( 345) ::String s1 = ( (::String)(this->unserialize()) );
HXLINE( 346) h1->set(s1,this->unserialize());
}
HXLINE( 348) this->pos++;
HXLINE( 349) return h1;
}
break;
case (int)99: {
HXLINE( 303) ::String name3 = ( (::String)(this->unserialize()) );
HXLINE( 304) hx::Class cl2 = this->resolver->__Field(HX_("resolveClass",ac,bd,dd,80),hx::paccDynamic)(name3);
HXLINE( 305) if (hx::IsNull( cl2 )) {
HXLINE( 306) HX_STACK_DO_THROW((HX_("Class not found ",13,56,74,ed) + name3));
}
HXLINE( 307) ::Dynamic o1 = ::Type_obj::createEmptyInstance(cl2);
HXLINE( 308) this->cache->push(o1);
HXLINE( 309) this->unserializeObject(o1);
HXLINE( 310) return o1;
}
break;
case (int)100: {
HXLINE( 244) return this->readFloat();
}
break;
case (int)102: {
HXLINE( 238) return false;
}
break;
case (int)105: {
HXLINE( 242) return this->readDigits();
}
break;
case (int)106: {
HXLINE( 320) ::String name4 = ( (::String)(this->unserialize()) );
HXLINE( 321) hx::Class edecl = this->resolver->__Field(HX_("resolveEnum",0d,90,51,de),hx::paccDynamic)(name4);
HXLINE( 322) if (hx::IsNull( edecl )) {
HXLINE( 323) HX_STACK_DO_THROW((HX_("Enum not found ",aa,e1,55,fd) + name4));
}
HXLINE( 324) this->pos++;
HXLINE( 325) int index = this->readDigits();
HXLINE( 326) ::String tag = ::Type_obj::getEnumConstructs(edecl)->__get(index);
HXLINE( 327) if (hx::IsNull( tag )) {
HXLINE( 328) HX_STACK_DO_THROW((((HX_("Unknown enum index ",57,ca,63,30) + name4) + HX_("@",40,00,00,00)) + index));
}
HXLINE( 329) ::Dynamic e1 = this->unserializeEnum(edecl,tag);
HXLINE( 330) this->cache->push(e1);
HXLINE( 331) return e1;
}
break;
case (int)107: {
HXLINE( 255) return ::Math_obj::NaN;
}
break;
case (int)108: {
HXLINE( 333) ::haxe::ds::List l = ::haxe::ds::List_obj::__alloc( HX_CTX );
HXLINE( 334) this->cache->push(l);
HXLINE( 335) ::String buf3 = this->buf;
HXLINE( 336) while((this->buf.cca(this->pos) != 104)){
HXLINE( 337) l->add(this->unserialize());
}
HXLINE( 338) this->pos++;
HXLINE( 339) return l;
}
break;
case (int)109: {
HXLINE( 257) return ::Math_obj::NEGATIVE_INFINITY;
}
break;
case (int)110: {
HXLINE( 234) return null();
}
break;
case (int)111: {
HXLINE( 286) ::Dynamic o2 = ::Dynamic(hx::Anon_obj::Create(0));
HXLINE( 287) this->cache->push(o2);
HXLINE( 288) this->unserializeObject(o2);
HXLINE( 289) return o2;
}
break;
case (int)112: {
HXLINE( 259) return ::Math_obj::POSITIVE_INFINITY;
}
break;
case (int)113: {
HXLINE( 351) ::haxe::ds::IntMap h2 = ::haxe::ds::IntMap_obj::__alloc( HX_CTX );
HXLINE( 352) this->cache->push(h2);
HXLINE( 353) ::String buf4 = this->buf;
HXLINE( 354) int c1 = this->buf.cca(this->pos++);
HXLINE( 355) while((c1 == 58)){
HXLINE( 356) int i = this->readDigits();
HXLINE( 357) h2->set(i,this->unserialize());
HXLINE( 358) c1 = this->buf.cca(this->pos++);
}
HXLINE( 360) if ((c1 != 104)) {
HXLINE( 361) HX_STACK_DO_THROW(HX_("Invalid IntMap format",e1,c2,b1,71));
}
HXLINE( 362) return h2;
}
break;
case (int)114: {
HXLINE( 291) int n2 = this->readDigits();
HXLINE( 292) bool _hx_tmp1;
HXDLIN( 292) if ((n2 >= 0)) {
HXLINE( 292) _hx_tmp1 = (n2 >= this->cache->get_length());
}
else {
HXLINE( 292) _hx_tmp1 = true;
}
HXDLIN( 292) if (_hx_tmp1) {
HXLINE( 293) HX_STACK_DO_THROW(HX_("Invalid reference",42,99,8f,7d));
}
HXLINE( 294) return this->cache->__get(n2);
}
break;
case (int)115: {
HXLINE( 385) int len = this->readDigits();
HXLINE( 386) ::String buf5 = this->buf;
HXLINE( 387) bool _hx_tmp2;
HXDLIN( 387) if ((this->buf.cca(this->pos++) == 58)) {
HXLINE( 387) _hx_tmp2 = ((this->length - this->pos) < len);
}
else {
HXLINE( 387) _hx_tmp2 = true;
}
HXDLIN( 387) if (_hx_tmp2) {
HXLINE( 388) HX_STACK_DO_THROW(HX_("Invalid bytes length",e4,8a,d3,50));
}
HXLINE( 395) ::Array< int > codes = ::haxe::Unserializer_obj::CODES;
HXLINE( 396) if (hx::IsNull( codes )) {
HXLINE( 397) codes = ::haxe::Unserializer_obj::initCodes();
HXLINE( 398) ::haxe::Unserializer_obj::CODES = codes;
}
HXLINE( 400) int i1 = this->pos;
HXLINE( 401) int rest = (len & 3);
HXLINE( 402) int size;
HXDLIN( 402) if ((rest >= 2)) {
HXLINE( 402) size = (rest - 1);
}
else {
HXLINE( 402) size = 0;
}
HXDLIN( 402) int size1 = (((len >> 2) * 3) + size);
HXLINE( 403) int max = (i1 + (len - rest));
HXLINE( 404) ::haxe::io::Bytes bytes = ::haxe::io::Bytes_obj::alloc(size1);
HXLINE( 405) int bpos = 0;
HXLINE( 406) while((i1 < max)){
HXLINE( 407) i1 = (i1 + 1);
HXDLIN( 407) int c11 = codes->__get(buf5.cca((i1 - 1)));
HXLINE( 408) i1 = (i1 + 1);
HXDLIN( 408) int c2 = codes->__get(buf5.cca((i1 - 1)));
HXLINE( 409) {
HXLINE( 409) bpos = (bpos + 1);
HXDLIN( 409) bytes->b[(bpos - 1)] = ( (unsigned char)(((c11 << 2) | (c2 >> 4))) );
}
HXLINE( 410) i1 = (i1 + 1);
HXDLIN( 410) int c3 = codes->__get(buf5.cca((i1 - 1)));
HXLINE( 411) {
HXLINE( 411) bpos = (bpos + 1);
HXDLIN( 411) bytes->b[(bpos - 1)] = ( (unsigned char)(((c2 << 4) | (c3 >> 2))) );
}
HXLINE( 412) i1 = (i1 + 1);
HXDLIN( 412) int c4 = codes->__get(buf5.cca((i1 - 1)));
HXLINE( 413) {
HXLINE( 413) bpos = (bpos + 1);
HXDLIN( 413) bytes->b[(bpos - 1)] = ( (unsigned char)(((c3 << 6) | c4)) );
}
}
HXLINE( 415) if ((rest >= 2)) {
HXLINE( 416) i1 = (i1 + 1);
HXDLIN( 416) int c12 = codes->__get(buf5.cca((i1 - 1)));
HXLINE( 417) i1 = (i1 + 1);
HXDLIN( 417) int c21 = codes->__get(buf5.cca((i1 - 1)));
HXLINE( 418) {
HXLINE( 418) bpos = (bpos + 1);
HXDLIN( 418) bytes->b[(bpos - 1)] = ( (unsigned char)(((c12 << 2) | (c21 >> 4))) );
}
HXLINE( 419) if ((rest == 3)) {
HXLINE( 420) i1 = (i1 + 1);
HXDLIN( 420) int c31 = codes->__get(buf5.cca((i1 - 1)));
HXLINE( 421) {
HXLINE( 421) bpos = (bpos + 1);
HXDLIN( 421) bytes->b[(bpos - 1)] = ( (unsigned char)(((c21 << 4) | (c31 >> 2))) );
}
}
}
HXLINE( 425) ::haxe::Unserializer _hx_tmp3 = hx::ObjectPtr<OBJ_>(this);
HXDLIN( 425) _hx_tmp3->pos = (_hx_tmp3->pos + len);
HXLINE( 426) this->cache->push(bytes);
HXLINE( 427) return bytes;
}
break;
case (int)116: {
HXLINE( 236) return true;
}
break;
case (int)118: {
HXLINE( 374) ::Date d;
HXLINE( 375) bool _hx_tmp4;
HXDLIN( 375) bool _hx_tmp5;
HXDLIN( 375) bool _hx_tmp6;
HXDLIN( 375) bool _hx_tmp7;
HXDLIN( 375) bool _hx_tmp8;
HXDLIN( 375) bool _hx_tmp9;
HXDLIN( 375) bool _hx_tmp10;
HXDLIN( 375) bool _hx_tmp11;
HXDLIN( 375) if ((this->buf.cca(this->pos) >= 48)) {
HXLINE( 375) _hx_tmp11 = (this->buf.cca(this->pos) <= 57);
}
else {
HXLINE( 375) _hx_tmp11 = false;
}
HXDLIN( 375) if (_hx_tmp11) {
HXLINE( 375) _hx_tmp10 = (this->buf.cca((this->pos + 1)) >= 48);
}
else {
HXLINE( 375) _hx_tmp10 = false;
}
HXDLIN( 375) if (_hx_tmp10) {
HXLINE( 375) _hx_tmp9 = (this->buf.cca((this->pos + 1)) <= 57);
}
else {
HXLINE( 375) _hx_tmp9 = false;
}
HXDLIN( 375) if (_hx_tmp9) {
HXLINE( 375) _hx_tmp8 = (this->buf.cca((this->pos + 2)) >= 48);
}
else {
HXLINE( 375) _hx_tmp8 = false;
}
HXDLIN( 375) if (_hx_tmp8) {
HXLINE( 375) _hx_tmp7 = (this->buf.cca((this->pos + 2)) <= 57);
}
else {
HXLINE( 375) _hx_tmp7 = false;
}
HXDLIN( 375) if (_hx_tmp7) {
HXLINE( 375) _hx_tmp6 = (this->buf.cca((this->pos + 3)) >= 48);
}
else {
HXLINE( 375) _hx_tmp6 = false;
}
HXDLIN( 375) if (_hx_tmp6) {
HXLINE( 375) _hx_tmp5 = (this->buf.cca((this->pos + 3)) <= 57);
}
else {
HXLINE( 375) _hx_tmp5 = false;
}
HXDLIN( 375) if (_hx_tmp5) {
HXLINE( 375) _hx_tmp4 = (this->buf.cca((this->pos + 4)) == 45);
}
else {
HXLINE( 375) _hx_tmp4 = false;
}
HXDLIN( 375) if (_hx_tmp4) {
HXLINE( 378) d = ::Date_obj::fromString(this->buf.substr(this->pos,19));
HXLINE( 379) ::haxe::Unserializer _hx_tmp12 = hx::ObjectPtr<OBJ_>(this);
HXDLIN( 379) _hx_tmp12->pos = (_hx_tmp12->pos + 19);
}
else {
HXLINE( 381) d = ::Date_obj::fromTime(this->readFloat());
}
HXLINE( 382) this->cache->push(d);
HXLINE( 383) return d;
}
break;
case (int)119: {
HXLINE( 312) ::String name5 = ( (::String)(this->unserialize()) );
HXLINE( 313) hx::Class edecl1 = this->resolver->__Field(HX_("resolveEnum",0d,90,51,de),hx::paccDynamic)(name5);
HXLINE( 314) if (hx::IsNull( edecl1 )) {
HXLINE( 315) HX_STACK_DO_THROW((HX_("Enum not found ",aa,e1,55,fd) + name5));
}
HXLINE( 316) ::Dynamic e2 = this->unserializeEnum(edecl1,( (::String)(this->unserialize()) ));
HXLINE( 317) this->cache->push(e2);
HXLINE( 318) return e2;
}
break;
case (int)120: {
HXLINE( 301) HX_STACK_DO_THROW(this->unserialize());
}
break;
case (int)121: {
HXLINE( 246) int len1 = this->readDigits();
HXLINE( 247) bool _hx_tmp13;
HXDLIN( 247) if ((this->buf.cca(this->pos++) == 58)) {
HXLINE( 247) _hx_tmp13 = ((this->length - this->pos) < len1);
}
else {
HXLINE( 247) _hx_tmp13 = true;
}
HXDLIN( 247) if (_hx_tmp13) {
HXLINE( 248) HX_STACK_DO_THROW(HX_("Invalid string length",4c,89,20,c9));
}
HXLINE( 249) ::String s2 = this->buf.substr(this->pos,len1);
HXLINE( 250) ::haxe::Unserializer _hx_tmp14 = hx::ObjectPtr<OBJ_>(this);
HXDLIN( 250) _hx_tmp14->pos = (_hx_tmp14->pos + len1);
HXLINE( 251) s2 = ::StringTools_obj::urlDecode(s2);
HXLINE( 252) this->scache->push(s2);
HXLINE( 253) return s2;
}
break;
case (int)122: {
HXLINE( 240) return 0;
}
break;
default:{
}
}
HXLINE( 453) this->pos--;
HXLINE( 454) ::String _hx_tmp15 = ((HX_("Invalid char ",81,66,ec,29) + this->buf.charAt(this->pos)) + HX_(" at position ",0a,c2,01,e0));
HXDLIN( 454) HX_STACK_DO_THROW((_hx_tmp15 + this->pos));
HXDLIN( 454) return null();
}
HX_DEFINE_DYNAMIC_FUNC0(Unserializer_obj,unserialize,return )
::Dynamic Unserializer_obj::DEFAULT_RESOLVER;
::String Unserializer_obj::BASE64;
::Array< int > Unserializer_obj::CODES;
::Array< int > Unserializer_obj::initCodes(){
HX_STACKFRAME(&_hx_pos_f38f574a287e682f_72_initCodes)
HXLINE( 73) ::Array< int > codes = ::Array_obj< int >::__new();
HXLINE( 74) {
HXLINE( 74) int _g = 0;
HXDLIN( 74) int _g1 = ::haxe::Unserializer_obj::BASE64.length;
HXDLIN( 74) while((_g < _g1)){
HXLINE( 74) _g = (_g + 1);
HXDLIN( 74) int i = (_g - 1);
HXLINE( 75) codes[::haxe::Unserializer_obj::BASE64.cca(i)] = i;
}
}
HXLINE( 76) return codes;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC0(Unserializer_obj,initCodes,return )
::Dynamic Unserializer_obj::run(::String v){
HX_GC_STACKFRAME(&_hx_pos_f38f574a287e682f_465_run)
HXDLIN( 465) return ::haxe::Unserializer_obj::__alloc( HX_CTX ,v)->unserialize();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Unserializer_obj,run,return )
hx::ObjectPtr< Unserializer_obj > Unserializer_obj::__new(::String buf) {
hx::ObjectPtr< Unserializer_obj > __this = new Unserializer_obj();
__this->__construct(buf);
return __this;
}
hx::ObjectPtr< Unserializer_obj > Unserializer_obj::__alloc(hx::Ctx *_hx_ctx,::String buf) {
Unserializer_obj *__this = (Unserializer_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(Unserializer_obj), true, "haxe.Unserializer"));
*(void **)__this = Unserializer_obj::_hx_vtable;
__this->__construct(buf);
return __this;
}
Unserializer_obj::Unserializer_obj()
{
}
void Unserializer_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(Unserializer);
HX_MARK_MEMBER_NAME(buf,"buf");
HX_MARK_MEMBER_NAME(pos,"pos");
HX_MARK_MEMBER_NAME(length,"length");
HX_MARK_MEMBER_NAME(cache,"cache");
HX_MARK_MEMBER_NAME(scache,"scache");
HX_MARK_MEMBER_NAME(resolver,"resolver");
HX_MARK_END_CLASS();
}
void Unserializer_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(buf,"buf");
HX_VISIT_MEMBER_NAME(pos,"pos");
HX_VISIT_MEMBER_NAME(length,"length");
HX_VISIT_MEMBER_NAME(cache,"cache");
HX_VISIT_MEMBER_NAME(scache,"scache");
HX_VISIT_MEMBER_NAME(resolver,"resolver");
}
hx::Val Unserializer_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 3:
if (HX_FIELD_EQ(inName,"buf") ) { return hx::Val( buf ); }
if (HX_FIELD_EQ(inName,"pos") ) { return hx::Val( pos ); }
break;
case 5:
if (HX_FIELD_EQ(inName,"cache") ) { return hx::Val( cache ); }
break;
case 6:
if (HX_FIELD_EQ(inName,"length") ) { return hx::Val( length ); }
if (HX_FIELD_EQ(inName,"scache") ) { return hx::Val( scache ); }
break;
case 8:
if (HX_FIELD_EQ(inName,"resolver") ) { return hx::Val( resolver ); }
break;
case 9:
if (HX_FIELD_EQ(inName,"readFloat") ) { return hx::Val( readFloat_dyn() ); }
break;
case 10:
if (HX_FIELD_EQ(inName,"readDigits") ) { return hx::Val( readDigits_dyn() ); }
break;
case 11:
if (HX_FIELD_EQ(inName,"unserialize") ) { return hx::Val( unserialize_dyn() ); }
break;
case 15:
if (HX_FIELD_EQ(inName,"unserializeEnum") ) { return hx::Val( unserializeEnum_dyn() ); }
break;
case 17:
if (HX_FIELD_EQ(inName,"unserializeObject") ) { return hx::Val( unserializeObject_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
bool Unserializer_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 3:
if (HX_FIELD_EQ(inName,"run") ) { outValue = run_dyn(); return true; }
break;
case 5:
if (HX_FIELD_EQ(inName,"CODES") ) { outValue = ( CODES ); return true; }
break;
case 6:
if (HX_FIELD_EQ(inName,"BASE64") ) { outValue = ( BASE64 ); return true; }
break;
case 9:
if (HX_FIELD_EQ(inName,"initCodes") ) { outValue = initCodes_dyn(); return true; }
break;
case 16:
if (HX_FIELD_EQ(inName,"DEFAULT_RESOLVER") ) { outValue = ( DEFAULT_RESOLVER ); return true; }
}
return false;
}
hx::Val Unserializer_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 3:
if (HX_FIELD_EQ(inName,"buf") ) { buf=inValue.Cast< ::String >(); return inValue; }
if (HX_FIELD_EQ(inName,"pos") ) { pos=inValue.Cast< int >(); return inValue; }
break;
case 5:
if (HX_FIELD_EQ(inName,"cache") ) { cache=inValue.Cast< ::cpp::VirtualArray >(); return inValue; }
break;
case 6:
if (HX_FIELD_EQ(inName,"length") ) { length=inValue.Cast< int >(); return inValue; }
if (HX_FIELD_EQ(inName,"scache") ) { scache=inValue.Cast< ::Array< ::String > >(); return inValue; }
break;
case 8:
if (HX_FIELD_EQ(inName,"resolver") ) { resolver=inValue.Cast< ::Dynamic >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
bool Unserializer_obj::__SetStatic(const ::String &inName,Dynamic &ioValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 5:
if (HX_FIELD_EQ(inName,"CODES") ) { CODES=ioValue.Cast< ::Array< int > >(); return true; }
break;
case 6:
if (HX_FIELD_EQ(inName,"BASE64") ) { BASE64=ioValue.Cast< ::String >(); return true; }
break;
case 16:
if (HX_FIELD_EQ(inName,"DEFAULT_RESOLVER") ) { DEFAULT_RESOLVER=ioValue.Cast< ::Dynamic >(); return true; }
}
return false;
}
void Unserializer_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("buf",33,c3,4a,00));
outFields->push(HX_("pos",94,5d,55,00));
outFields->push(HX_("length",e6,94,07,9f));
outFields->push(HX_("cache",42,9a,14,41));
outFields->push(HX_("scache",ef,18,1f,3c));
outFields->push(HX_("resolver",06,7c,b0,0c));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo Unserializer_obj_sMemberStorageInfo[] = {
{hx::fsString,(int)offsetof(Unserializer_obj,buf),HX_("buf",33,c3,4a,00)},
{hx::fsInt,(int)offsetof(Unserializer_obj,pos),HX_("pos",94,5d,55,00)},
{hx::fsInt,(int)offsetof(Unserializer_obj,length),HX_("length",e6,94,07,9f)},
{hx::fsObject /* ::cpp::VirtualArray */ ,(int)offsetof(Unserializer_obj,cache),HX_("cache",42,9a,14,41)},
{hx::fsObject /* ::Array< ::String > */ ,(int)offsetof(Unserializer_obj,scache),HX_("scache",ef,18,1f,3c)},
{hx::fsObject /* ::Dynamic */ ,(int)offsetof(Unserializer_obj,resolver),HX_("resolver",06,7c,b0,0c)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo Unserializer_obj_sStaticStorageInfo[] = {
{hx::fsObject /* ::Dynamic */ ,(void *) &Unserializer_obj::DEFAULT_RESOLVER,HX_("DEFAULT_RESOLVER",a4,3a,b4,de)},
{hx::fsString,(void *) &Unserializer_obj::BASE64,HX_("BASE64",8f,c5,aa,07)},
{hx::fsObject /* ::Array< int > */ ,(void *) &Unserializer_obj::CODES,HX_("CODES",86,8e,44,c8)},
{ hx::fsUnknown, 0, null()}
};
#endif
static ::String Unserializer_obj_sMemberFields[] = {
HX_("buf",33,c3,4a,00),
HX_("pos",94,5d,55,00),
HX_("length",e6,94,07,9f),
HX_("cache",42,9a,14,41),
HX_("scache",ef,18,1f,3c),
HX_("resolver",06,7c,b0,0c),
HX_("readDigits",1c,ee,a3,ae),
HX_("readFloat",66,12,7e,d3),
HX_("unserializeObject",86,9e,52,9f),
HX_("unserializeEnum",08,3b,10,7f),
HX_("unserialize",67,e4,98,7a),
::String(null()) };
static void Unserializer_obj_sMarkStatics(HX_MARK_PARAMS) {
HX_MARK_MEMBER_NAME(Unserializer_obj::DEFAULT_RESOLVER,"DEFAULT_RESOLVER");
HX_MARK_MEMBER_NAME(Unserializer_obj::BASE64,"BASE64");
HX_MARK_MEMBER_NAME(Unserializer_obj::CODES,"CODES");
};
#ifdef HXCPP_VISIT_ALLOCS
static void Unserializer_obj_sVisitStatics(HX_VISIT_PARAMS) {
HX_VISIT_MEMBER_NAME(Unserializer_obj::DEFAULT_RESOLVER,"DEFAULT_RESOLVER");
HX_VISIT_MEMBER_NAME(Unserializer_obj::BASE64,"BASE64");
HX_VISIT_MEMBER_NAME(Unserializer_obj::CODES,"CODES");
};
#endif
hx::Class Unserializer_obj::__mClass;
static ::String Unserializer_obj_sStaticFields[] = {
HX_("DEFAULT_RESOLVER",a4,3a,b4,de),
HX_("BASE64",8f,c5,aa,07),
HX_("CODES",86,8e,44,c8),
HX_("initCodes",76,71,e8,65),
HX_("run",4b,e7,56,00),
::String(null())
};
void Unserializer_obj::__register()
{
Unserializer_obj _hx_dummy;
Unserializer_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.Unserializer",93,7b,79,6c);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &Unserializer_obj::__GetStatic;
__mClass->mSetStaticField = &Unserializer_obj::__SetStatic;
__mClass->mMarkFunc = Unserializer_obj_sMarkStatics;
__mClass->mStatics = hx::Class_obj::dupFunctions(Unserializer_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(Unserializer_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< Unserializer_obj >;
#ifdef HXCPP_VISIT_ALLOCS
__mClass->mVisitFunc = Unserializer_obj_sVisitStatics;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Unserializer_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Unserializer_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
void Unserializer_obj::__boot()
{
{
HX_GC_STACKFRAME(&_hx_pos_f38f574a287e682f_65_boot)
HXDLIN( 65) DEFAULT_RESOLVER = ::haxe::_Unserializer::DefaultResolver_obj::__alloc( HX_CTX );
}
{
HX_STACKFRAME(&_hx_pos_f38f574a287e682f_67_boot)
HXDLIN( 67) BASE64 = HX_("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:",d4,3b,03,7f);
}
{
HX_STACKFRAME(&_hx_pos_f38f574a287e682f_70_boot)
HXDLIN( 70) CODES = null();
}
}
} // end namespace haxe

View File

@@ -0,0 +1,146 @@
// Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_haxe_Exception
#include <haxe/Exception.h>
#endif
#ifndef INCLUDED_haxe_ValueException
#include <haxe/ValueException.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_2904c75b5f7009ee_23_new,"haxe.ValueException","new",0xb19045f8,"haxe.ValueException.new","/usr/share/haxe/std/haxe/ValueException.hx",23,0xa9554d52)
HX_LOCAL_STACK_FRAME(_hx_pos_2904c75b5f7009ee_36_unwrap,"haxe.ValueException","unwrap",0xe3875a0b,"haxe.ValueException.unwrap","/usr/share/haxe/std/haxe/ValueException.hx",36,0xa9554d52)
namespace haxe{
void ValueException_obj::__construct( ::Dynamic value, ::haxe::Exception previous, ::Dynamic native){
HX_STACKFRAME(&_hx_pos_2904c75b5f7009ee_23_new)
HXLINE( 24) super::__construct(::Std_obj::string(value),previous,native);
HXLINE( 25) this->value = value;
}
Dynamic ValueException_obj::__CreateEmpty() { return new ValueException_obj; }
void *ValueException_obj::_hx_vtable = 0;
Dynamic ValueException_obj::__Create(::hx::DynamicArray inArgs)
{
::hx::ObjectPtr< ValueException_obj > _hx_result = new ValueException_obj();
_hx_result->__construct(inArgs[0],inArgs[1],inArgs[2]);
return _hx_result;
}
bool ValueException_obj::_hx_isInstanceOf(int inClassId) {
if (inClassId<=(int)0x0af01d58) {
return inClassId==(int)0x00000001 || inClassId==(int)0x0af01d58;
} else {
return inClassId==(int)0x677ddc49;
}
}
::Dynamic ValueException_obj::unwrap(){
HX_STACKFRAME(&_hx_pos_2904c75b5f7009ee_36_unwrap)
HXDLIN( 36) return this->value;
}
::hx::ObjectPtr< ValueException_obj > ValueException_obj::__new( ::Dynamic value, ::haxe::Exception previous, ::Dynamic native) {
::hx::ObjectPtr< ValueException_obj > __this = new ValueException_obj();
__this->__construct(value,previous,native);
return __this;
}
::hx::ObjectPtr< ValueException_obj > ValueException_obj::__alloc(::hx::Ctx *_hx_ctx, ::Dynamic value, ::haxe::Exception previous, ::Dynamic native) {
ValueException_obj *__this = (ValueException_obj*)(::hx::Ctx::alloc(_hx_ctx, sizeof(ValueException_obj), true, "haxe.ValueException"));
*(void **)__this = ValueException_obj::_hx_vtable;
__this->__construct(value,previous,native);
return __this;
}
ValueException_obj::ValueException_obj()
{
}
void ValueException_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(ValueException);
HX_MARK_MEMBER_NAME(value,"value");
::haxe::Exception_obj::__Mark(HX_MARK_ARG);
HX_MARK_END_CLASS();
}
void ValueException_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(value,"value");
::haxe::Exception_obj::__Visit(HX_VISIT_ARG);
}
::hx::Val ValueException_obj::__Field(const ::String &inName,::hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 5:
if (HX_FIELD_EQ(inName,"value") ) { return ::hx::Val( value ); }
break;
case 6:
if (HX_FIELD_EQ(inName,"unwrap") ) { return ::hx::Val( unwrap_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
::hx::Val ValueException_obj::__SetField(const ::String &inName,const ::hx::Val &inValue,::hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 5:
if (HX_FIELD_EQ(inName,"value") ) { value=inValue.Cast< ::Dynamic >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void ValueException_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("value",71,7f,b8,31));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static ::hx::StorageInfo ValueException_obj_sMemberStorageInfo[] = {
{::hx::fsObject /* ::Dynamic */ ,(int)offsetof(ValueException_obj,value),HX_("value",71,7f,b8,31)},
{ ::hx::fsUnknown, 0, null()}
};
static ::hx::StaticInfo *ValueException_obj_sStaticStorageInfo = 0;
#endif
static ::String ValueException_obj_sMemberFields[] = {
HX_("value",71,7f,b8,31),
HX_("unwrap",a3,40,d4,6c),
::String(null()) };
::hx::Class ValueException_obj::__mClass;
void ValueException_obj::__register()
{
ValueException_obj _hx_dummy;
ValueException_obj::_hx_vtable = *(void **)&_hx_dummy;
::hx::Static(__mClass) = new ::hx::Class_obj();
__mClass->mName = HX_("haxe.ValueException",06,2a,10,02);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &::hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &::hx::Class_obj::SetNoStaticField;
__mClass->mStatics = ::hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = ::hx::Class_obj::dupFunctions(ValueException_obj_sMemberFields);
__mClass->mCanCast = ::hx::TCanCast< ValueException_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = ValueException_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = ValueException_obj_sStaticStorageInfo;
#endif
::hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe

View File

@@ -0,0 +1,594 @@
// Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_StringBuf
#include <StringBuf.h>
#endif
#ifndef INCLUDED_haxe_NativeStackTrace
#include <haxe/NativeStackTrace.h>
#endif
#ifndef INCLUDED_haxe_StackItem
#include <haxe/StackItem.h>
#endif
#ifndef INCLUDED_haxe__CallStack_CallStack_Impl_
#include <haxe/_CallStack/CallStack_Impl_.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_3b20f2b68eaa0619_52_callStack,"haxe._CallStack.CallStack_Impl_","callStack",0x30d63cab,"haxe._CallStack.CallStack_Impl_.callStack","/usr/share/haxe/std/haxe/CallStack.hx",52,0xe5f54202)
HX_LOCAL_STACK_FRAME(_hx_pos_3b20f2b68eaa0619_63_exceptionStack,"haxe._CallStack.CallStack_Impl_","exceptionStack",0x933cbdf8,"haxe._CallStack.CallStack_Impl_.exceptionStack","/usr/share/haxe/std/haxe/CallStack.hx",63,0xe5f54202)
HX_LOCAL_STACK_FRAME(_hx_pos_3b20f2b68eaa0619_71_toString,"haxe._CallStack.CallStack_Impl_","toString",0xaff80ceb,"haxe._CallStack.CallStack_Impl_.toString","/usr/share/haxe/std/haxe/CallStack.hx",71,0xe5f54202)
static const ::String _hx_array_data_baffa80f_4[] = {
HX_("\nCalled from ",bd,26,6b,81),
};
HX_LOCAL_STACK_FRAME(_hx_pos_3b20f2b68eaa0619_84_subtract,"haxe._CallStack.CallStack_Impl_","subtract",0x6f9ab153,"haxe._CallStack.CallStack_Impl_.subtract","/usr/share/haxe/std/haxe/CallStack.hx",84,0xe5f54202)
HX_LOCAL_STACK_FRAME(_hx_pos_3b20f2b68eaa0619_120_equalItems,"haxe._CallStack.CallStack_Impl_","equalItems",0xbce5e9ab,"haxe._CallStack.CallStack_Impl_.equalItems","/usr/share/haxe/std/haxe/CallStack.hx",120,0xe5f54202)
HX_LOCAL_STACK_FRAME(_hx_pos_3b20f2b68eaa0619_156_itemToString,"haxe._CallStack.CallStack_Impl_","itemToString",0xddade49e,"haxe._CallStack.CallStack_Impl_.itemToString","/usr/share/haxe/std/haxe/CallStack.hx",156,0xe5f54202)
static const ::String _hx_array_data_baffa80f_10[] = {
HX_("a C function",f4,1b,53,cb),
};
static const ::String _hx_array_data_baffa80f_11[] = {
HX_("module ",f4,e1,fa,f7),
};
static const ::String _hx_array_data_baffa80f_12[] = {
HX_(" (",08,1c,00,00),
};
static const ::String _hx_array_data_baffa80f_13[] = {
HX_(" line ",8c,69,6d,40),
};
static const ::String _hx_array_data_baffa80f_14[] = {
HX_(" column ",6a,f0,a7,19),
};
static const ::String _hx_array_data_baffa80f_15[] = {
HX_(")",29,00,00,00),
};
static const ::String _hx_array_data_baffa80f_16[] = {
HX_(".",2e,00,00,00),
};
static const ::String _hx_array_data_baffa80f_17[] = {
HX_("local function #",b0,cd,97,ff),
};
namespace haxe{
namespace _CallStack{
void CallStack_Impl__obj::__construct() { }
Dynamic CallStack_Impl__obj::__CreateEmpty() { return new CallStack_Impl__obj; }
void *CallStack_Impl__obj::_hx_vtable = 0;
Dynamic CallStack_Impl__obj::__Create(::hx::DynamicArray inArgs)
{
::hx::ObjectPtr< CallStack_Impl__obj > _hx_result = new CallStack_Impl__obj();
_hx_result->__construct();
return _hx_result;
}
bool CallStack_Impl__obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x29a173d9;
}
::Array< ::Dynamic> CallStack_Impl__obj::callStack(){
HX_STACKFRAME(&_hx_pos_3b20f2b68eaa0619_52_callStack)
HXDLIN( 52) return ::haxe::NativeStackTrace_obj::toHaxe(::haxe::NativeStackTrace_obj::callStack(),null());
}
STATIC_HX_DEFINE_DYNAMIC_FUNC0(CallStack_Impl__obj,callStack,return )
::Array< ::Dynamic> CallStack_Impl__obj::exceptionStack(::hx::Null< bool > __o_fullStack){
bool fullStack = __o_fullStack.Default(false);
HX_STACKFRAME(&_hx_pos_3b20f2b68eaa0619_63_exceptionStack)
HXLINE( 64) ::Array< ::Dynamic> eStack = ::haxe::NativeStackTrace_obj::toHaxe(::haxe::NativeStackTrace_obj::exceptionStack(),null());
HXLINE( 65) ::Array< ::Dynamic> this1;
HXDLIN( 65) if (fullStack) {
HXLINE( 65) this1 = eStack;
}
else {
HXLINE( 65) this1 = ::haxe::_CallStack::CallStack_Impl__obj::subtract(eStack,::haxe::_CallStack::CallStack_Impl__obj::callStack());
}
HXDLIN( 65) return this1;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(CallStack_Impl__obj,exceptionStack,return )
::String CallStack_Impl__obj::toString(::Array< ::Dynamic> stack){
HX_GC_STACKFRAME(&_hx_pos_3b20f2b68eaa0619_71_toString)
HXLINE( 72) ::StringBuf b = ::StringBuf_obj::__alloc( HX_CTX );
HXLINE( 73) {
HXLINE( 73) int _g = 0;
HXDLIN( 73) ::Array< ::Dynamic> _g1 = stack;
HXDLIN( 73) while((_g < _g1->length)){
HXLINE( 73) ::haxe::StackItem s = _g1->__get(_g).StaticCast< ::haxe::StackItem >();
HXDLIN( 73) _g = (_g + 1);
HXLINE( 74) {
HXLINE( 74) if (::hx::IsNotNull( b->charBuf )) {
HXLINE( 74) b->flush();
}
HXDLIN( 74) if (::hx::IsNull( b->b )) {
HXLINE( 74) b->b = ::Array_obj< ::String >::fromData( _hx_array_data_baffa80f_4,1);
}
else {
HXLINE( 74) b->b->push(HX_("\nCalled from ",bd,26,6b,81));
}
}
HXLINE( 75) ::haxe::_CallStack::CallStack_Impl__obj::itemToString(b,s);
}
}
HXLINE( 77) return b->toString();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(CallStack_Impl__obj,toString,return )
::Array< ::Dynamic> CallStack_Impl__obj::subtract(::Array< ::Dynamic> this1,::Array< ::Dynamic> stack){
HX_STACKFRAME(&_hx_pos_3b20f2b68eaa0619_84_subtract)
HXLINE( 85) int startIndex = -1;
HXLINE( 86) int i = -1;
HXLINE( 87) while(true){
HXLINE( 87) i = (i + 1);
HXDLIN( 87) if (!((i < this1->length))) {
HXLINE( 87) goto _hx_goto_5;
}
HXLINE( 88) {
HXLINE( 88) int _g = 0;
HXDLIN( 88) int _g1 = stack->length;
HXDLIN( 88) while((_g < _g1)){
HXLINE( 88) _g = (_g + 1);
HXDLIN( 88) int j = (_g - 1);
HXLINE( 89) if (::haxe::_CallStack::CallStack_Impl__obj::equalItems(this1->__get(i).StaticCast< ::haxe::StackItem >(),stack->__get(j).StaticCast< ::haxe::StackItem >())) {
HXLINE( 90) if ((startIndex < 0)) {
HXLINE( 91) startIndex = i;
}
HXLINE( 93) i = (i + 1);
HXLINE( 94) if ((i >= this1->length)) {
HXLINE( 94) goto _hx_goto_6;
}
}
else {
HXLINE( 96) startIndex = -1;
}
}
_hx_goto_6:;
}
HXLINE( 99) if ((startIndex >= 0)) {
HXLINE( 99) goto _hx_goto_5;
}
}
_hx_goto_5:;
HXLINE( 101) if ((startIndex >= 0)) {
HXLINE( 101) return this1->slice(0,startIndex);
}
else {
HXLINE( 101) return this1;
}
HXDLIN( 101) return null();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(CallStack_Impl__obj,subtract,return )
bool CallStack_Impl__obj::equalItems( ::haxe::StackItem item1, ::haxe::StackItem item2){
HX_STACKFRAME(&_hx_pos_3b20f2b68eaa0619_120_equalItems)
HXDLIN( 120) if (::hx::IsNull( item1 )) {
HXLINE( 121) if (::hx::IsNull( item2 )) {
HXLINE( 121) return true;
}
else {
HXLINE( 131) return false;
}
}
else {
HXDLIN( 120) switch((int)(item1->_hx_getIndex())){
case (int)0: {
HXDLIN( 120) if (::hx::IsNull( item2 )) {
HXLINE( 131) return false;
}
else {
HXDLIN( 120) if ((item2->_hx_getIndex() == 0)) {
HXLINE( 122) return true;
}
else {
HXLINE( 131) return false;
}
}
}
break;
case (int)1: {
HXDLIN( 120) if (::hx::IsNull( item2 )) {
HXLINE( 131) return false;
}
else {
HXDLIN( 120) if ((item2->_hx_getIndex() == 1)) {
HXLINE( 123) ::String m1 = item1->_hx_getString(0);
HXDLIN( 123) ::String m2 = item2->_hx_getString(0);
HXLINE( 124) return (m1 == m2);
}
else {
HXLINE( 131) return false;
}
}
}
break;
case (int)2: {
HXDLIN( 120) if (::hx::IsNull( item2 )) {
HXLINE( 131) return false;
}
else {
HXDLIN( 120) if ((item2->_hx_getIndex() == 2)) {
HXLINE( 125) ::haxe::StackItem item11 = item1->_hx_getObject(0).StaticCast< ::haxe::StackItem >();
HXDLIN( 125) ::String file1 = item1->_hx_getString(1);
HXDLIN( 125) int line1 = item1->_hx_getInt(2);
HXDLIN( 125) ::Dynamic col1 = item1->_hx_getObject(3);
HXDLIN( 125) ::Dynamic col2 = item2->_hx_getObject(3);
HXDLIN( 125) int line2 = item2->_hx_getInt(2);
HXDLIN( 125) ::String file2 = item2->_hx_getString(1);
HXDLIN( 125) ::haxe::StackItem item21 = item2->_hx_getObject(0).StaticCast< ::haxe::StackItem >();
HXLINE( 126) bool _hx_tmp;
HXDLIN( 126) bool _hx_tmp1;
HXDLIN( 126) if ((file1 == file2)) {
HXLINE( 126) _hx_tmp1 = (line1 == line2);
}
else {
HXLINE( 126) _hx_tmp1 = false;
}
HXDLIN( 126) if (_hx_tmp1) {
HXLINE( 126) _hx_tmp = ::hx::IsEq( col1,col2 );
}
else {
HXLINE( 126) _hx_tmp = false;
}
HXDLIN( 126) if (_hx_tmp) {
HXLINE( 126) return ::haxe::_CallStack::CallStack_Impl__obj::equalItems(item11,item21);
}
else {
HXLINE( 126) return false;
}
}
else {
HXLINE( 131) return false;
}
}
}
break;
case (int)3: {
HXDLIN( 120) if (::hx::IsNull( item2 )) {
HXLINE( 131) return false;
}
else {
HXDLIN( 120) if ((item2->_hx_getIndex() == 3)) {
HXLINE( 127) ::String class1 = item1->_hx_getString(0);
HXDLIN( 127) ::String method1 = item1->_hx_getString(1);
HXDLIN( 127) ::String method2 = item2->_hx_getString(1);
HXDLIN( 127) ::String class2 = item2->_hx_getString(0);
HXLINE( 128) if ((class1 == class2)) {
HXLINE( 128) return (method1 == method2);
}
else {
HXLINE( 128) return false;
}
}
else {
HXLINE( 131) return false;
}
}
}
break;
case (int)4: {
HXDLIN( 120) if (::hx::IsNull( item2 )) {
HXLINE( 131) return false;
}
else {
HXDLIN( 120) if ((item2->_hx_getIndex() == 4)) {
HXLINE( 129) ::Dynamic v1 = item1->_hx_getObject(0);
HXDLIN( 129) ::Dynamic v2 = item2->_hx_getObject(0);
HXLINE( 130) return ::hx::IsEq( v1,v2 );
}
else {
HXLINE( 131) return false;
}
}
}
break;
}
}
HXLINE( 120) return false;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(CallStack_Impl__obj,equalItems,return )
void CallStack_Impl__obj::itemToString( ::StringBuf b, ::haxe::StackItem s){
HX_STACKFRAME(&_hx_pos_3b20f2b68eaa0619_156_itemToString)
HXDLIN( 156) switch((int)(s->_hx_getIndex())){
case (int)0: {
HXLINE( 158) if (::hx::IsNotNull( b->charBuf )) {
HXLINE( 158) b->flush();
}
HXDLIN( 158) if (::hx::IsNull( b->b )) {
HXLINE( 158) b->b = ::Array_obj< ::String >::fromData( _hx_array_data_baffa80f_10,1);
}
else {
HXLINE( 158) b->b->push(HX_("a C function",f4,1b,53,cb));
}
}
break;
case (int)1: {
HXLINE( 159) ::String m = s->_hx_getString(0);
HXDLIN( 159) {
HXLINE( 160) {
HXLINE( 160) if (::hx::IsNotNull( b->charBuf )) {
HXLINE( 160) b->flush();
}
HXDLIN( 160) if (::hx::IsNull( b->b )) {
HXLINE( 160) b->b = ::Array_obj< ::String >::fromData( _hx_array_data_baffa80f_11,1);
}
else {
HXLINE( 160) b->b->push(HX_("module ",f4,e1,fa,f7));
}
}
HXLINE( 161) {
HXLINE( 161) if (::hx::IsNotNull( b->charBuf )) {
HXLINE( 161) b->flush();
}
HXDLIN( 161) if (::hx::IsNull( b->b )) {
HXLINE( 161) b->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(m));
}
else {
HXLINE( 161) ::Array< ::String > b1 = b->b;
HXDLIN( 161) b1->push(::Std_obj::string(m));
}
}
}
}
break;
case (int)2: {
HXLINE( 162) ::Dynamic col = s->_hx_getObject(3);
HXDLIN( 162) int line = s->_hx_getInt(2);
HXDLIN( 162) ::String file = s->_hx_getString(1);
HXDLIN( 162) ::haxe::StackItem s1 = s->_hx_getObject(0).StaticCast< ::haxe::StackItem >();
HXDLIN( 162) {
HXLINE( 163) if (::hx::IsNotNull( s1 )) {
HXLINE( 164) ::haxe::_CallStack::CallStack_Impl__obj::itemToString(b,s1);
HXLINE( 165) {
HXLINE( 165) if (::hx::IsNotNull( b->charBuf )) {
HXLINE( 165) b->flush();
}
HXDLIN( 165) if (::hx::IsNull( b->b )) {
HXLINE( 165) b->b = ::Array_obj< ::String >::fromData( _hx_array_data_baffa80f_12,1);
}
else {
HXLINE( 165) b->b->push(HX_(" (",08,1c,00,00));
}
}
}
HXLINE( 167) {
HXLINE( 167) if (::hx::IsNotNull( b->charBuf )) {
HXLINE( 167) b->flush();
}
HXDLIN( 167) if (::hx::IsNull( b->b )) {
HXLINE( 167) b->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(file));
}
else {
HXLINE( 167) ::Array< ::String > b1 = b->b;
HXDLIN( 167) b1->push(::Std_obj::string(file));
}
}
HXLINE( 168) {
HXLINE( 168) if (::hx::IsNotNull( b->charBuf )) {
HXLINE( 168) b->flush();
}
HXDLIN( 168) if (::hx::IsNull( b->b )) {
HXLINE( 168) b->b = ::Array_obj< ::String >::fromData( _hx_array_data_baffa80f_13,1);
}
else {
HXLINE( 168) b->b->push(HX_(" line ",8c,69,6d,40));
}
}
HXLINE( 169) {
HXLINE( 169) if (::hx::IsNotNull( b->charBuf )) {
HXLINE( 169) b->flush();
}
HXDLIN( 169) if (::hx::IsNull( b->b )) {
HXLINE( 169) b->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(line));
}
else {
HXLINE( 169) ::Array< ::String > b1 = b->b;
HXDLIN( 169) b1->push(::Std_obj::string(line));
}
}
HXLINE( 170) if (::hx::IsNotNull( col )) {
HXLINE( 171) {
HXLINE( 171) if (::hx::IsNotNull( b->charBuf )) {
HXLINE( 171) b->flush();
}
HXDLIN( 171) if (::hx::IsNull( b->b )) {
HXLINE( 171) b->b = ::Array_obj< ::String >::fromData( _hx_array_data_baffa80f_14,1);
}
else {
HXLINE( 171) b->b->push(HX_(" column ",6a,f0,a7,19));
}
}
HXLINE( 172) {
HXLINE( 172) if (::hx::IsNotNull( b->charBuf )) {
HXLINE( 172) b->flush();
}
HXDLIN( 172) if (::hx::IsNull( b->b )) {
HXLINE( 172) b->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(col));
}
else {
HXLINE( 172) ::Array< ::String > b1 = b->b;
HXDLIN( 172) b1->push(::Std_obj::string(col));
}
}
}
HXLINE( 174) if (::hx::IsNotNull( s1 )) {
HXLINE( 175) if (::hx::IsNotNull( b->charBuf )) {
HXLINE( 175) b->flush();
}
HXDLIN( 175) if (::hx::IsNull( b->b )) {
HXLINE( 175) b->b = ::Array_obj< ::String >::fromData( _hx_array_data_baffa80f_15,1);
}
else {
HXLINE( 175) b->b->push(HX_(")",29,00,00,00));
}
}
}
}
break;
case (int)3: {
HXLINE( 176) ::String meth = s->_hx_getString(1);
HXDLIN( 176) ::String cname = s->_hx_getString(0);
HXDLIN( 176) {
HXLINE( 177) {
HXLINE( 177) ::String x;
HXDLIN( 177) if (::hx::IsNull( cname )) {
HXLINE( 177) x = HX_("<unknown>",b0,91,d8,da);
}
else {
HXLINE( 177) x = cname;
}
HXDLIN( 177) if (::hx::IsNotNull( b->charBuf )) {
HXLINE( 177) b->flush();
}
HXDLIN( 177) if (::hx::IsNull( b->b )) {
HXLINE( 177) b->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(x));
}
else {
HXLINE( 177) ::Array< ::String > b1 = b->b;
HXDLIN( 177) b1->push(::Std_obj::string(x));
}
}
HXLINE( 178) {
HXLINE( 178) if (::hx::IsNotNull( b->charBuf )) {
HXLINE( 178) b->flush();
}
HXDLIN( 178) if (::hx::IsNull( b->b )) {
HXLINE( 178) b->b = ::Array_obj< ::String >::fromData( _hx_array_data_baffa80f_16,1);
}
else {
HXLINE( 178) b->b->push(HX_(".",2e,00,00,00));
}
}
HXLINE( 179) {
HXLINE( 179) if (::hx::IsNotNull( b->charBuf )) {
HXLINE( 179) b->flush();
}
HXDLIN( 179) if (::hx::IsNull( b->b )) {
HXLINE( 179) b->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(meth));
}
else {
HXLINE( 179) ::Array< ::String > b1 = b->b;
HXDLIN( 179) b1->push(::Std_obj::string(meth));
}
}
}
}
break;
case (int)4: {
HXLINE( 180) ::Dynamic n = s->_hx_getObject(0);
HXDLIN( 180) {
HXLINE( 181) {
HXLINE( 181) if (::hx::IsNotNull( b->charBuf )) {
HXLINE( 181) b->flush();
}
HXDLIN( 181) if (::hx::IsNull( b->b )) {
HXLINE( 181) b->b = ::Array_obj< ::String >::fromData( _hx_array_data_baffa80f_17,1);
}
else {
HXLINE( 181) b->b->push(HX_("local function #",b0,cd,97,ff));
}
}
HXLINE( 182) {
HXLINE( 182) if (::hx::IsNotNull( b->charBuf )) {
HXLINE( 182) b->flush();
}
HXDLIN( 182) if (::hx::IsNull( b->b )) {
HXLINE( 182) b->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(n));
}
else {
HXLINE( 182) ::Array< ::String > b1 = b->b;
HXDLIN( 182) b1->push(::Std_obj::string(n));
}
}
}
}
break;
}
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(CallStack_Impl__obj,itemToString,(void))
CallStack_Impl__obj::CallStack_Impl__obj()
{
}
bool CallStack_Impl__obj::__GetStatic(const ::String &inName, Dynamic &outValue, ::hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 8:
if (HX_FIELD_EQ(inName,"toString") ) { outValue = toString_dyn(); return true; }
if (HX_FIELD_EQ(inName,"subtract") ) { outValue = subtract_dyn(); return true; }
break;
case 9:
if (HX_FIELD_EQ(inName,"callStack") ) { outValue = callStack_dyn(); return true; }
break;
case 10:
if (HX_FIELD_EQ(inName,"equalItems") ) { outValue = equalItems_dyn(); return true; }
break;
case 12:
if (HX_FIELD_EQ(inName,"itemToString") ) { outValue = itemToString_dyn(); return true; }
break;
case 14:
if (HX_FIELD_EQ(inName,"exceptionStack") ) { outValue = exceptionStack_dyn(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static ::hx::StorageInfo *CallStack_Impl__obj_sMemberStorageInfo = 0;
static ::hx::StaticInfo *CallStack_Impl__obj_sStaticStorageInfo = 0;
#endif
::hx::Class CallStack_Impl__obj::__mClass;
static ::String CallStack_Impl__obj_sStaticFields[] = {
HX_("callStack",ca,c1,4a,10),
HX_("exceptionStack",79,48,56,0b),
HX_("toString",ac,d0,6e,38),
HX_("subtract",14,75,11,f8),
HX_("equalItems",ac,df,65,63),
HX_("itemToString",df,1c,98,1c),
::String(null())
};
void CallStack_Impl__obj::__register()
{
CallStack_Impl__obj _hx_dummy;
CallStack_Impl__obj::_hx_vtable = *(void **)&_hx_dummy;
::hx::Static(__mClass) = new ::hx::Class_obj();
__mClass->mName = HX_("haxe._CallStack.CallStack_Impl_",0f,a8,ff,ba);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &CallStack_Impl__obj::__GetStatic;
__mClass->mSetStaticField = &::hx::Class_obj::SetNoStaticField;
__mClass->mStatics = ::hx::Class_obj::dupFunctions(CallStack_Impl__obj_sStaticFields);
__mClass->mMembers = ::hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = ::hx::TCanCast< CallStack_Impl__obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = CallStack_Impl__obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = CallStack_Impl__obj_sStaticStorageInfo;
#endif
::hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace _CallStack

View File

@@ -0,0 +1,118 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_Type
#include <Type.h>
#endif
#ifndef INCLUDED_haxe__Unserializer_DefaultResolver
#include <haxe/_Unserializer/DefaultResolver.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_2772e051d7a64ef8_474_new,"haxe._Unserializer.DefaultResolver","new",0xe2809ead,"haxe._Unserializer.DefaultResolver.new","/usr/share/haxe/std/haxe/Unserializer.hx",474,0x4786e765)
HX_LOCAL_STACK_FRAME(_hx_pos_2772e051d7a64ef8_477_resolveClass,"haxe._Unserializer.DefaultResolver","resolveClass",0xbc0d3dbf,"haxe._Unserializer.DefaultResolver.resolveClass","/usr/share/haxe/std/haxe/Unserializer.hx",477,0x4786e765)
HX_LOCAL_STACK_FRAME(_hx_pos_2772e051d7a64ef8_480_resolveEnum,"haxe._Unserializer.DefaultResolver","resolveEnum",0x8198f35a,"haxe._Unserializer.DefaultResolver.resolveEnum","/usr/share/haxe/std/haxe/Unserializer.hx",480,0x4786e765)
namespace haxe{
namespace _Unserializer{
void DefaultResolver_obj::__construct(){
HX_STACKFRAME(&_hx_pos_2772e051d7a64ef8_474_new)
}
Dynamic DefaultResolver_obj::__CreateEmpty() { return new DefaultResolver_obj; }
void *DefaultResolver_obj::_hx_vtable = 0;
Dynamic DefaultResolver_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< DefaultResolver_obj > _hx_result = new DefaultResolver_obj();
_hx_result->__construct();
return _hx_result;
}
bool DefaultResolver_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x2712964b;
}
hx::Class DefaultResolver_obj::resolveClass(::String name){
HX_STACKFRAME(&_hx_pos_2772e051d7a64ef8_477_resolveClass)
HXDLIN( 477) return ::Type_obj::resolveClass(name);
}
HX_DEFINE_DYNAMIC_FUNC1(DefaultResolver_obj,resolveClass,return )
hx::Class DefaultResolver_obj::resolveEnum(::String name){
HX_STACKFRAME(&_hx_pos_2772e051d7a64ef8_480_resolveEnum)
HXDLIN( 480) return ::Type_obj::resolveEnum(name);
}
HX_DEFINE_DYNAMIC_FUNC1(DefaultResolver_obj,resolveEnum,return )
hx::ObjectPtr< DefaultResolver_obj > DefaultResolver_obj::__new() {
hx::ObjectPtr< DefaultResolver_obj > __this = new DefaultResolver_obj();
__this->__construct();
return __this;
}
hx::ObjectPtr< DefaultResolver_obj > DefaultResolver_obj::__alloc(hx::Ctx *_hx_ctx) {
DefaultResolver_obj *__this = (DefaultResolver_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(DefaultResolver_obj), false, "haxe._Unserializer.DefaultResolver"));
*(void **)__this = DefaultResolver_obj::_hx_vtable;
__this->__construct();
return __this;
}
DefaultResolver_obj::DefaultResolver_obj()
{
}
hx::Val DefaultResolver_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 11:
if (HX_FIELD_EQ(inName,"resolveEnum") ) { return hx::Val( resolveEnum_dyn() ); }
break;
case 12:
if (HX_FIELD_EQ(inName,"resolveClass") ) { return hx::Val( resolveClass_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *DefaultResolver_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *DefaultResolver_obj_sStaticStorageInfo = 0;
#endif
static ::String DefaultResolver_obj_sMemberFields[] = {
HX_("resolveClass",ac,bd,dd,80),
HX_("resolveEnum",0d,90,51,de),
::String(null()) };
hx::Class DefaultResolver_obj::__mClass;
void DefaultResolver_obj::__register()
{
DefaultResolver_obj _hx_dummy;
DefaultResolver_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe._Unserializer.DefaultResolver",3b,c4,6e,72);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(DefaultResolver_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< DefaultResolver_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = DefaultResolver_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = DefaultResolver_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace _Unserializer

View File

@@ -0,0 +1,198 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_crypto_Adler32
#include <haxe/crypto/Adler32.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_haxe_io_Input
#include <haxe/io/Input.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_b64f62c53230518c_32_new,"haxe.crypto.Adler32","new",0xc900c8e2,"haxe.crypto.Adler32.new","/usr/share/haxe/std/haxe/crypto/Adler32.hx",32,0xa1b280e9)
HX_LOCAL_STACK_FRAME(_hx_pos_b64f62c53230518c_41_update,"haxe.crypto.Adler32","update",0xb4b14ac7,"haxe.crypto.Adler32.update","/usr/share/haxe/std/haxe/crypto/Adler32.hx",41,0xa1b280e9)
HX_LOCAL_STACK_FRAME(_hx_pos_b64f62c53230518c_53_equals,"haxe.crypto.Adler32","equals",0xed9eb2fd,"haxe.crypto.Adler32.equals","/usr/share/haxe/std/haxe/crypto/Adler32.hx",53,0xa1b280e9)
HX_LOCAL_STACK_FRAME(_hx_pos_b64f62c53230518c_60_read,"haxe.crypto.Adler32","read",0x1a53c494,"haxe.crypto.Adler32.read","/usr/share/haxe/std/haxe/crypto/Adler32.hx",60,0xa1b280e9)
namespace haxe{
namespace crypto{
void Adler32_obj::__construct(){
HX_STACKFRAME(&_hx_pos_b64f62c53230518c_32_new)
HXLINE( 33) this->a1 = 1;
HXLINE( 34) this->a2 = 0;
}
Dynamic Adler32_obj::__CreateEmpty() { return new Adler32_obj; }
void *Adler32_obj::_hx_vtable = 0;
Dynamic Adler32_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Adler32_obj > _hx_result = new Adler32_obj();
_hx_result->__construct();
return _hx_result;
}
bool Adler32_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x4f124546;
}
void Adler32_obj::update( ::haxe::io::Bytes b,int pos,int len){
HX_STACKFRAME(&_hx_pos_b64f62c53230518c_41_update)
HXLINE( 42) int a1 = this->a1;
HXDLIN( 42) int a2 = this->a2;
HXLINE( 43) {
HXLINE( 43) int _g = pos;
HXDLIN( 43) int _g1 = (pos + len);
HXDLIN( 43) while((_g < _g1)){
HXLINE( 43) _g = (_g + 1);
HXDLIN( 43) int p = (_g - 1);
HXLINE( 44) int c = ( (int)(b->b->__get(p)) );
HXLINE( 45) a1 = hx::Mod((a1 + c),65521);
HXLINE( 46) a2 = hx::Mod((a2 + a1),65521);
}
}
HXLINE( 48) this->a1 = a1;
HXLINE( 49) this->a2 = a2;
}
HX_DEFINE_DYNAMIC_FUNC3(Adler32_obj,update,(void))
bool Adler32_obj::equals( ::haxe::crypto::Adler32 a){
HX_STACKFRAME(&_hx_pos_b64f62c53230518c_53_equals)
HXDLIN( 53) if ((a->a1 == this->a1)) {
HXDLIN( 53) return (a->a2 == this->a2);
}
else {
HXDLIN( 53) return false;
}
HXDLIN( 53) return false;
}
HX_DEFINE_DYNAMIC_FUNC1(Adler32_obj,equals,return )
::haxe::crypto::Adler32 Adler32_obj::read( ::haxe::io::Input i){
HX_GC_STACKFRAME(&_hx_pos_b64f62c53230518c_60_read)
HXLINE( 61) ::haxe::crypto::Adler32 a = ::haxe::crypto::Adler32_obj::__alloc( HX_CTX );
HXLINE( 62) int a2a = i->readByte();
HXLINE( 63) int a2b = i->readByte();
HXLINE( 64) int a1a = i->readByte();
HXLINE( 65) int a1b = i->readByte();
HXLINE( 66) a->a1 = ((a1a << 8) | a1b);
HXLINE( 67) a->a2 = ((a2a << 8) | a2b);
HXLINE( 68) return a;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Adler32_obj,read,return )
hx::ObjectPtr< Adler32_obj > Adler32_obj::__new() {
hx::ObjectPtr< Adler32_obj > __this = new Adler32_obj();
__this->__construct();
return __this;
}
hx::ObjectPtr< Adler32_obj > Adler32_obj::__alloc(hx::Ctx *_hx_ctx) {
Adler32_obj *__this = (Adler32_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(Adler32_obj), false, "haxe.crypto.Adler32"));
*(void **)__this = Adler32_obj::_hx_vtable;
__this->__construct();
return __this;
}
Adler32_obj::Adler32_obj()
{
}
hx::Val Adler32_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 2:
if (HX_FIELD_EQ(inName,"a1") ) { return hx::Val( a1 ); }
if (HX_FIELD_EQ(inName,"a2") ) { return hx::Val( a2 ); }
break;
case 6:
if (HX_FIELD_EQ(inName,"update") ) { return hx::Val( update_dyn() ); }
if (HX_FIELD_EQ(inName,"equals") ) { return hx::Val( equals_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
bool Adler32_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"read") ) { outValue = read_dyn(); return true; }
}
return false;
}
hx::Val Adler32_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 2:
if (HX_FIELD_EQ(inName,"a1") ) { a1=inValue.Cast< int >(); return inValue; }
if (HX_FIELD_EQ(inName,"a2") ) { a2=inValue.Cast< int >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void Adler32_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("a1",b0,54,00,00));
outFields->push(HX_("a2",b1,54,00,00));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo Adler32_obj_sMemberStorageInfo[] = {
{hx::fsInt,(int)offsetof(Adler32_obj,a1),HX_("a1",b0,54,00,00)},
{hx::fsInt,(int)offsetof(Adler32_obj,a2),HX_("a2",b1,54,00,00)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *Adler32_obj_sStaticStorageInfo = 0;
#endif
static ::String Adler32_obj_sMemberFields[] = {
HX_("a1",b0,54,00,00),
HX_("a2",b1,54,00,00),
HX_("update",09,86,05,87),
HX_("equals",3f,ee,f2,bf),
::String(null()) };
hx::Class Adler32_obj::__mClass;
static ::String Adler32_obj_sStaticFields[] = {
HX_("read",56,4b,a7,4b),
::String(null())
};
void Adler32_obj::__register()
{
Adler32_obj _hx_dummy;
Adler32_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.crypto.Adler32",f0,6f,b6,6c);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &Adler32_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(Adler32_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(Adler32_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< Adler32_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Adler32_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Adler32_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace crypto

View File

@@ -0,0 +1,158 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_crypto_Base64
#include <haxe/crypto/Base64.h>
#endif
#ifndef INCLUDED_haxe_crypto_BaseCode
#include <haxe/crypto/BaseCode.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_haxe_io_Encoding
#include <haxe/io/Encoding.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_492d66c07fb5d45d_48_decode,"haxe.crypto.Base64","decode",0x319f7f68,"haxe.crypto.Base64.decode","/usr/share/haxe/std/haxe/crypto/Base64.hx",48,0x000efc8f)
HX_LOCAL_STACK_FRAME(_hx_pos_492d66c07fb5d45d_29_boot,"haxe.crypto.Base64","boot",0x49b2c3ec,"haxe.crypto.Base64.boot","/usr/share/haxe/std/haxe/crypto/Base64.hx",29,0x000efc8f)
HX_LOCAL_STACK_FRAME(_hx_pos_492d66c07fb5d45d_30_boot,"haxe.crypto.Base64","boot",0x49b2c3ec,"haxe.crypto.Base64.boot","/usr/share/haxe/std/haxe/crypto/Base64.hx",30,0x000efc8f)
namespace haxe{
namespace crypto{
void Base64_obj::__construct() { }
Dynamic Base64_obj::__CreateEmpty() { return new Base64_obj; }
void *Base64_obj::_hx_vtable = 0;
Dynamic Base64_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Base64_obj > _hx_result = new Base64_obj();
_hx_result->__construct();
return _hx_result;
}
bool Base64_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x65bbd7fa;
}
::String Base64_obj::CHARS;
::haxe::io::Bytes Base64_obj::BYTES;
::haxe::io::Bytes Base64_obj::decode(::String str,hx::Null< bool > __o_complement){
bool complement = __o_complement.Default(true);
HX_GC_STACKFRAME(&_hx_pos_492d66c07fb5d45d_48_decode)
HXLINE( 49) if (complement) {
HXLINE( 50) while(hx::IsEq( str.charCodeAt((str.length - 1)),61 )){
HXLINE( 51) str = str.substr(0,-1);
}
}
HXLINE( 52) ::haxe::crypto::BaseCode _hx_tmp = ::haxe::crypto::BaseCode_obj::__alloc( HX_CTX ,::haxe::crypto::Base64_obj::BYTES);
HXDLIN( 52) return _hx_tmp->decodeBytes(::haxe::io::Bytes_obj::ofString(str,null()));
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(Base64_obj,decode,return )
Base64_obj::Base64_obj()
{
}
bool Base64_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 5:
if (HX_FIELD_EQ(inName,"CHARS") ) { outValue = ( CHARS ); return true; }
if (HX_FIELD_EQ(inName,"BYTES") ) { outValue = ( BYTES ); return true; }
break;
case 6:
if (HX_FIELD_EQ(inName,"decode") ) { outValue = decode_dyn(); return true; }
}
return false;
}
bool Base64_obj::__SetStatic(const ::String &inName,Dynamic &ioValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 5:
if (HX_FIELD_EQ(inName,"CHARS") ) { CHARS=ioValue.Cast< ::String >(); return true; }
if (HX_FIELD_EQ(inName,"BYTES") ) { BYTES=ioValue.Cast< ::haxe::io::Bytes >(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *Base64_obj_sMemberStorageInfo = 0;
static hx::StaticInfo Base64_obj_sStaticStorageInfo[] = {
{hx::fsString,(void *) &Base64_obj::CHARS,HX_("CHARS",bd,d4,a1,c3)},
{hx::fsObject /* ::haxe::io::Bytes */ ,(void *) &Base64_obj::BYTES,HX_("BYTES",4b,40,86,3b)},
{ hx::fsUnknown, 0, null()}
};
#endif
static void Base64_obj_sMarkStatics(HX_MARK_PARAMS) {
HX_MARK_MEMBER_NAME(Base64_obj::CHARS,"CHARS");
HX_MARK_MEMBER_NAME(Base64_obj::BYTES,"BYTES");
};
#ifdef HXCPP_VISIT_ALLOCS
static void Base64_obj_sVisitStatics(HX_VISIT_PARAMS) {
HX_VISIT_MEMBER_NAME(Base64_obj::CHARS,"CHARS");
HX_VISIT_MEMBER_NAME(Base64_obj::BYTES,"BYTES");
};
#endif
hx::Class Base64_obj::__mClass;
static ::String Base64_obj_sStaticFields[] = {
HX_("CHARS",bd,d4,a1,c3),
HX_("BYTES",4b,40,86,3b),
HX_("decode",2e,5d,ed,64),
::String(null())
};
void Base64_obj::__register()
{
Base64_obj _hx_dummy;
Base64_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.crypto.Base64",f4,3a,39,e7);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &Base64_obj::__GetStatic;
__mClass->mSetStaticField = &Base64_obj::__SetStatic;
__mClass->mMarkFunc = Base64_obj_sMarkStatics;
__mClass->mStatics = hx::Class_obj::dupFunctions(Base64_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< Base64_obj >;
#ifdef HXCPP_VISIT_ALLOCS
__mClass->mVisitFunc = Base64_obj_sVisitStatics;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Base64_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Base64_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
void Base64_obj::__boot()
{
{
HX_STACKFRAME(&_hx_pos_492d66c07fb5d45d_29_boot)
HXDLIN( 29) CHARS = HX_("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",03,41,03,7f);
}
{
HX_STACKFRAME(&_hx_pos_492d66c07fb5d45d_30_boot)
HXDLIN( 30) BYTES = ::haxe::io::Bytes_obj::ofString(::haxe::crypto::Base64_obj::CHARS,null());
}
}
} // end namespace haxe
} // end namespace crypto

View File

@@ -0,0 +1,238 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_crypto_BaseCode
#include <haxe/crypto/BaseCode.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_bcdbedb757785a37_33_new,"haxe.crypto.BaseCode","new",0xd63c60f5,"haxe.crypto.BaseCode.new","/usr/share/haxe/std/haxe/crypto/BaseCode.hx",33,0x2847b3a0)
HX_LOCAL_STACK_FRAME(_hx_pos_bcdbedb757785a37_72_initTable,"haxe.crypto.BaseCode","initTable",0xa1288133,"haxe.crypto.BaseCode.initTable","/usr/share/haxe/std/haxe/crypto/BaseCode.hx",72,0x2847b3a0)
HX_LOCAL_STACK_FRAME(_hx_pos_bcdbedb757785a37_81_decodeBytes,"haxe.crypto.BaseCode","decodeBytes",0x152c41f2,"haxe.crypto.BaseCode.decodeBytes","/usr/share/haxe/std/haxe/crypto/BaseCode.hx",81,0x2847b3a0)
namespace haxe{
namespace crypto{
void BaseCode_obj::__construct( ::haxe::io::Bytes base){
HX_STACKFRAME(&_hx_pos_bcdbedb757785a37_33_new)
HXLINE( 34) int len = base->length;
HXLINE( 35) int nbits = 1;
HXLINE( 36) while((len > (1 << nbits))){
HXLINE( 37) nbits = (nbits + 1);
}
HXLINE( 38) bool _hx_tmp;
HXDLIN( 38) if ((nbits <= 8)) {
HXLINE( 38) _hx_tmp = (len != (1 << nbits));
}
else {
HXLINE( 38) _hx_tmp = true;
}
HXDLIN( 38) if (_hx_tmp) {
HXLINE( 39) HX_STACK_DO_THROW(HX_("BaseCode : base length must be a power of two.",78,b6,c8,ca));
}
HXLINE( 40) this->base = base;
HXLINE( 41) this->nbits = nbits;
}
Dynamic BaseCode_obj::__CreateEmpty() { return new BaseCode_obj; }
void *BaseCode_obj::_hx_vtable = 0;
Dynamic BaseCode_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< BaseCode_obj > _hx_result = new BaseCode_obj();
_hx_result->__construct(inArgs[0]);
return _hx_result;
}
bool BaseCode_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x234bc1a5;
}
void BaseCode_obj::initTable(){
HX_STACKFRAME(&_hx_pos_bcdbedb757785a37_72_initTable)
HXLINE( 73) ::Array< int > tbl = ::Array_obj< int >::__new();
HXLINE( 74) {
HXLINE( 74) int _g = 0;
HXDLIN( 74) while((_g < 256)){
HXLINE( 74) _g = (_g + 1);
HXDLIN( 74) int i = (_g - 1);
HXLINE( 75) tbl[i] = -1;
}
}
HXLINE( 76) {
HXLINE( 76) int _g1 = 0;
HXDLIN( 76) int _g2 = this->base->length;
HXDLIN( 76) while((_g1 < _g2)){
HXLINE( 76) _g1 = (_g1 + 1);
HXDLIN( 76) int i1 = (_g1 - 1);
HXLINE( 77) tbl[( (int)(this->base->b->__get(i1)) )] = i1;
}
}
HXLINE( 78) this->tbl = tbl;
}
HX_DEFINE_DYNAMIC_FUNC0(BaseCode_obj,initTable,(void))
::haxe::io::Bytes BaseCode_obj::decodeBytes( ::haxe::io::Bytes b){
HX_STACKFRAME(&_hx_pos_bcdbedb757785a37_81_decodeBytes)
HXLINE( 85) int nbits = this->nbits;
HXLINE( 86) ::haxe::io::Bytes base = this->base;
HXLINE( 87) if (hx::IsNull( this->tbl )) {
HXLINE( 88) this->initTable();
}
HXLINE( 89) ::Array< int > tbl = this->tbl;
HXLINE( 90) int size = ((b->length * nbits) >> 3);
HXLINE( 91) ::haxe::io::Bytes out = ::haxe::io::Bytes_obj::alloc(size);
HXLINE( 92) int buf = 0;
HXLINE( 93) int curbits = 0;
HXLINE( 94) int pin = 0;
HXLINE( 95) int pout = 0;
HXLINE( 96) while((pout < size)){
HXLINE( 97) while((curbits < 8)){
HXLINE( 98) curbits = (curbits + nbits);
HXLINE( 99) buf = (buf << nbits);
HXLINE( 100) pin = (pin + 1);
HXDLIN( 100) int i = tbl->__get(( (int)(b->b->__get((pin - 1))) ));
HXLINE( 101) if ((i == -1)) {
HXLINE( 102) HX_STACK_DO_THROW(HX_("BaseCode : invalid encoded char",f9,14,33,18));
}
HXLINE( 103) buf = (buf | i);
}
HXLINE( 105) curbits = (curbits - 8);
HXLINE( 106) {
HXLINE( 106) pout = (pout + 1);
HXDLIN( 106) out->b[(pout - 1)] = ( (unsigned char)(((buf >> curbits) & 255)) );
}
}
HXLINE( 108) return out;
}
HX_DEFINE_DYNAMIC_FUNC1(BaseCode_obj,decodeBytes,return )
hx::ObjectPtr< BaseCode_obj > BaseCode_obj::__new( ::haxe::io::Bytes base) {
hx::ObjectPtr< BaseCode_obj > __this = new BaseCode_obj();
__this->__construct(base);
return __this;
}
hx::ObjectPtr< BaseCode_obj > BaseCode_obj::__alloc(hx::Ctx *_hx_ctx, ::haxe::io::Bytes base) {
BaseCode_obj *__this = (BaseCode_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(BaseCode_obj), true, "haxe.crypto.BaseCode"));
*(void **)__this = BaseCode_obj::_hx_vtable;
__this->__construct(base);
return __this;
}
BaseCode_obj::BaseCode_obj()
{
}
void BaseCode_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(BaseCode);
HX_MARK_MEMBER_NAME(base,"base");
HX_MARK_MEMBER_NAME(nbits,"nbits");
HX_MARK_MEMBER_NAME(tbl,"tbl");
HX_MARK_END_CLASS();
}
void BaseCode_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(base,"base");
HX_VISIT_MEMBER_NAME(nbits,"nbits");
HX_VISIT_MEMBER_NAME(tbl,"tbl");
}
hx::Val BaseCode_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 3:
if (HX_FIELD_EQ(inName,"tbl") ) { return hx::Val( tbl ); }
break;
case 4:
if (HX_FIELD_EQ(inName,"base") ) { return hx::Val( base ); }
break;
case 5:
if (HX_FIELD_EQ(inName,"nbits") ) { return hx::Val( nbits ); }
break;
case 9:
if (HX_FIELD_EQ(inName,"initTable") ) { return hx::Val( initTable_dyn() ); }
break;
case 11:
if (HX_FIELD_EQ(inName,"decodeBytes") ) { return hx::Val( decodeBytes_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val BaseCode_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 3:
if (HX_FIELD_EQ(inName,"tbl") ) { tbl=inValue.Cast< ::Array< int > >(); return inValue; }
break;
case 4:
if (HX_FIELD_EQ(inName,"base") ) { base=inValue.Cast< ::haxe::io::Bytes >(); return inValue; }
break;
case 5:
if (HX_FIELD_EQ(inName,"nbits") ) { nbits=inValue.Cast< int >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void BaseCode_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("base",11,e8,10,41));
outFields->push(HX_("nbits",74,ca,2a,97));
outFields->push(HX_("tbl",3e,5b,58,00));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo BaseCode_obj_sMemberStorageInfo[] = {
{hx::fsObject /* ::haxe::io::Bytes */ ,(int)offsetof(BaseCode_obj,base),HX_("base",11,e8,10,41)},
{hx::fsInt,(int)offsetof(BaseCode_obj,nbits),HX_("nbits",74,ca,2a,97)},
{hx::fsObject /* ::Array< int > */ ,(int)offsetof(BaseCode_obj,tbl),HX_("tbl",3e,5b,58,00)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *BaseCode_obj_sStaticStorageInfo = 0;
#endif
static ::String BaseCode_obj_sMemberFields[] = {
HX_("base",11,e8,10,41),
HX_("nbits",74,ca,2a,97),
HX_("tbl",3e,5b,58,00),
HX_("initTable",de,d2,75,26),
HX_("decodeBytes",5d,94,b1,85),
::String(null()) };
hx::Class BaseCode_obj::__mClass;
void BaseCode_obj::__register()
{
BaseCode_obj _hx_dummy;
BaseCode_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.crypto.BaseCode",83,c2,f9,1c);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(BaseCode_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< BaseCode_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = BaseCode_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = BaseCode_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace crypto

View File

@@ -0,0 +1,302 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_ds_ArraySort
#include <haxe/ds/ArraySort.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_fa20da0b9cf5591b_43_sort,"haxe.ds.ArraySort","sort",0xa0749d6c,"haxe.ds.ArraySort.sort","/usr/share/haxe/std/haxe/ds/ArraySort.hx",43,0x388bf179)
HX_LOCAL_STACK_FRAME(_hx_pos_fa20da0b9cf5591b_46_rec,"haxe.ds.ArraySort","rec",0xd9af5f02,"haxe.ds.ArraySort.rec","/usr/share/haxe/std/haxe/ds/ArraySort.hx",46,0x388bf179)
HX_LOCAL_STACK_FRAME(_hx_pos_fa20da0b9cf5591b_68_doMerge,"haxe.ds.ArraySort","doMerge",0x66c5c9df,"haxe.ds.ArraySort.doMerge","/usr/share/haxe/std/haxe/ds/ArraySort.hx",68,0x388bf179)
HX_LOCAL_STACK_FRAME(_hx_pos_fa20da0b9cf5591b_94_rotate,"haxe.ds.ArraySort","rotate",0xb7d0dbe9,"haxe.ds.ArraySort.rotate","/usr/share/haxe/std/haxe/ds/ArraySort.hx",94,0x388bf179)
HX_LOCAL_STACK_FRAME(_hx_pos_fa20da0b9cf5591b_115_gcd,"haxe.ds.ArraySort","gcd",0xd9a7047a,"haxe.ds.ArraySort.gcd","/usr/share/haxe/std/haxe/ds/ArraySort.hx",115,0x388bf179)
HX_LOCAL_STACK_FRAME(_hx_pos_fa20da0b9cf5591b_124_upper,"haxe.ds.ArraySort","upper",0xed09ef94,"haxe.ds.ArraySort.upper","/usr/share/haxe/std/haxe/ds/ArraySort.hx",124,0x388bf179)
HX_LOCAL_STACK_FRAME(_hx_pos_fa20da0b9cf5591b_139_lower,"haxe.ds.ArraySort","lower",0xbdcad033,"haxe.ds.ArraySort.lower","/usr/share/haxe/std/haxe/ds/ArraySort.hx",139,0x388bf179)
HX_LOCAL_STACK_FRAME(_hx_pos_fa20da0b9cf5591b_153_swap,"haxe.ds.ArraySort","swap",0xa07aa0a1,"haxe.ds.ArraySort.swap","/usr/share/haxe/std/haxe/ds/ArraySort.hx",153,0x388bf179)
namespace haxe{
namespace ds{
void ArraySort_obj::__construct() { }
Dynamic ArraySort_obj::__CreateEmpty() { return new ArraySort_obj; }
void *ArraySort_obj::_hx_vtable = 0;
Dynamic ArraySort_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< ArraySort_obj > _hx_result = new ArraySort_obj();
_hx_result->__construct();
return _hx_result;
}
bool ArraySort_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x7ffbe7fa;
}
void ArraySort_obj::sort(::cpp::VirtualArray a, ::Dynamic cmp){
HX_STACKFRAME(&_hx_pos_fa20da0b9cf5591b_43_sort)
HXDLIN( 43) ::haxe::ds::ArraySort_obj::rec(a,cmp,0,a->get_length());
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(ArraySort_obj,sort,(void))
void ArraySort_obj::rec(::cpp::VirtualArray a, ::Dynamic cmp,int from,int to){
HX_STACKFRAME(&_hx_pos_fa20da0b9cf5591b_46_rec)
HXLINE( 47) int middle = ((from + to) >> 1);
HXLINE( 48) if (((to - from) < 12)) {
HXLINE( 49) if ((to <= from)) {
HXLINE( 50) return;
}
HXLINE( 51) {
HXLINE( 51) int _g = (from + 1);
HXDLIN( 51) int _g1 = to;
HXDLIN( 51) while((_g < _g1)){
HXLINE( 51) _g = (_g + 1);
HXDLIN( 51) int i = (_g - 1);
HXLINE( 52) int j = i;
HXLINE( 53) while((j > from)){
HXLINE( 54) if (hx::IsLess( cmp(a->__get(j),a->__get((j - 1))),0 )) {
HXLINE( 55) ::haxe::ds::ArraySort_obj::swap(a,(j - 1),j);
}
else {
HXLINE( 57) goto _hx_goto_2;
}
HXLINE( 58) j = (j - 1);
}
_hx_goto_2:;
}
}
HXLINE( 61) return;
}
HXLINE( 63) ::haxe::ds::ArraySort_obj::rec(a,cmp,from,middle);
HXLINE( 64) ::haxe::ds::ArraySort_obj::rec(a,cmp,middle,to);
HXLINE( 65) ::haxe::ds::ArraySort_obj::doMerge(a,cmp,from,middle,to,(middle - from),(to - middle));
}
STATIC_HX_DEFINE_DYNAMIC_FUNC4(ArraySort_obj,rec,(void))
void ArraySort_obj::doMerge(::cpp::VirtualArray a, ::Dynamic cmp,int from,int pivot,int to,int len1,int len2){
HX_STACKFRAME(&_hx_pos_fa20da0b9cf5591b_68_doMerge)
HXLINE( 69) int first_cut;
HXDLIN( 69) int second_cut;
HXDLIN( 69) int len11;
HXDLIN( 69) int len22;
HXLINE( 70) bool _hx_tmp;
HXDLIN( 70) if ((len1 != 0)) {
HXLINE( 70) _hx_tmp = (len2 == 0);
}
else {
HXLINE( 70) _hx_tmp = true;
}
HXDLIN( 70) if (_hx_tmp) {
HXLINE( 71) return;
}
HXLINE( 72) if (((len1 + len2) == 2)) {
HXLINE( 73) if (hx::IsLess( cmp(a->__get(pivot),a->__get(from)),0 )) {
HXLINE( 74) ::haxe::ds::ArraySort_obj::swap(a,pivot,from);
}
HXLINE( 75) return;
}
HXLINE( 77) if ((len1 > len2)) {
HXLINE( 78) len11 = (len1 >> 1);
HXLINE( 79) first_cut = (from + len11);
HXLINE( 80) second_cut = ::haxe::ds::ArraySort_obj::lower(a,cmp,pivot,to,first_cut);
HXLINE( 81) len22 = (second_cut - pivot);
}
else {
HXLINE( 83) len22 = (len2 >> 1);
HXLINE( 84) second_cut = (pivot + len22);
HXLINE( 85) first_cut = ::haxe::ds::ArraySort_obj::upper(a,cmp,from,pivot,second_cut);
HXLINE( 86) len11 = (first_cut - from);
}
HXLINE( 88) ::haxe::ds::ArraySort_obj::rotate(a,cmp,first_cut,pivot,second_cut);
HXLINE( 69) int new_mid = (first_cut + len22);
HXLINE( 90) ::haxe::ds::ArraySort_obj::doMerge(a,cmp,from,first_cut,new_mid,len11,len22);
HXLINE( 91) ::haxe::ds::ArraySort_obj::doMerge(a,cmp,new_mid,second_cut,to,(len1 - len11),(len2 - len22));
}
STATIC_HX_DEFINE_DYNAMIC_FUNC7(ArraySort_obj,doMerge,(void))
void ArraySort_obj::rotate(::cpp::VirtualArray a, ::Dynamic cmp,int from,int mid,int to){
HX_STACKFRAME(&_hx_pos_fa20da0b9cf5591b_94_rotate)
HXLINE( 96) bool _hx_tmp;
HXDLIN( 96) if ((from != mid)) {
HXLINE( 96) _hx_tmp = (mid == to);
}
else {
HXLINE( 96) _hx_tmp = true;
}
HXDLIN( 96) if (_hx_tmp) {
HXLINE( 97) return;
}
HXLINE( 95) int n = ::haxe::ds::ArraySort_obj::gcd((to - from),(mid - from));
HXLINE( 99) while(true){
HXLINE( 99) n = (n - 1);
HXDLIN( 99) if (!(((n + 1) != 0))) {
HXLINE( 99) goto _hx_goto_5;
}
HXLINE( 100) ::Dynamic val = a->__get((from + n));
HXLINE( 101) int shift = (mid - from);
HXLINE( 102) int p1 = (from + n);
HXDLIN( 102) int p2 = ((from + n) + shift);
HXLINE( 103) while((p2 != (from + n))){
HXLINE( 104) a->set(p1,a->__get(p2));
HXLINE( 105) p1 = p2;
HXLINE( 106) if (((to - p2) > shift)) {
HXLINE( 107) p2 = (p2 + shift);
}
else {
HXLINE( 109) p2 = (from + (shift - (to - p2)));
}
}
HXLINE( 111) a->set(p1,val);
}
_hx_goto_5:;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC5(ArraySort_obj,rotate,(void))
int ArraySort_obj::gcd(int m,int n){
HX_STACKFRAME(&_hx_pos_fa20da0b9cf5591b_115_gcd)
HXLINE( 116) while((n != 0)){
HXLINE( 117) int t = hx::Mod(m,n);
HXLINE( 118) m = n;
HXLINE( 119) n = t;
}
HXLINE( 121) return m;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(ArraySort_obj,gcd,return )
int ArraySort_obj::upper(::cpp::VirtualArray a, ::Dynamic cmp,int from,int to,int val){
HX_STACKFRAME(&_hx_pos_fa20da0b9cf5591b_124_upper)
HXLINE( 125) int len = (to - from);
HXDLIN( 125) int half;
HXDLIN( 125) int mid;
HXLINE( 126) while((len > 0)){
HXLINE( 127) half = (len >> 1);
HXLINE( 128) mid = (from + half);
HXLINE( 129) if (hx::IsLess( cmp(a->__get(val),a->__get(mid)),0 )) {
HXLINE( 130) len = half;
}
else {
HXLINE( 132) from = (mid + 1);
HXLINE( 133) len = ((len - half) - 1);
}
}
HXLINE( 136) return from;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC5(ArraySort_obj,upper,return )
int ArraySort_obj::lower(::cpp::VirtualArray a, ::Dynamic cmp,int from,int to,int val){
HX_STACKFRAME(&_hx_pos_fa20da0b9cf5591b_139_lower)
HXLINE( 140) int len = (to - from);
HXDLIN( 140) int half;
HXDLIN( 140) int mid;
HXLINE( 141) while((len > 0)){
HXLINE( 142) half = (len >> 1);
HXLINE( 143) mid = (from + half);
HXLINE( 144) if (hx::IsLess( cmp(a->__get(mid),a->__get(val)),0 )) {
HXLINE( 145) from = (mid + 1);
HXLINE( 146) len = ((len - half) - 1);
}
else {
HXLINE( 148) len = half;
}
}
HXLINE( 150) return from;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC5(ArraySort_obj,lower,return )
void ArraySort_obj::swap(::cpp::VirtualArray a,int i,int j){
HX_STACKFRAME(&_hx_pos_fa20da0b9cf5591b_153_swap)
HXLINE( 154) ::Dynamic tmp = a->__get(i);
HXLINE( 155) a->set(i,a->__get(j));
HXLINE( 156) a->set(j,tmp);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC3(ArraySort_obj,swap,(void))
ArraySort_obj::ArraySort_obj()
{
}
bool ArraySort_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 3:
if (HX_FIELD_EQ(inName,"rec") ) { outValue = rec_dyn(); return true; }
if (HX_FIELD_EQ(inName,"gcd") ) { outValue = gcd_dyn(); return true; }
break;
case 4:
if (HX_FIELD_EQ(inName,"sort") ) { outValue = sort_dyn(); return true; }
if (HX_FIELD_EQ(inName,"swap") ) { outValue = swap_dyn(); return true; }
break;
case 5:
if (HX_FIELD_EQ(inName,"upper") ) { outValue = upper_dyn(); return true; }
if (HX_FIELD_EQ(inName,"lower") ) { outValue = lower_dyn(); return true; }
break;
case 6:
if (HX_FIELD_EQ(inName,"rotate") ) { outValue = rotate_dyn(); return true; }
break;
case 7:
if (HX_FIELD_EQ(inName,"doMerge") ) { outValue = doMerge_dyn(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *ArraySort_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *ArraySort_obj_sStaticStorageInfo = 0;
#endif
hx::Class ArraySort_obj::__mClass;
static ::String ArraySort_obj_sStaticFields[] = {
HX_("sort",5e,27,58,4c),
HX_("rec",50,d9,56,00),
HX_("doMerge",2d,83,f3,38),
HX_("rotate",5b,46,20,cb),
HX_("gcd",c8,7e,4e,00),
HX_("upper",62,19,3f,a8),
HX_("lower",01,fa,ff,78),
HX_("swap",93,2a,5e,4c),
::String(null())
};
void ArraySort_obj::__register()
{
ArraySort_obj _hx_dummy;
ArraySort_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.ds.ArraySort",20,a5,e7,30);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &ArraySort_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(ArraySort_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< ArraySort_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = ArraySort_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = ArraySort_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace ds

View File

@@ -0,0 +1,230 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_IMap
#include <haxe/IMap.h>
#endif
#ifndef INCLUDED_haxe_ds_IntMap
#include <haxe/ds/IntMap.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_ea7d64f2778d6ef4_58_new,"haxe.ds.IntMap","new",0x7222c4b6,"haxe.ds.IntMap.new","/usr/share/haxe/std/cpp/_std/haxe/ds/IntMap.hx",58,0x7404b096)
HX_LOCAL_STACK_FRAME(_hx_pos_ea7d64f2778d6ef4_61_set,"haxe.ds.IntMap","set",0x72268ff8,"haxe.ds.IntMap.set","/usr/share/haxe/std/cpp/_std/haxe/ds/IntMap.hx",61,0x7404b096)
HX_LOCAL_STACK_FRAME(_hx_pos_ea7d64f2778d6ef4_65_get,"haxe.ds.IntMap","get",0x721d74ec,"haxe.ds.IntMap.get","/usr/share/haxe/std/cpp/_std/haxe/ds/IntMap.hx",65,0x7404b096)
HX_LOCAL_STACK_FRAME(_hx_pos_ea7d64f2778d6ef4_69_exists,"haxe.ds.IntMap","exists",0x63ba0346,"haxe.ds.IntMap.exists","/usr/share/haxe/std/cpp/_std/haxe/ds/IntMap.hx",69,0x7404b096)
HX_LOCAL_STACK_FRAME(_hx_pos_ea7d64f2778d6ef4_73_remove,"haxe.ds.IntMap","remove",0xa86281ae,"haxe.ds.IntMap.remove","/usr/share/haxe/std/cpp/_std/haxe/ds/IntMap.hx",73,0x7404b096)
HX_LOCAL_STACK_FRAME(_hx_pos_ea7d64f2778d6ef4_76_keys,"haxe.ds.IntMap","keys",0x6a4db8de,"haxe.ds.IntMap.keys","/usr/share/haxe/std/cpp/_std/haxe/ds/IntMap.hx",76,0x7404b096)
HX_LOCAL_STACK_FRAME(_hx_pos_ea7d64f2778d6ef4_81_iterator,"haxe.ds.IntMap","iterator",0x4dc7ddd8,"haxe.ds.IntMap.iterator","/usr/share/haxe/std/cpp/_std/haxe/ds/IntMap.hx",81,0x7404b096)
namespace haxe{
namespace ds{
void IntMap_obj::__construct(){
HX_STACKFRAME(&_hx_pos_ea7d64f2778d6ef4_58_new)
}
Dynamic IntMap_obj::__CreateEmpty() { return new IntMap_obj; }
void *IntMap_obj::_hx_vtable = 0;
Dynamic IntMap_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< IntMap_obj > _hx_result = new IntMap_obj();
_hx_result->__construct();
return _hx_result;
}
bool IntMap_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x50b86242;
}
static ::haxe::IMap_obj _hx_haxe_ds_IntMap__hx_haxe_IMap= {
( void (hx::Object::*)( ::Dynamic, ::Dynamic))&::haxe::ds::IntMap_obj::set_41d0cb46,
( bool (hx::Object::*)( ::Dynamic))&::haxe::ds::IntMap_obj::exists_5889326f,
( bool (hx::Object::*)( ::Dynamic))&::haxe::ds::IntMap_obj::remove_5889326f,
};
bool IntMap_obj::remove_5889326f( ::Dynamic k) {
return remove(k);
}
bool IntMap_obj::exists_5889326f( ::Dynamic k) {
return exists(k);
}
void IntMap_obj::set_41d0cb46( ::Dynamic k, ::Dynamic v) {
set(k,v);
}
void *IntMap_obj::_hx_getInterface(int inHash) {
switch(inHash) {
case (int)0x09c2bd39: return &_hx_haxe_ds_IntMap__hx_haxe_IMap;
}
#ifdef HXCPP_SCRIPTABLE
return super::_hx_getInterface(inHash);
#else
return 0;
#endif
}
void IntMap_obj::set(int key, ::Dynamic value){
HX_STACKFRAME(&_hx_pos_ea7d64f2778d6ef4_61_set)
HXDLIN( 61) ::__int_hash_set(HX_MAP_THIS,key,value);
}
HX_DEFINE_DYNAMIC_FUNC2(IntMap_obj,set,(void))
::Dynamic IntMap_obj::get(int key){
HX_STACKFRAME(&_hx_pos_ea7d64f2778d6ef4_65_get)
HXDLIN( 65) return ::__int_hash_get(this->h,key);
}
HX_DEFINE_DYNAMIC_FUNC1(IntMap_obj,get,return )
bool IntMap_obj::exists(int key){
HX_STACKFRAME(&_hx_pos_ea7d64f2778d6ef4_69_exists)
HXDLIN( 69) return ::__int_hash_exists(this->h,key);
}
HX_DEFINE_DYNAMIC_FUNC1(IntMap_obj,exists,return )
bool IntMap_obj::remove(int key){
HX_STACKFRAME(&_hx_pos_ea7d64f2778d6ef4_73_remove)
HXDLIN( 73) return ::__int_hash_remove(this->h,key);
}
HX_DEFINE_DYNAMIC_FUNC1(IntMap_obj,remove,return )
::Dynamic IntMap_obj::keys(){
HX_STACKFRAME(&_hx_pos_ea7d64f2778d6ef4_76_keys)
HXLINE( 77) ::Array< int > a = ::__int_hash_keys(this->h);
HXLINE( 78) return a->iterator();
}
HX_DEFINE_DYNAMIC_FUNC0(IntMap_obj,keys,return )
::Dynamic IntMap_obj::iterator(){
HX_STACKFRAME(&_hx_pos_ea7d64f2778d6ef4_81_iterator)
HXLINE( 82) ::cpp::VirtualArray a = ::__int_hash_values(this->h);
HXLINE( 83) return a->iterator();
}
HX_DEFINE_DYNAMIC_FUNC0(IntMap_obj,iterator,return )
hx::ObjectPtr< IntMap_obj > IntMap_obj::__new() {
hx::ObjectPtr< IntMap_obj > __this = new IntMap_obj();
__this->__construct();
return __this;
}
hx::ObjectPtr< IntMap_obj > IntMap_obj::__alloc(hx::Ctx *_hx_ctx) {
IntMap_obj *__this = (IntMap_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(IntMap_obj), true, "haxe.ds.IntMap"));
*(void **)__this = IntMap_obj::_hx_vtable;
__this->__construct();
return __this;
}
IntMap_obj::IntMap_obj()
{
}
void IntMap_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(IntMap);
HX_MARK_MEMBER_NAME(h,"h");
HX_MARK_END_CLASS();
}
void IntMap_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(h,"h");
}
hx::Val IntMap_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"h") ) { return hx::Val( h ); }
break;
case 3:
if (HX_FIELD_EQ(inName,"set") ) { return hx::Val( set_dyn() ); }
if (HX_FIELD_EQ(inName,"get") ) { return hx::Val( get_dyn() ); }
break;
case 4:
if (HX_FIELD_EQ(inName,"keys") ) { return hx::Val( keys_dyn() ); }
break;
case 6:
if (HX_FIELD_EQ(inName,"exists") ) { return hx::Val( exists_dyn() ); }
if (HX_FIELD_EQ(inName,"remove") ) { return hx::Val( remove_dyn() ); }
break;
case 8:
if (HX_FIELD_EQ(inName,"iterator") ) { return hx::Val( iterator_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val IntMap_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"h") ) { h=inValue.Cast< ::Dynamic >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void IntMap_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("h",68,00,00,00));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo IntMap_obj_sMemberStorageInfo[] = {
{hx::fsObject /* ::Dynamic */ ,(int)offsetof(IntMap_obj,h),HX_("h",68,00,00,00)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *IntMap_obj_sStaticStorageInfo = 0;
#endif
static ::String IntMap_obj_sMemberFields[] = {
HX_("h",68,00,00,00),
HX_("set",a2,9b,57,00),
HX_("get",96,80,4e,00),
HX_("exists",dc,1d,e0,bf),
HX_("remove",44,9c,88,04),
HX_("keys",f4,e1,06,47),
HX_("iterator",ee,49,9a,93),
::String(null()) };
hx::Class IntMap_obj::__mClass;
void IntMap_obj::__register()
{
IntMap_obj _hx_dummy;
IntMap_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.ds.IntMap",c4,f1,10,1f);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(IntMap_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< IntMap_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = IntMap_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = IntMap_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace ds

View File

@@ -0,0 +1,266 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_ds_List
#include <haxe/ds/List.h>
#endif
#ifndef INCLUDED_haxe_ds__List_ListIterator
#include <haxe/ds/_List/ListIterator.h>
#endif
#ifndef INCLUDED_haxe_ds__List_ListNode
#include <haxe/ds/_List/ListNode.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_109688f3b41df45c_45_new,"haxe.ds.List","new",0x82be24e7,"haxe.ds.List.new","/usr/share/haxe/std/haxe/ds/List.hx",45,0xd0d1e26e)
HX_LOCAL_STACK_FRAME(_hx_pos_109688f3b41df45c_53_add,"haxe.ds.List","add",0x82b446a8,"haxe.ds.List.add","/usr/share/haxe/std/haxe/ds/List.hx",53,0xd0d1e26e)
HX_LOCAL_STACK_FRAME(_hx_pos_109688f3b41df45c_68_push,"haxe.ds.List","push",0xe500b373,"haxe.ds.List.push","/usr/share/haxe/std/haxe/ds/List.hx",68,0xd0d1e26e)
HX_LOCAL_STACK_FRAME(_hx_pos_109688f3b41df45c_99_pop,"haxe.ds.List","pop",0x82bfb218,"haxe.ds.List.pop","/usr/share/haxe/std/haxe/ds/List.hx",99,0xd0d1e26e)
HX_LOCAL_STACK_FRAME(_hx_pos_109688f3b41df45c_123_clear,"haxe.ds.List","clear",0xf96935d4,"haxe.ds.List.clear","/usr/share/haxe/std/haxe/ds/List.hx",123,0xd0d1e26e)
HX_LOCAL_STACK_FRAME(_hx_pos_109688f3b41df45c_137_remove,"haxe.ds.List","remove",0x3f86961d,"haxe.ds.List.remove","/usr/share/haxe/std/haxe/ds/List.hx",137,0xd0d1e26e)
HX_LOCAL_STACK_FRAME(_hx_pos_109688f3b41df45c_161_iterator,"haxe.ds.List","iterator",0x056d2c07,"haxe.ds.List.iterator","/usr/share/haxe/std/haxe/ds/List.hx",161,0xd0d1e26e)
namespace haxe{
namespace ds{
void List_obj::__construct(){
HX_STACKFRAME(&_hx_pos_109688f3b41df45c_45_new)
HXDLIN( 45) this->length = 0;
}
Dynamic List_obj::__CreateEmpty() { return new List_obj; }
void *List_obj::_hx_vtable = 0;
Dynamic List_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< List_obj > _hx_result = new List_obj();
_hx_result->__construct();
return _hx_result;
}
bool List_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x57bbda73;
}
void List_obj::add( ::Dynamic item){
HX_GC_STACKFRAME(&_hx_pos_109688f3b41df45c_53_add)
HXLINE( 54) ::haxe::ds::_List::ListNode next = null();
HXDLIN( 54) ::haxe::ds::_List::ListNode x = ::haxe::ds::_List::ListNode_obj::__alloc( HX_CTX ,item,next);
HXLINE( 55) if (hx::IsNull( this->h )) {
HXLINE( 56) this->h = x;
}
else {
HXLINE( 58) this->q->next = x;
}
HXLINE( 59) this->q = x;
HXLINE( 60) this->length++;
}
HX_DEFINE_DYNAMIC_FUNC1(List_obj,add,(void))
void List_obj::push( ::Dynamic item){
HX_GC_STACKFRAME(&_hx_pos_109688f3b41df45c_68_push)
HXLINE( 69) ::haxe::ds::_List::ListNode x = ::haxe::ds::_List::ListNode_obj::__alloc( HX_CTX ,item,this->h);
HXLINE( 70) this->h = x;
HXLINE( 71) if (hx::IsNull( this->q )) {
HXLINE( 72) this->q = x;
}
HXLINE( 73) this->length++;
}
HX_DEFINE_DYNAMIC_FUNC1(List_obj,push,(void))
::Dynamic List_obj::pop(){
HX_STACKFRAME(&_hx_pos_109688f3b41df45c_99_pop)
HXLINE( 100) if (hx::IsNull( this->h )) {
HXLINE( 101) return null();
}
HXLINE( 102) ::Dynamic x = this->h->item;
HXLINE( 103) this->h = this->h->next;
HXLINE( 104) if (hx::IsNull( this->h )) {
HXLINE( 105) this->q = null();
}
HXLINE( 106) this->length--;
HXLINE( 107) return x;
}
HX_DEFINE_DYNAMIC_FUNC0(List_obj,pop,return )
void List_obj::clear(){
HX_STACKFRAME(&_hx_pos_109688f3b41df45c_123_clear)
HXLINE( 124) this->h = null();
HXLINE( 125) this->q = null();
HXLINE( 126) this->length = 0;
}
HX_DEFINE_DYNAMIC_FUNC0(List_obj,clear,(void))
bool List_obj::remove( ::Dynamic v){
HX_STACKFRAME(&_hx_pos_109688f3b41df45c_137_remove)
HXLINE( 138) ::haxe::ds::_List::ListNode prev = null();
HXLINE( 139) ::haxe::ds::_List::ListNode l = this->h;
HXLINE( 140) while(hx::IsNotNull( l )){
HXLINE( 141) if (hx::IsEq( l->item,v )) {
HXLINE( 142) if (hx::IsNull( prev )) {
HXLINE( 143) this->h = l->next;
}
else {
HXLINE( 145) prev->next = l->next;
}
HXLINE( 146) if (hx::IsEq( this->q,l )) {
HXLINE( 147) this->q = prev;
}
HXLINE( 148) this->length--;
HXLINE( 149) return true;
}
HXLINE( 151) prev = l;
HXLINE( 152) l = l->next;
}
HXLINE( 154) return false;
}
HX_DEFINE_DYNAMIC_FUNC1(List_obj,remove,return )
::haxe::ds::_List::ListIterator List_obj::iterator(){
HX_GC_STACKFRAME(&_hx_pos_109688f3b41df45c_161_iterator)
HXDLIN( 161) return ::haxe::ds::_List::ListIterator_obj::__alloc( HX_CTX ,this->h);
}
HX_DEFINE_DYNAMIC_FUNC0(List_obj,iterator,return )
hx::ObjectPtr< List_obj > List_obj::__new() {
hx::ObjectPtr< List_obj > __this = new List_obj();
__this->__construct();
return __this;
}
hx::ObjectPtr< List_obj > List_obj::__alloc(hx::Ctx *_hx_ctx) {
List_obj *__this = (List_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(List_obj), true, "haxe.ds.List"));
*(void **)__this = List_obj::_hx_vtable;
__this->__construct();
return __this;
}
List_obj::List_obj()
{
}
void List_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(List);
HX_MARK_MEMBER_NAME(h,"h");
HX_MARK_MEMBER_NAME(q,"q");
HX_MARK_MEMBER_NAME(length,"length");
HX_MARK_END_CLASS();
}
void List_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(h,"h");
HX_VISIT_MEMBER_NAME(q,"q");
HX_VISIT_MEMBER_NAME(length,"length");
}
hx::Val List_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"h") ) { return hx::Val( h ); }
if (HX_FIELD_EQ(inName,"q") ) { return hx::Val( q ); }
break;
case 3:
if (HX_FIELD_EQ(inName,"add") ) { return hx::Val( add_dyn() ); }
if (HX_FIELD_EQ(inName,"pop") ) { return hx::Val( pop_dyn() ); }
break;
case 4:
if (HX_FIELD_EQ(inName,"push") ) { return hx::Val( push_dyn() ); }
break;
case 5:
if (HX_FIELD_EQ(inName,"clear") ) { return hx::Val( clear_dyn() ); }
break;
case 6:
if (HX_FIELD_EQ(inName,"length") ) { return hx::Val( length ); }
if (HX_FIELD_EQ(inName,"remove") ) { return hx::Val( remove_dyn() ); }
break;
case 8:
if (HX_FIELD_EQ(inName,"iterator") ) { return hx::Val( iterator_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val List_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"h") ) { h=inValue.Cast< ::haxe::ds::_List::ListNode >(); return inValue; }
if (HX_FIELD_EQ(inName,"q") ) { q=inValue.Cast< ::haxe::ds::_List::ListNode >(); return inValue; }
break;
case 6:
if (HX_FIELD_EQ(inName,"length") ) { length=inValue.Cast< int >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void List_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("h",68,00,00,00));
outFields->push(HX_("q",71,00,00,00));
outFields->push(HX_("length",e6,94,07,9f));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo List_obj_sMemberStorageInfo[] = {
{hx::fsObject /* ::haxe::ds::_List::ListNode */ ,(int)offsetof(List_obj,h),HX_("h",68,00,00,00)},
{hx::fsObject /* ::haxe::ds::_List::ListNode */ ,(int)offsetof(List_obj,q),HX_("q",71,00,00,00)},
{hx::fsInt,(int)offsetof(List_obj,length),HX_("length",e6,94,07,9f)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *List_obj_sStaticStorageInfo = 0;
#endif
static ::String List_obj_sMemberFields[] = {
HX_("h",68,00,00,00),
HX_("q",71,00,00,00),
HX_("length",e6,94,07,9f),
HX_("add",21,f2,49,00),
HX_("push",da,11,61,4a),
HX_("pop",91,5d,55,00),
HX_("clear",8d,71,5b,48),
HX_("remove",44,9c,88,04),
HX_("iterator",ee,49,9a,93),
::String(null()) };
hx::Class List_obj::__mClass;
void List_obj::__register()
{
List_obj _hx_dummy;
List_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.ds.List",75,25,aa,15);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(List_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< List_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = List_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = List_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace ds

View File

@@ -0,0 +1,208 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_IMap
#include <haxe/IMap.h>
#endif
#ifndef INCLUDED_haxe_ds_ObjectMap
#include <haxe/ds/ObjectMap.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_db502aa8c3ad0a98_58_new,"haxe.ds.ObjectMap","new",0x27af5498,"haxe.ds.ObjectMap.new","/usr/share/haxe/std/cpp/_std/haxe/ds/ObjectMap.hx",58,0xd3ce723c)
HX_LOCAL_STACK_FRAME(_hx_pos_db502aa8c3ad0a98_61_set,"haxe.ds.ObjectMap","set",0x27b31fda,"haxe.ds.ObjectMap.set","/usr/share/haxe/std/cpp/_std/haxe/ds/ObjectMap.hx",61,0xd3ce723c)
HX_LOCAL_STACK_FRAME(_hx_pos_db502aa8c3ad0a98_65_get,"haxe.ds.ObjectMap","get",0x27aa04ce,"haxe.ds.ObjectMap.get","/usr/share/haxe/std/cpp/_std/haxe/ds/ObjectMap.hx",65,0xd3ce723c)
HX_LOCAL_STACK_FRAME(_hx_pos_db502aa8c3ad0a98_69_exists,"haxe.ds.ObjectMap","exists",0xc8930ca4,"haxe.ds.ObjectMap.exists","/usr/share/haxe/std/cpp/_std/haxe/ds/ObjectMap.hx",69,0xd3ce723c)
HX_LOCAL_STACK_FRAME(_hx_pos_db502aa8c3ad0a98_73_remove,"haxe.ds.ObjectMap","remove",0x0d3b8b0c,"haxe.ds.ObjectMap.remove","/usr/share/haxe/std/cpp/_std/haxe/ds/ObjectMap.hx",73,0xd3ce723c)
HX_LOCAL_STACK_FRAME(_hx_pos_db502aa8c3ad0a98_76_keys,"haxe.ds.ObjectMap","keys",0x8fbf0ebc,"haxe.ds.ObjectMap.keys","/usr/share/haxe/std/cpp/_std/haxe/ds/ObjectMap.hx",76,0xd3ce723c)
namespace haxe{
namespace ds{
void ObjectMap_obj::__construct(){
HX_STACKFRAME(&_hx_pos_db502aa8c3ad0a98_58_new)
}
Dynamic ObjectMap_obj::__CreateEmpty() { return new ObjectMap_obj; }
void *ObjectMap_obj::_hx_vtable = 0;
Dynamic ObjectMap_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< ObjectMap_obj > _hx_result = new ObjectMap_obj();
_hx_result->__construct();
return _hx_result;
}
bool ObjectMap_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x4a82dae8;
}
static ::haxe::IMap_obj _hx_haxe_ds_ObjectMap__hx_haxe_IMap= {
( void (hx::Object::*)( ::Dynamic, ::Dynamic))&::haxe::ds::ObjectMap_obj::set_41d0cb46,
( bool (hx::Object::*)( ::Dynamic))&::haxe::ds::ObjectMap_obj::exists,
( bool (hx::Object::*)( ::Dynamic))&::haxe::ds::ObjectMap_obj::remove,
};
void ObjectMap_obj::set_41d0cb46( ::Dynamic k, ::Dynamic v) {
set(k,v);
}
void *ObjectMap_obj::_hx_getInterface(int inHash) {
switch(inHash) {
case (int)0x09c2bd39: return &_hx_haxe_ds_ObjectMap__hx_haxe_IMap;
}
#ifdef HXCPP_SCRIPTABLE
return super::_hx_getInterface(inHash);
#else
return 0;
#endif
}
void ObjectMap_obj::set( ::Dynamic key, ::Dynamic value){
HX_STACKFRAME(&_hx_pos_db502aa8c3ad0a98_61_set)
HXDLIN( 61) ::__object_hash_set(HX_MAP_THIS,key,value);
}
HX_DEFINE_DYNAMIC_FUNC2(ObjectMap_obj,set,(void))
::Dynamic ObjectMap_obj::get( ::Dynamic key){
HX_STACKFRAME(&_hx_pos_db502aa8c3ad0a98_65_get)
HXDLIN( 65) return ::__object_hash_get(this->h,key);
}
HX_DEFINE_DYNAMIC_FUNC1(ObjectMap_obj,get,return )
bool ObjectMap_obj::exists( ::Dynamic key){
HX_STACKFRAME(&_hx_pos_db502aa8c3ad0a98_69_exists)
HXDLIN( 69) return ::__object_hash_exists(this->h,key);
}
HX_DEFINE_DYNAMIC_FUNC1(ObjectMap_obj,exists,return )
bool ObjectMap_obj::remove( ::Dynamic key){
HX_STACKFRAME(&_hx_pos_db502aa8c3ad0a98_73_remove)
HXDLIN( 73) return ::__object_hash_remove(this->h,key);
}
HX_DEFINE_DYNAMIC_FUNC1(ObjectMap_obj,remove,return )
::Dynamic ObjectMap_obj::keys(){
HX_STACKFRAME(&_hx_pos_db502aa8c3ad0a98_76_keys)
HXLINE( 77) ::cpp::VirtualArray a = ::__object_hash_keys(this->h);
HXLINE( 78) return a->iterator();
}
HX_DEFINE_DYNAMIC_FUNC0(ObjectMap_obj,keys,return )
hx::ObjectPtr< ObjectMap_obj > ObjectMap_obj::__new() {
hx::ObjectPtr< ObjectMap_obj > __this = new ObjectMap_obj();
__this->__construct();
return __this;
}
hx::ObjectPtr< ObjectMap_obj > ObjectMap_obj::__alloc(hx::Ctx *_hx_ctx) {
ObjectMap_obj *__this = (ObjectMap_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(ObjectMap_obj), true, "haxe.ds.ObjectMap"));
*(void **)__this = ObjectMap_obj::_hx_vtable;
__this->__construct();
return __this;
}
ObjectMap_obj::ObjectMap_obj()
{
}
void ObjectMap_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(ObjectMap);
HX_MARK_MEMBER_NAME(h,"h");
HX_MARK_END_CLASS();
}
void ObjectMap_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(h,"h");
}
hx::Val ObjectMap_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"h") ) { return hx::Val( h ); }
break;
case 3:
if (HX_FIELD_EQ(inName,"set") ) { return hx::Val( set_dyn() ); }
if (HX_FIELD_EQ(inName,"get") ) { return hx::Val( get_dyn() ); }
break;
case 4:
if (HX_FIELD_EQ(inName,"keys") ) { return hx::Val( keys_dyn() ); }
break;
case 6:
if (HX_FIELD_EQ(inName,"exists") ) { return hx::Val( exists_dyn() ); }
if (HX_FIELD_EQ(inName,"remove") ) { return hx::Val( remove_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val ObjectMap_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"h") ) { h=inValue.Cast< ::Dynamic >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void ObjectMap_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("h",68,00,00,00));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo ObjectMap_obj_sMemberStorageInfo[] = {
{hx::fsObject /* ::Dynamic */ ,(int)offsetof(ObjectMap_obj,h),HX_("h",68,00,00,00)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *ObjectMap_obj_sStaticStorageInfo = 0;
#endif
static ::String ObjectMap_obj_sMemberFields[] = {
HX_("h",68,00,00,00),
HX_("set",a2,9b,57,00),
HX_("get",96,80,4e,00),
HX_("exists",dc,1d,e0,bf),
HX_("remove",44,9c,88,04),
HX_("keys",f4,e1,06,47),
::String(null()) };
hx::Class ObjectMap_obj::__mClass;
void ObjectMap_obj::__register()
{
ObjectMap_obj _hx_dummy;
ObjectMap_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.ds.ObjectMap",a6,68,9b,de);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(ObjectMap_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< ObjectMap_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = ObjectMap_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = ObjectMap_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace ds

View File

@@ -0,0 +1,230 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_IMap
#include <haxe/IMap.h>
#endif
#ifndef INCLUDED_haxe_ds_StringMap
#include <haxe/ds/StringMap.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_22bae1b4f3b43c4a_58_new,"haxe.ds.StringMap","new",0x0f13f0c6,"haxe.ds.StringMap.new","/usr/share/haxe/std/cpp/_std/haxe/ds/StringMap.hx",58,0x911cf5ce)
HX_LOCAL_STACK_FRAME(_hx_pos_22bae1b4f3b43c4a_61_set,"haxe.ds.StringMap","set",0x0f17bc08,"haxe.ds.StringMap.set","/usr/share/haxe/std/cpp/_std/haxe/ds/StringMap.hx",61,0x911cf5ce)
HX_LOCAL_STACK_FRAME(_hx_pos_22bae1b4f3b43c4a_65_get,"haxe.ds.StringMap","get",0x0f0ea0fc,"haxe.ds.StringMap.get","/usr/share/haxe/std/cpp/_std/haxe/ds/StringMap.hx",65,0x911cf5ce)
HX_LOCAL_STACK_FRAME(_hx_pos_22bae1b4f3b43c4a_69_exists,"haxe.ds.StringMap","exists",0xd35fc136,"haxe.ds.StringMap.exists","/usr/share/haxe/std/cpp/_std/haxe/ds/StringMap.hx",69,0x911cf5ce)
HX_LOCAL_STACK_FRAME(_hx_pos_22bae1b4f3b43c4a_73_remove,"haxe.ds.StringMap","remove",0x18083f9e,"haxe.ds.StringMap.remove","/usr/share/haxe/std/cpp/_std/haxe/ds/StringMap.hx",73,0x911cf5ce)
HX_LOCAL_STACK_FRAME(_hx_pos_22bae1b4f3b43c4a_76_keys,"haxe.ds.StringMap","keys",0x20631ace,"haxe.ds.StringMap.keys","/usr/share/haxe/std/cpp/_std/haxe/ds/StringMap.hx",76,0x911cf5ce)
HX_LOCAL_STACK_FRAME(_hx_pos_22bae1b4f3b43c4a_81_iterator,"haxe.ds.StringMap","iterator",0x40ccf7c8,"haxe.ds.StringMap.iterator","/usr/share/haxe/std/cpp/_std/haxe/ds/StringMap.hx",81,0x911cf5ce)
namespace haxe{
namespace ds{
void StringMap_obj::__construct(){
HX_STACKFRAME(&_hx_pos_22bae1b4f3b43c4a_58_new)
}
Dynamic StringMap_obj::__CreateEmpty() { return new StringMap_obj; }
void *StringMap_obj::_hx_vtable = 0;
Dynamic StringMap_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< StringMap_obj > _hx_result = new StringMap_obj();
_hx_result->__construct();
return _hx_result;
}
bool StringMap_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x7fd15eaa;
}
static ::haxe::IMap_obj _hx_haxe_ds_StringMap__hx_haxe_IMap= {
( void (hx::Object::*)( ::Dynamic, ::Dynamic))&::haxe::ds::StringMap_obj::set_41d0cb46,
( bool (hx::Object::*)( ::Dynamic))&::haxe::ds::StringMap_obj::exists_5889326f,
( bool (hx::Object::*)( ::Dynamic))&::haxe::ds::StringMap_obj::remove_5889326f,
};
bool StringMap_obj::remove_5889326f( ::Dynamic k) {
return remove(k);
}
bool StringMap_obj::exists_5889326f( ::Dynamic k) {
return exists(k);
}
void StringMap_obj::set_41d0cb46( ::Dynamic k, ::Dynamic v) {
set(k,v);
}
void *StringMap_obj::_hx_getInterface(int inHash) {
switch(inHash) {
case (int)0x09c2bd39: return &_hx_haxe_ds_StringMap__hx_haxe_IMap;
}
#ifdef HXCPP_SCRIPTABLE
return super::_hx_getInterface(inHash);
#else
return 0;
#endif
}
void StringMap_obj::set(::String key, ::Dynamic value){
HX_STACKFRAME(&_hx_pos_22bae1b4f3b43c4a_61_set)
HXDLIN( 61) ::__string_hash_set(HX_MAP_THIS,key,value);
}
HX_DEFINE_DYNAMIC_FUNC2(StringMap_obj,set,(void))
::Dynamic StringMap_obj::get(::String key){
HX_STACKFRAME(&_hx_pos_22bae1b4f3b43c4a_65_get)
HXDLIN( 65) return ::__string_hash_get(this->h,key);
}
HX_DEFINE_DYNAMIC_FUNC1(StringMap_obj,get,return )
bool StringMap_obj::exists(::String key){
HX_STACKFRAME(&_hx_pos_22bae1b4f3b43c4a_69_exists)
HXDLIN( 69) return ::__string_hash_exists(this->h,key);
}
HX_DEFINE_DYNAMIC_FUNC1(StringMap_obj,exists,return )
bool StringMap_obj::remove(::String key){
HX_STACKFRAME(&_hx_pos_22bae1b4f3b43c4a_73_remove)
HXDLIN( 73) return ::__string_hash_remove(this->h,key);
}
HX_DEFINE_DYNAMIC_FUNC1(StringMap_obj,remove,return )
::Dynamic StringMap_obj::keys(){
HX_STACKFRAME(&_hx_pos_22bae1b4f3b43c4a_76_keys)
HXLINE( 77) ::Array< ::String > a = ::__string_hash_keys(this->h);
HXLINE( 78) return a->iterator();
}
HX_DEFINE_DYNAMIC_FUNC0(StringMap_obj,keys,return )
::Dynamic StringMap_obj::iterator(){
HX_STACKFRAME(&_hx_pos_22bae1b4f3b43c4a_81_iterator)
HXLINE( 82) ::cpp::VirtualArray a = ::__string_hash_values(this->h);
HXLINE( 83) return a->iterator();
}
HX_DEFINE_DYNAMIC_FUNC0(StringMap_obj,iterator,return )
hx::ObjectPtr< StringMap_obj > StringMap_obj::__new() {
hx::ObjectPtr< StringMap_obj > __this = new StringMap_obj();
__this->__construct();
return __this;
}
hx::ObjectPtr< StringMap_obj > StringMap_obj::__alloc(hx::Ctx *_hx_ctx) {
StringMap_obj *__this = (StringMap_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(StringMap_obj), true, "haxe.ds.StringMap"));
*(void **)__this = StringMap_obj::_hx_vtable;
__this->__construct();
return __this;
}
StringMap_obj::StringMap_obj()
{
}
void StringMap_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(StringMap);
HX_MARK_MEMBER_NAME(h,"h");
HX_MARK_END_CLASS();
}
void StringMap_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(h,"h");
}
hx::Val StringMap_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"h") ) { return hx::Val( h ); }
break;
case 3:
if (HX_FIELD_EQ(inName,"set") ) { return hx::Val( set_dyn() ); }
if (HX_FIELD_EQ(inName,"get") ) { return hx::Val( get_dyn() ); }
break;
case 4:
if (HX_FIELD_EQ(inName,"keys") ) { return hx::Val( keys_dyn() ); }
break;
case 6:
if (HX_FIELD_EQ(inName,"exists") ) { return hx::Val( exists_dyn() ); }
if (HX_FIELD_EQ(inName,"remove") ) { return hx::Val( remove_dyn() ); }
break;
case 8:
if (HX_FIELD_EQ(inName,"iterator") ) { return hx::Val( iterator_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val StringMap_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"h") ) { h=inValue.Cast< ::Dynamic >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void StringMap_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("h",68,00,00,00));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo StringMap_obj_sMemberStorageInfo[] = {
{hx::fsObject /* ::Dynamic */ ,(int)offsetof(StringMap_obj,h),HX_("h",68,00,00,00)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *StringMap_obj_sStaticStorageInfo = 0;
#endif
static ::String StringMap_obj_sMemberFields[] = {
HX_("h",68,00,00,00),
HX_("set",a2,9b,57,00),
HX_("get",96,80,4e,00),
HX_("exists",dc,1d,e0,bf),
HX_("remove",44,9c,88,04),
HX_("keys",f4,e1,06,47),
HX_("iterator",ee,49,9a,93),
::String(null()) };
hx::Class StringMap_obj::__mClass;
void StringMap_obj::__register()
{
StringMap_obj _hx_dummy;
StringMap_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.ds.StringMap",d4,d5,d6,62);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(StringMap_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< StringMap_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = StringMap_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = StringMap_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace ds

View File

@@ -0,0 +1,155 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_ds__List_ListIterator
#include <haxe/ds/_List/ListIterator.h>
#endif
#ifndef INCLUDED_haxe_ds__List_ListNode
#include <haxe/ds/_List/ListNode.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_bedc49e96a3e9316_281_new,"haxe.ds._List.ListIterator","new",0x2a47d966,"haxe.ds._List.ListIterator.new","/usr/share/haxe/std/haxe/ds/List.hx",281,0xd0d1e26e)
HX_LOCAL_STACK_FRAME(_hx_pos_bedc49e96a3e9316_285_hasNext,"haxe.ds._List.ListIterator","hasNext",0x5bdaa973,"haxe.ds._List.ListIterator.hasNext","/usr/share/haxe/std/haxe/ds/List.hx",285,0xd0d1e26e)
HX_LOCAL_STACK_FRAME(_hx_pos_bedc49e96a3e9316_288_next,"haxe.ds._List.ListIterator","next",0xd496612d,"haxe.ds._List.ListIterator.next","/usr/share/haxe/std/haxe/ds/List.hx",288,0xd0d1e26e)
namespace haxe{
namespace ds{
namespace _List{
void ListIterator_obj::__construct( ::haxe::ds::_List::ListNode head){
HX_STACKFRAME(&_hx_pos_bedc49e96a3e9316_281_new)
HXDLIN( 281) this->head = head;
}
Dynamic ListIterator_obj::__CreateEmpty() { return new ListIterator_obj; }
void *ListIterator_obj::_hx_vtable = 0;
Dynamic ListIterator_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< ListIterator_obj > _hx_result = new ListIterator_obj();
_hx_result->__construct(inArgs[0]);
return _hx_result;
}
bool ListIterator_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x06484168;
}
bool ListIterator_obj::hasNext(){
HX_STACKFRAME(&_hx_pos_bedc49e96a3e9316_285_hasNext)
HXDLIN( 285) return hx::IsNotNull( this->head );
}
HX_DEFINE_DYNAMIC_FUNC0(ListIterator_obj,hasNext,return )
::Dynamic ListIterator_obj::next(){
HX_STACKFRAME(&_hx_pos_bedc49e96a3e9316_288_next)
HXLINE( 289) ::Dynamic val = this->head->item;
HXLINE( 290) this->head = this->head->next;
HXLINE( 291) return val;
}
HX_DEFINE_DYNAMIC_FUNC0(ListIterator_obj,next,return )
hx::ObjectPtr< ListIterator_obj > ListIterator_obj::__new( ::haxe::ds::_List::ListNode head) {
hx::ObjectPtr< ListIterator_obj > __this = new ListIterator_obj();
__this->__construct(head);
return __this;
}
hx::ObjectPtr< ListIterator_obj > ListIterator_obj::__alloc(hx::Ctx *_hx_ctx, ::haxe::ds::_List::ListNode head) {
ListIterator_obj *__this = (ListIterator_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(ListIterator_obj), true, "haxe.ds._List.ListIterator"));
*(void **)__this = ListIterator_obj::_hx_vtable;
__this->__construct(head);
return __this;
}
ListIterator_obj::ListIterator_obj()
{
}
void ListIterator_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(ListIterator);
HX_MARK_MEMBER_NAME(head,"head");
HX_MARK_END_CLASS();
}
void ListIterator_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(head,"head");
}
hx::Val ListIterator_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"head") ) { return hx::Val( head ); }
if (HX_FIELD_EQ(inName,"next") ) { return hx::Val( next_dyn() ); }
break;
case 7:
if (HX_FIELD_EQ(inName,"hasNext") ) { return hx::Val( hasNext_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val ListIterator_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"head") ) { head=inValue.Cast< ::haxe::ds::_List::ListNode >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void ListIterator_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("head",20,29,0b,45));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo ListIterator_obj_sMemberStorageInfo[] = {
{hx::fsObject /* ::haxe::ds::_List::ListNode */ ,(int)offsetof(ListIterator_obj,head),HX_("head",20,29,0b,45)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *ListIterator_obj_sStaticStorageInfo = 0;
#endif
static ::String ListIterator_obj_sMemberFields[] = {
HX_("head",20,29,0b,45),
HX_("hasNext",6d,a5,46,18),
HX_("next",f3,84,02,49),
::String(null()) };
hx::Class ListIterator_obj::__mClass;
void ListIterator_obj::__register()
{
ListIterator_obj _hx_dummy;
ListIterator_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.ds._List.ListIterator",74,ee,81,0e);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(ListIterator_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< ListIterator_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = ListIterator_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = ListIterator_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace ds
} // end namespace _List

View File

@@ -0,0 +1,121 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_ds__List_ListNode
#include <haxe/ds/_List/ListNode.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_33b72a992501f206_266_new,"haxe.ds._List.ListNode","new",0x5847787a,"haxe.ds._List.ListNode.new","/usr/share/haxe/std/haxe/ds/List.hx",266,0xd0d1e26e)
namespace haxe{
namespace ds{
namespace _List{
void ListNode_obj::__construct( ::Dynamic item, ::haxe::ds::_List::ListNode next){
HX_STACKFRAME(&_hx_pos_33b72a992501f206_266_new)
HXLINE( 267) this->item = item;
HXLINE( 268) this->next = next;
}
Dynamic ListNode_obj::__CreateEmpty() { return new ListNode_obj; }
void *ListNode_obj::_hx_vtable = 0;
Dynamic ListNode_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< ListNode_obj > _hx_result = new ListNode_obj();
_hx_result->__construct(inArgs[0],inArgs[1]);
return _hx_result;
}
bool ListNode_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x714cdb28;
}
ListNode_obj::ListNode_obj()
{
}
void ListNode_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(ListNode);
HX_MARK_MEMBER_NAME(item,"item");
HX_MARK_MEMBER_NAME(next,"next");
HX_MARK_END_CLASS();
}
void ListNode_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(item,"item");
HX_VISIT_MEMBER_NAME(next,"next");
}
hx::Val ListNode_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"item") ) { return hx::Val( item ); }
if (HX_FIELD_EQ(inName,"next") ) { return hx::Val( next ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val ListNode_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"item") ) { item=inValue.Cast< ::Dynamic >(); return inValue; }
if (HX_FIELD_EQ(inName,"next") ) { next=inValue.Cast< ::haxe::ds::_List::ListNode >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void ListNode_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("item",13,c5,bf,45));
outFields->push(HX_("next",f3,84,02,49));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo ListNode_obj_sMemberStorageInfo[] = {
{hx::fsObject /* ::Dynamic */ ,(int)offsetof(ListNode_obj,item),HX_("item",13,c5,bf,45)},
{hx::fsObject /* ::haxe::ds::_List::ListNode */ ,(int)offsetof(ListNode_obj,next),HX_("next",f3,84,02,49)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *ListNode_obj_sStaticStorageInfo = 0;
#endif
static ::String ListNode_obj_sMemberFields[] = {
HX_("item",13,c5,bf,45),
HX_("next",f3,84,02,49),
::String(null()) };
hx::Class ListNode_obj::__mClass;
void ListNode_obj::__register()
{
ListNode_obj _hx_dummy;
ListNode_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.ds._List.ListNode",88,73,d7,1e);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(ListNode_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< ListNode_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = ListNode_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = ListNode_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace ds
} // end namespace _List

View File

@@ -0,0 +1,791 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_Reflect
#include <Reflect.h>
#endif
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_StringBuf
#include <StringBuf.h>
#endif
#ifndef INCLUDED_haxe_format_JsonParser
#include <haxe/format/JsonParser.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_c5fe9f5f36ee8c2f_51_new,"haxe.format.JsonParser","new",0xa017eec8,"haxe.format.JsonParser.new","/usr/share/haxe/std/haxe/format/JsonParser.hx",51,0x7dd2ac6d)
HX_LOCAL_STACK_FRAME(_hx_pos_c5fe9f5f36ee8c2f_56_doParse,"haxe.format.JsonParser","doParse",0xa959e310,"haxe.format.JsonParser.doParse","/usr/share/haxe/std/haxe/format/JsonParser.hx",56,0x7dd2ac6d)
HX_LOCAL_STACK_FRAME(_hx_pos_c5fe9f5f36ee8c2f_71_parseRec,"haxe.format.JsonParser","parseRec",0xda258b75,"haxe.format.JsonParser.parseRec","/usr/share/haxe/std/haxe/format/JsonParser.hx",71,0x7dd2ac6d)
HX_LOCAL_STACK_FRAME(_hx_pos_c5fe9f5f36ee8c2f_152_parseString,"haxe.format.JsonParser","parseString",0x8c919bcc,"haxe.format.JsonParser.parseString","/usr/share/haxe/std/haxe/format/JsonParser.hx",152,0x7dd2ac6d)
HX_LOCAL_STACK_FRAME(_hx_pos_c5fe9f5f36ee8c2f_312_invalidChar,"haxe.format.JsonParser","invalidChar",0xa9f373d5,"haxe.format.JsonParser.invalidChar","/usr/share/haxe/std/haxe/format/JsonParser.hx",312,0x7dd2ac6d)
HX_LOCAL_STACK_FRAME(_hx_pos_c5fe9f5f36ee8c2f_318_invalidNumber,"haxe.format.JsonParser","invalidNumber",0x8e9d1988,"haxe.format.JsonParser.invalidNumber","/usr/share/haxe/std/haxe/format/JsonParser.hx",318,0x7dd2ac6d)
namespace haxe{
namespace format{
void JsonParser_obj::__construct(::String str){
HX_STACKFRAME(&_hx_pos_c5fe9f5f36ee8c2f_51_new)
HXLINE( 52) this->str = str;
HXLINE( 53) this->pos = 0;
}
Dynamic JsonParser_obj::__CreateEmpty() { return new JsonParser_obj; }
void *JsonParser_obj::_hx_vtable = 0;
Dynamic JsonParser_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< JsonParser_obj > _hx_result = new JsonParser_obj();
_hx_result->__construct(inArgs[0]);
return _hx_result;
}
bool JsonParser_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x5b04dba4;
}
::Dynamic JsonParser_obj::doParse(){
HX_STACKFRAME(&_hx_pos_c5fe9f5f36ee8c2f_56_doParse)
HXLINE( 57) ::Dynamic result = this->parseRec();
HXLINE( 58) int c;
HXLINE( 59) while(true){
HXLINE( 59) c = this->str.cca(this->pos++);
HXDLIN( 59) if (!((c != 0))) {
HXLINE( 59) goto _hx_goto_1;
}
HXLINE( 60) switch((int)(c)){
case (int)9: case (int)10: case (int)13: case (int)32: {
}
break;
default:{
HXLINE( 64) this->invalidChar();
}
}
}
_hx_goto_1:;
HXLINE( 67) return result;
}
HX_DEFINE_DYNAMIC_FUNC0(JsonParser_obj,doParse,return )
::Dynamic JsonParser_obj::parseRec(){
HX_STACKFRAME(&_hx_pos_c5fe9f5f36ee8c2f_71_parseRec)
HXDLIN( 71) while(true){
HXLINE( 72) int c = this->str.cca(this->pos++);
HXLINE( 73) switch((int)(c)){
case (int)9: case (int)10: case (int)13: case (int)32: {
}
break;
case (int)34: {
HXLINE( 143) return this->parseString();
}
break;
case (int)45: case (int)48: case (int)49: case (int)50: case (int)51: case (int)52: case (int)53: case (int)54: case (int)55: case (int)56: case (int)57: {
HXLINE( 145) int c1 = c;
HXDLIN( 145) int start = (this->pos - 1);
HXDLIN( 145) bool minus = (c1 == 45);
HXDLIN( 145) bool digit = !(minus);
HXDLIN( 145) bool zero = (c1 == 48);
HXDLIN( 145) bool point = false;
HXDLIN( 145) bool e = false;
HXDLIN( 145) bool pm = false;
HXDLIN( 145) bool end = false;
HXDLIN( 145) while(true){
HXLINE( 145) c1 = this->str.cca(this->pos++);
HXDLIN( 145) switch((int)(c1)){
case (int)43: case (int)45: {
HXLINE( 145) bool _hx_tmp;
HXDLIN( 145) if (!(!(e))) {
HXLINE( 145) _hx_tmp = pm;
}
else {
HXLINE( 145) _hx_tmp = true;
}
HXDLIN( 145) if (_hx_tmp) {
HXLINE( 145) this->invalidNumber(start);
}
HXDLIN( 145) digit = false;
HXDLIN( 145) pm = true;
}
break;
case (int)46: {
HXLINE( 145) bool _hx_tmp1;
HXDLIN( 145) bool _hx_tmp2;
HXDLIN( 145) if (!(minus)) {
HXLINE( 145) _hx_tmp2 = point;
}
else {
HXLINE( 145) _hx_tmp2 = true;
}
HXDLIN( 145) if (!(_hx_tmp2)) {
HXLINE( 145) _hx_tmp1 = e;
}
else {
HXLINE( 145) _hx_tmp1 = true;
}
HXDLIN( 145) if (_hx_tmp1) {
HXLINE( 145) this->invalidNumber(start);
}
HXDLIN( 145) digit = false;
HXDLIN( 145) point = true;
}
break;
case (int)48: {
HXLINE( 145) bool _hx_tmp3;
HXDLIN( 145) if (zero) {
HXLINE( 145) _hx_tmp3 = !(point);
}
else {
HXLINE( 145) _hx_tmp3 = false;
}
HXDLIN( 145) if (_hx_tmp3) {
HXLINE( 145) this->invalidNumber(start);
}
HXDLIN( 145) if (minus) {
HXLINE( 145) minus = false;
HXDLIN( 145) zero = true;
}
HXDLIN( 145) digit = true;
}
break;
case (int)49: case (int)50: case (int)51: case (int)52: case (int)53: case (int)54: case (int)55: case (int)56: case (int)57: {
HXLINE( 145) bool _hx_tmp4;
HXDLIN( 145) if (zero) {
HXLINE( 145) _hx_tmp4 = !(point);
}
else {
HXLINE( 145) _hx_tmp4 = false;
}
HXDLIN( 145) if (_hx_tmp4) {
HXLINE( 145) this->invalidNumber(start);
}
HXDLIN( 145) if (minus) {
HXLINE( 145) minus = false;
}
HXDLIN( 145) digit = true;
HXDLIN( 145) zero = false;
}
break;
case (int)69: case (int)101: {
HXLINE( 145) bool _hx_tmp5;
HXDLIN( 145) bool _hx_tmp6;
HXDLIN( 145) if (!(minus)) {
HXLINE( 145) _hx_tmp6 = zero;
}
else {
HXLINE( 145) _hx_tmp6 = true;
}
HXDLIN( 145) if (!(_hx_tmp6)) {
HXLINE( 145) _hx_tmp5 = e;
}
else {
HXLINE( 145) _hx_tmp5 = true;
}
HXDLIN( 145) if (_hx_tmp5) {
HXLINE( 145) this->invalidNumber(start);
}
HXDLIN( 145) digit = false;
HXDLIN( 145) e = true;
}
break;
default:{
HXLINE( 145) if (!(digit)) {
HXLINE( 145) this->invalidNumber(start);
}
HXDLIN( 145) this->pos--;
HXDLIN( 145) end = true;
}
}
HXDLIN( 145) if (end) {
HXLINE( 145) goto _hx_goto_4;
}
}
_hx_goto_4:;
HXDLIN( 145) Float f = ::Std_obj::parseFloat(this->str.substr(start,(this->pos - start)));
HXDLIN( 145) int i = ::Std_obj::_hx_int(f);
HXDLIN( 145) if ((i == f)) {
HXLINE( 145) return i;
}
else {
HXLINE( 145) return f;
}
}
break;
case (int)91: {
HXLINE( 103) ::cpp::VirtualArray arr = ::cpp::VirtualArray_obj::__new(0);
HXDLIN( 103) ::Dynamic comma = null();
HXLINE( 104) while(true){
HXLINE( 105) int c2 = this->str.cca(this->pos++);
HXLINE( 106) switch((int)(c2)){
case (int)9: case (int)10: case (int)13: case (int)32: {
}
break;
case (int)44: {
HXLINE( 113) if (( (bool)(comma) )) {
HXLINE( 113) comma = false;
}
else {
HXLINE( 113) this->invalidChar();
}
}
break;
case (int)93: {
HXLINE( 110) if (hx::IsEq( comma,false )) {
HXLINE( 110) this->invalidChar();
}
HXLINE( 111) return arr;
}
break;
default:{
HXLINE( 115) if (( (bool)(comma) )) {
HXLINE( 115) this->invalidChar();
}
HXLINE( 116) this->pos--;
HXLINE( 117) arr->push(this->parseRec());
HXLINE( 118) comma = true;
}
}
}
}
break;
case (int)102: {
HXLINE( 129) int save = this->pos;
HXLINE( 130) bool _hx_tmp7;
HXDLIN( 130) bool _hx_tmp8;
HXDLIN( 130) bool _hx_tmp9;
HXDLIN( 130) if ((this->str.cca(this->pos++) == 97)) {
HXLINE( 130) _hx_tmp9 = (this->str.cca(this->pos++) != 108);
}
else {
HXLINE( 130) _hx_tmp9 = true;
}
HXDLIN( 130) if (!(_hx_tmp9)) {
HXLINE( 130) _hx_tmp8 = (this->str.cca(this->pos++) != 115);
}
else {
HXLINE( 130) _hx_tmp8 = true;
}
HXDLIN( 130) if (!(_hx_tmp8)) {
HXLINE( 130) _hx_tmp7 = (this->str.cca(this->pos++) != 101);
}
else {
HXLINE( 130) _hx_tmp7 = true;
}
HXDLIN( 130) if (_hx_tmp7) {
HXLINE( 131) this->pos = save;
HXLINE( 132) this->invalidChar();
}
HXLINE( 134) return false;
}
break;
case (int)110: {
HXLINE( 136) int save1 = this->pos;
HXLINE( 137) bool _hx_tmp10;
HXDLIN( 137) bool _hx_tmp11;
HXDLIN( 137) if ((this->str.cca(this->pos++) == 117)) {
HXLINE( 137) _hx_tmp11 = (this->str.cca(this->pos++) != 108);
}
else {
HXLINE( 137) _hx_tmp11 = true;
}
HXDLIN( 137) if (!(_hx_tmp11)) {
HXLINE( 137) _hx_tmp10 = (this->str.cca(this->pos++) != 108);
}
else {
HXLINE( 137) _hx_tmp10 = true;
}
HXDLIN( 137) if (_hx_tmp10) {
HXLINE( 138) this->pos = save1;
HXLINE( 139) this->invalidChar();
}
HXLINE( 141) return null();
}
break;
case (int)116: {
HXLINE( 122) int save2 = this->pos;
HXLINE( 123) bool _hx_tmp12;
HXDLIN( 123) bool _hx_tmp13;
HXDLIN( 123) if ((this->str.cca(this->pos++) == 114)) {
HXLINE( 123) _hx_tmp13 = (this->str.cca(this->pos++) != 117);
}
else {
HXLINE( 123) _hx_tmp13 = true;
}
HXDLIN( 123) if (!(_hx_tmp13)) {
HXLINE( 123) _hx_tmp12 = (this->str.cca(this->pos++) != 101);
}
else {
HXLINE( 123) _hx_tmp12 = true;
}
HXDLIN( 123) if (_hx_tmp12) {
HXLINE( 124) this->pos = save2;
HXLINE( 125) this->invalidChar();
}
HXLINE( 127) return true;
}
break;
case (int)123: {
HXLINE( 77) ::Dynamic obj = ::Dynamic(hx::Anon_obj::Create(0));
HXDLIN( 77) ::String field = null();
HXDLIN( 77) ::Dynamic comma1 = null();
HXLINE( 78) while(true){
HXLINE( 79) int c3 = this->str.cca(this->pos++);
HXLINE( 80) switch((int)(c3)){
case (int)9: case (int)10: case (int)13: case (int)32: {
}
break;
case (int)34: {
HXLINE( 96) bool _hx_tmp14;
HXDLIN( 96) if (hx::IsNull( field )) {
HXLINE( 96) _hx_tmp14 = ( (bool)(comma1) );
}
else {
HXLINE( 96) _hx_tmp14 = true;
}
HXDLIN( 96) if (_hx_tmp14) {
HXLINE( 96) this->invalidChar();
}
HXLINE( 97) field = this->parseString();
}
break;
case (int)44: {
HXLINE( 94) if (( (bool)(comma1) )) {
HXLINE( 94) comma1 = false;
}
else {
HXLINE( 94) this->invalidChar();
}
}
break;
case (int)58: {
HXLINE( 88) if (hx::IsNull( field )) {
HXLINE( 89) this->invalidChar();
}
HXLINE( 90) ::Reflect_obj::setField(obj,field,this->parseRec());
HXLINE( 91) field = null();
HXLINE( 92) comma1 = true;
}
break;
case (int)125: {
HXLINE( 84) bool _hx_tmp15;
HXDLIN( 84) if (hx::IsNull( field )) {
HXLINE( 84) _hx_tmp15 = hx::IsEq( comma1,false );
}
else {
HXLINE( 84) _hx_tmp15 = true;
}
HXDLIN( 84) if (_hx_tmp15) {
HXLINE( 85) this->invalidChar();
}
HXLINE( 86) return obj;
}
break;
default:{
HXLINE( 99) this->invalidChar();
}
}
}
}
break;
default:{
HXLINE( 147) this->invalidChar();
}
}
}
HXLINE( 71) return null();
}
HX_DEFINE_DYNAMIC_FUNC0(JsonParser_obj,parseRec,return )
::String JsonParser_obj::parseString(){
HX_GC_STACKFRAME(&_hx_pos_c5fe9f5f36ee8c2f_152_parseString)
HXLINE( 153) int start = this->pos;
HXLINE( 154) ::StringBuf buf = null();
HXLINE( 156) int prev = -1;
HXLINE( 163) while(true){
HXLINE( 164) int c = this->str.cca(this->pos++);
HXLINE( 165) if ((c == 34)) {
HXLINE( 166) goto _hx_goto_8;
}
HXLINE( 167) if ((c == 92)) {
HXLINE( 168) if (hx::IsNull( buf )) {
HXLINE( 169) buf = ::StringBuf_obj::__alloc( HX_CTX );
}
HXLINE( 171) {
HXLINE( 171) ::String s = this->str;
HXDLIN( 171) ::Dynamic len = ((this->pos - start) - 1);
HXDLIN( 171) if (hx::IsNotNull( buf->charBuf )) {
HXLINE( 171) buf->flush();
}
HXDLIN( 171) if (hx::IsNull( buf->b )) {
HXLINE( 171) buf->b = ::Array_obj< ::String >::__new(1)->init(0,s.substr(start,len));
}
else {
HXLINE( 171) ::Array< ::String > buf1 = buf->b;
HXDLIN( 171) buf1->push(s.substr(start,len));
}
}
HXLINE( 172) c = this->str.cca(this->pos++);
HXLINE( 174) bool _hx_tmp;
HXDLIN( 174) if ((c != 117)) {
HXLINE( 174) _hx_tmp = (prev != -1);
}
else {
HXLINE( 174) _hx_tmp = false;
}
HXDLIN( 174) if (_hx_tmp) {
HXLINE( 175) {
HXLINE( 175) ::String x = ::String::fromCharCode(65533);
HXDLIN( 175) if (hx::IsNotNull( buf->charBuf )) {
HXLINE( 175) buf->flush();
}
HXDLIN( 175) if (hx::IsNull( buf->b )) {
HXLINE( 175) buf->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(x));
}
else {
HXLINE( 175) ::Array< ::String > buf2 = buf->b;
HXDLIN( 175) buf2->push(::Std_obj::string(x));
}
}
HXDLIN( 175) prev = -1;
}
HXLINE( 177) switch((int)(c)){
case (int)34: case (int)47: case (int)92: {
HXLINE( 189) if ((c >= 127)) {
HXLINE( 189) ::String x1 = ::String::fromCharCode(c);
HXDLIN( 189) if (hx::IsNotNull( buf->charBuf )) {
HXLINE( 189) buf->flush();
}
HXDLIN( 189) if (hx::IsNull( buf->b )) {
HXLINE( 189) buf->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(x1));
}
else {
HXLINE( 189) ::Array< ::String > buf3 = buf->b;
HXDLIN( 189) buf3->push(::Std_obj::string(x1));
}
}
else {
HXLINE( 189) if (hx::IsNull( buf->charBuf )) {
HXLINE( 189) buf->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 189) buf->charBuf->push(c);
}
}
break;
case (int)98: {
HXLINE( 185) if (hx::IsNull( buf->charBuf )) {
HXLINE( 185) buf->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 185) buf->charBuf->push(8);
}
break;
case (int)102: {
HXLINE( 187) if (hx::IsNull( buf->charBuf )) {
HXLINE( 187) buf->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 187) buf->charBuf->push(12);
}
break;
case (int)110: {
HXLINE( 181) if (hx::IsNull( buf->charBuf )) {
HXLINE( 181) buf->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 181) buf->charBuf->push(10);
}
break;
case (int)114: {
HXLINE( 179) if (hx::IsNull( buf->charBuf )) {
HXLINE( 179) buf->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 179) buf->charBuf->push(13);
}
break;
case (int)116: {
HXLINE( 183) if (hx::IsNull( buf->charBuf )) {
HXLINE( 183) buf->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 183) buf->charBuf->push(9);
}
break;
case (int)117: {
HXLINE( 191) int uc = ( (int)(::Std_obj::parseInt((HX_("0x",48,2a,00,00) + this->str.substr(this->pos,4)))) );
HXLINE( 192) ::haxe::format::JsonParser _hx_tmp1 = hx::ObjectPtr<OBJ_>(this);
HXDLIN( 192) _hx_tmp1->pos = (_hx_tmp1->pos + 4);
HXLINE( 210) if ((prev != -1)) {
HXLINE( 211) bool _hx_tmp2;
HXDLIN( 211) if ((uc >= 56320)) {
HXLINE( 211) _hx_tmp2 = (uc > 57343);
}
else {
HXLINE( 211) _hx_tmp2 = true;
}
HXDLIN( 211) if (_hx_tmp2) {
HXLINE( 212) {
HXLINE( 212) ::String x2 = ::String::fromCharCode(65533);
HXDLIN( 212) if (hx::IsNotNull( buf->charBuf )) {
HXLINE( 212) buf->flush();
}
HXDLIN( 212) if (hx::IsNull( buf->b )) {
HXLINE( 212) buf->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(x2));
}
else {
HXLINE( 212) ::Array< ::String > buf4 = buf->b;
HXDLIN( 212) buf4->push(::Std_obj::string(x2));
}
}
HXDLIN( 212) prev = -1;
}
else {
HXLINE( 214) {
HXLINE( 214) int c1 = ((((prev - 55296) << 10) + (uc - 56320)) + 65536);
HXDLIN( 214) if ((c1 >= 127)) {
HXLINE( 214) ::String x3 = ::String::fromCharCode(c1);
HXDLIN( 214) if (hx::IsNotNull( buf->charBuf )) {
HXLINE( 214) buf->flush();
}
HXDLIN( 214) if (hx::IsNull( buf->b )) {
HXLINE( 214) buf->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(x3));
}
else {
HXLINE( 214) ::Array< ::String > buf5 = buf->b;
HXDLIN( 214) buf5->push(::Std_obj::string(x3));
}
}
else {
HXLINE( 214) if (hx::IsNull( buf->charBuf )) {
HXLINE( 214) buf->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 214) buf->charBuf->push(c1);
}
}
HXLINE( 215) prev = -1;
}
}
else {
HXLINE( 217) bool _hx_tmp3;
HXDLIN( 217) if ((uc >= 55296)) {
HXLINE( 217) _hx_tmp3 = (uc <= 56319);
}
else {
HXLINE( 217) _hx_tmp3 = false;
}
HXDLIN( 217) if (_hx_tmp3) {
HXLINE( 218) prev = uc;
}
else {
HXLINE( 220) if ((uc >= 127)) {
HXLINE( 220) ::String x4 = ::String::fromCharCode(uc);
HXDLIN( 220) if (hx::IsNotNull( buf->charBuf )) {
HXLINE( 220) buf->flush();
}
HXDLIN( 220) if (hx::IsNull( buf->b )) {
HXLINE( 220) buf->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(x4));
}
else {
HXLINE( 220) ::Array< ::String > buf6 = buf->b;
HXDLIN( 220) buf6->push(::Std_obj::string(x4));
}
}
else {
HXLINE( 220) if (hx::IsNull( buf->charBuf )) {
HXLINE( 220) buf->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 220) buf->charBuf->push(uc);
}
}
}
}
break;
default:{
HXLINE( 223) HX_STACK_DO_THROW((((HX_("Invalid escape sequence \\",73,af,f7,b2) + ::String::fromCharCode(c)) + HX_(" at position ",0a,c2,01,e0)) + (this->pos - 1)));
}
}
HXLINE( 225) start = this->pos;
}
else {
HXLINE( 241) if ((c == 0)) {
HXLINE( 242) HX_STACK_DO_THROW(HX_("Unclosed string",ac,02,ef,ea));
}
}
}
_hx_goto_8:;
HXLINE( 245) if ((prev != -1)) {
HXLINE( 246) {
HXLINE( 246) ::String x5 = ::String::fromCharCode(65533);
HXDLIN( 246) if (hx::IsNotNull( buf->charBuf )) {
HXLINE( 246) buf->flush();
}
HXDLIN( 246) if (hx::IsNull( buf->b )) {
HXLINE( 246) buf->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(x5));
}
else {
HXLINE( 246) ::Array< ::String > buf7 = buf->b;
HXDLIN( 246) buf7->push(::Std_obj::string(x5));
}
}
HXDLIN( 246) prev = -1;
}
HXLINE( 248) if (hx::IsNull( buf )) {
HXLINE( 249) return this->str.substr(start,((this->pos - start) - 1));
}
else {
HXLINE( 251) {
HXLINE( 251) ::String s1 = this->str;
HXDLIN( 251) ::Dynamic len1 = ((this->pos - start) - 1);
HXDLIN( 251) if (hx::IsNotNull( buf->charBuf )) {
HXLINE( 251) buf->flush();
}
HXDLIN( 251) if (hx::IsNull( buf->b )) {
HXLINE( 251) buf->b = ::Array_obj< ::String >::__new(1)->init(0,s1.substr(start,len1));
}
else {
HXLINE( 251) ::Array< ::String > buf8 = buf->b;
HXDLIN( 251) buf8->push(s1.substr(start,len1));
}
}
HXLINE( 252) return buf->toString();
}
HXLINE( 248) return null();
}
HX_DEFINE_DYNAMIC_FUNC0(JsonParser_obj,parseString,return )
void JsonParser_obj::invalidChar(){
HX_STACKFRAME(&_hx_pos_c5fe9f5f36ee8c2f_312_invalidChar)
HXLINE( 313) this->pos--;
HXLINE( 314) ::String _hx_tmp = ((HX_("Invalid char ",81,66,ec,29) + this->str.cca(this->pos)) + HX_(" at position ",0a,c2,01,e0));
HXDLIN( 314) HX_STACK_DO_THROW((_hx_tmp + this->pos));
}
HX_DEFINE_DYNAMIC_FUNC0(JsonParser_obj,invalidChar,(void))
void JsonParser_obj::invalidNumber(int start){
HX_STACKFRAME(&_hx_pos_c5fe9f5f36ee8c2f_318_invalidNumber)
HXDLIN( 318) HX_STACK_DO_THROW((((HX_("Invalid number at position ",d8,9d,6f,13) + start) + HX_(": ",a6,32,00,00)) + this->str.substr(start,(this->pos - start))));
}
HX_DEFINE_DYNAMIC_FUNC1(JsonParser_obj,invalidNumber,(void))
hx::ObjectPtr< JsonParser_obj > JsonParser_obj::__new(::String str) {
hx::ObjectPtr< JsonParser_obj > __this = new JsonParser_obj();
__this->__construct(str);
return __this;
}
hx::ObjectPtr< JsonParser_obj > JsonParser_obj::__alloc(hx::Ctx *_hx_ctx,::String str) {
JsonParser_obj *__this = (JsonParser_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(JsonParser_obj), true, "haxe.format.JsonParser"));
*(void **)__this = JsonParser_obj::_hx_vtable;
__this->__construct(str);
return __this;
}
JsonParser_obj::JsonParser_obj()
{
}
void JsonParser_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(JsonParser);
HX_MARK_MEMBER_NAME(str,"str");
HX_MARK_MEMBER_NAME(pos,"pos");
HX_MARK_END_CLASS();
}
void JsonParser_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(str,"str");
HX_VISIT_MEMBER_NAME(pos,"pos");
}
hx::Val JsonParser_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 3:
if (HX_FIELD_EQ(inName,"str") ) { return hx::Val( str ); }
if (HX_FIELD_EQ(inName,"pos") ) { return hx::Val( pos ); }
break;
case 7:
if (HX_FIELD_EQ(inName,"doParse") ) { return hx::Val( doParse_dyn() ); }
break;
case 8:
if (HX_FIELD_EQ(inName,"parseRec") ) { return hx::Val( parseRec_dyn() ); }
break;
case 11:
if (HX_FIELD_EQ(inName,"parseString") ) { return hx::Val( parseString_dyn() ); }
if (HX_FIELD_EQ(inName,"invalidChar") ) { return hx::Val( invalidChar_dyn() ); }
break;
case 13:
if (HX_FIELD_EQ(inName,"invalidNumber") ) { return hx::Val( invalidNumber_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val JsonParser_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 3:
if (HX_FIELD_EQ(inName,"str") ) { str=inValue.Cast< ::String >(); return inValue; }
if (HX_FIELD_EQ(inName,"pos") ) { pos=inValue.Cast< int >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void JsonParser_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("str",b1,a8,57,00));
outFields->push(HX_("pos",94,5d,55,00));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo JsonParser_obj_sMemberStorageInfo[] = {
{hx::fsString,(int)offsetof(JsonParser_obj,str),HX_("str",b1,a8,57,00)},
{hx::fsInt,(int)offsetof(JsonParser_obj,pos),HX_("pos",94,5d,55,00)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *JsonParser_obj_sStaticStorageInfo = 0;
#endif
static ::String JsonParser_obj_sMemberFields[] = {
HX_("str",b1,a8,57,00),
HX_("pos",94,5d,55,00),
HX_("doParse",a8,70,82,f0),
HX_("parseRec",dd,e2,78,d6),
HX_("parseString",64,d5,6c,8c),
HX_("invalidChar",6d,ad,ce,a9),
HX_("invalidNumber",20,e9,eb,a6),
::String(null()) };
hx::Class JsonParser_obj::__mClass;
void JsonParser_obj::__register()
{
JsonParser_obj _hx_dummy;
JsonParser_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.format.JsonParser",d6,2a,bf,29);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(JsonParser_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< JsonParser_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = JsonParser_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = JsonParser_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace format

View File

@@ -0,0 +1,825 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_95f339a1d026d52c
#define INCLUDED_95f339a1d026d52c
#include "hxMath.h"
#endif
#ifndef INCLUDED_Date
#include <Date.h>
#endif
#ifndef INCLUDED_Reflect
#include <Reflect.h>
#endif
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_StringBuf
#include <StringBuf.h>
#endif
#ifndef INCLUDED_StringTools
#include <StringTools.h>
#endif
#ifndef INCLUDED_Type
#include <Type.h>
#endif
#ifndef INCLUDED_ValueType
#include <ValueType.h>
#endif
#ifndef INCLUDED_haxe_IMap
#include <haxe/IMap.h>
#endif
#ifndef INCLUDED_haxe_ds_StringMap
#include <haxe/ds/StringMap.h>
#endif
#ifndef INCLUDED_haxe_format_JsonPrinter
#include <haxe/format/JsonPrinter.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_48248be6b214f1a1_56_new,"haxe.format.JsonPrinter","new",0xeb68de75,"haxe.format.JsonPrinter.new","/usr/share/haxe/std/haxe/format/JsonPrinter.hx",56,0x79c62836)
HX_LOCAL_STACK_FRAME(_hx_pos_48248be6b214f1a1_81_write,"haxe.format.JsonPrinter","write",0x755dea34,"haxe.format.JsonPrinter.write","/usr/share/haxe/std/haxe/format/JsonPrinter.hx",81,0x79c62836)
static const ::String _hx_array_data_f7b98003_4[] = {
HX_("null",87,9e,0e,49),
};
static const ::String _hx_array_data_f7b98003_5[] = {
HX_("\"<fun>\"",09,3c,cc,8b),
};
static const ::String _hx_array_data_f7b98003_6[] = {
HX_("\"???\"",45,2f,74,bd),
};
HX_LOCAL_STACK_FRAME(_hx_pos_48248be6b214f1a1_158_classString,"haxe.format.JsonPrinter","classString",0x9219ba3e,"haxe.format.JsonPrinter.classString","/usr/share/haxe/std/haxe/format/JsonPrinter.hx",158,0x79c62836)
HX_LOCAL_STACK_FRAME(_hx_pos_48248be6b214f1a1_165_fieldsString,"haxe.format.JsonPrinter","fieldsString",0x974bd375,"haxe.format.JsonPrinter.fieldsString","/usr/share/haxe/std/haxe/format/JsonPrinter.hx",165,0x79c62836)
HX_LOCAL_STACK_FRAME(_hx_pos_48248be6b214f1a1_196_quote,"haxe.format.JsonPrinter","quote",0x02f6a091,"haxe.format.JsonPrinter.quote","/usr/share/haxe/std/haxe/format/JsonPrinter.hx",196,0x79c62836)
static const ::String _hx_array_data_f7b98003_12[] = {
HX_("\\b",86,50,00,00),
};
static const ::String _hx_array_data_f7b98003_13[] = {
HX_("\\t",98,50,00,00),
};
static const ::String _hx_array_data_f7b98003_14[] = {
HX_("\\n",92,50,00,00),
};
static const ::String _hx_array_data_f7b98003_15[] = {
HX_("\\f",8a,50,00,00),
};
static const ::String _hx_array_data_f7b98003_16[] = {
HX_("\\r",96,50,00,00),
};
static const ::String _hx_array_data_f7b98003_17[] = {
HX_("\\\"",46,50,00,00),
};
static const ::String _hx_array_data_f7b98003_18[] = {
HX_("\\\\",80,50,00,00),
};
HX_LOCAL_STACK_FRAME(_hx_pos_48248be6b214f1a1_44_print,"haxe.format.JsonPrinter","print",0x6d8fd582,"haxe.format.JsonPrinter.print","/usr/share/haxe/std/haxe/format/JsonPrinter.hx",44,0x79c62836)
namespace haxe{
namespace format{
void JsonPrinter_obj::__construct( ::Dynamic replacer,::String space){
HX_GC_STACKFRAME(&_hx_pos_48248be6b214f1a1_56_new)
HXLINE( 57) this->replacer = replacer;
HXLINE( 58) this->indent = space;
HXLINE( 59) this->pretty = hx::IsNotNull( space );
HXLINE( 60) this->nind = 0;
HXLINE( 67) this->buf = ::StringBuf_obj::__alloc( HX_CTX );
}
Dynamic JsonPrinter_obj::__CreateEmpty() { return new JsonPrinter_obj; }
void *JsonPrinter_obj::_hx_vtable = 0;
Dynamic JsonPrinter_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< JsonPrinter_obj > _hx_result = new JsonPrinter_obj();
_hx_result->__construct(inArgs[0],inArgs[1]);
return _hx_result;
}
bool JsonPrinter_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x55464e91;
}
void JsonPrinter_obj::write( ::Dynamic k, ::Dynamic v){
HX_STACKFRAME(&_hx_pos_48248be6b214f1a1_81_write)
HXLINE( 82) if (hx::IsNotNull( this->replacer )) {
HXLINE( 83) v = this->replacer(k,v);
}
HXLINE( 84) {
HXLINE( 84) ::ValueType _g = ::Type_obj::_hx_typeof(v);
HXDLIN( 84) switch((int)(_g->_hx_getIndex())){
case (int)0: {
HXLINE( 136) ::StringBuf _this = this->buf;
HXDLIN( 136) if (hx::IsNotNull( _this->charBuf )) {
HXLINE( 136) _this->flush();
}
HXDLIN( 136) if (hx::IsNull( _this->b )) {
HXLINE( 136) _this->b = ::Array_obj< ::String >::fromData( _hx_array_data_f7b98003_4,1);
}
else {
HXLINE( 136) _this->b->push(HX_("null",87,9e,0e,49));
}
}
break;
case (int)1: {
HXLINE( 90) ::String v1 = ( (::String)(v) );
HXDLIN( 90) {
HXLINE( 90) ::StringBuf _this1 = this->buf;
HXDLIN( 90) if (hx::IsNotNull( _this1->charBuf )) {
HXLINE( 90) _this1->flush();
}
HXDLIN( 90) if (hx::IsNull( _this1->b )) {
HXLINE( 90) _this1->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(v1));
}
else {
HXLINE( 90) ::Array< ::String > _this2 = _this1->b;
HXDLIN( 90) _this2->push(::Std_obj::string(v1));
}
}
}
break;
case (int)2: {
HXLINE( 92) ::String v2;
HXDLIN( 92) if (::Math_obj::isFinite(( (Float)(v) ))) {
HXLINE( 92) v2 = ::Std_obj::string(v);
}
else {
HXLINE( 92) v2 = HX_("null",87,9e,0e,49);
}
HXDLIN( 92) {
HXLINE( 92) ::StringBuf _this3 = this->buf;
HXDLIN( 92) if (hx::IsNotNull( _this3->charBuf )) {
HXLINE( 92) _this3->flush();
}
HXDLIN( 92) if (hx::IsNull( _this3->b )) {
HXLINE( 92) _this3->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(v2));
}
else {
HXLINE( 92) ::Array< ::String > _this4 = _this3->b;
HXDLIN( 92) _this4->push(::Std_obj::string(v2));
}
}
}
break;
case (int)3: {
HXLINE( 134) ::String v3 = ( (::String)(v) );
HXDLIN( 134) {
HXLINE( 134) ::StringBuf _this5 = this->buf;
HXDLIN( 134) if (hx::IsNotNull( _this5->charBuf )) {
HXLINE( 134) _this5->flush();
}
HXDLIN( 134) if (hx::IsNull( _this5->b )) {
HXLINE( 134) _this5->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(v3));
}
else {
HXLINE( 134) ::Array< ::String > _this6 = _this5->b;
HXDLIN( 134) _this6->push(::Std_obj::string(v3));
}
}
}
break;
case (int)4: {
HXLINE( 88) this->fieldsString(v,::Reflect_obj::fields(v));
}
break;
case (int)5: {
HXLINE( 94) ::StringBuf _this7 = this->buf;
HXDLIN( 94) if (hx::IsNotNull( _this7->charBuf )) {
HXLINE( 94) _this7->flush();
}
HXDLIN( 94) if (hx::IsNull( _this7->b )) {
HXLINE( 94) _this7->b = ::Array_obj< ::String >::fromData( _hx_array_data_f7b98003_5,1);
}
else {
HXLINE( 94) _this7->b->push(HX_("\"<fun>\"",09,3c,cc,8b));
}
}
break;
case (int)6: {
HXLINE( 95) hx::Class c = _g->_hx_getObject(0).StaticCast< hx::Class >();
HXLINE( 96) if (hx::IsEq( c,hx::ClassOf< ::String >() )) {
HXLINE( 97) this->quote(( (::String)(v) ));
}
else {
HXLINE( 98) if (hx::IsEq( c,hx::ArrayBase::__mClass )) {
HXLINE( 99) ::cpp::VirtualArray v4 = ( (::cpp::VirtualArray)(v) );
HXLINE( 100) {
HXLINE( 100) ::StringBuf _this8 = this->buf;
HXDLIN( 100) {
HXLINE( 100) if (hx::IsNull( _this8->charBuf )) {
HXLINE( 100) _this8->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 100) _this8->charBuf->push(91);
}
}
HXLINE( 102) int len = v4->get_length();
HXLINE( 103) int last = (len - 1);
HXLINE( 104) {
HXLINE( 104) int _g1 = 0;
HXDLIN( 104) int _g11 = len;
HXDLIN( 104) while((_g1 < _g11)){
HXLINE( 104) _g1 = (_g1 + 1);
HXDLIN( 104) int i = (_g1 - 1);
HXLINE( 105) if ((i > 0)) {
HXLINE( 106) ::StringBuf _this9 = this->buf;
HXDLIN( 106) {
HXLINE( 106) if (hx::IsNull( _this9->charBuf )) {
HXLINE( 106) _this9->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 106) _this9->charBuf->push(44);
}
}
else {
HXLINE( 108) this->nind++;
}
HXLINE( 109) if (this->pretty) {
HXLINE( 109) ::StringBuf _this10 = this->buf;
HXDLIN( 109) {
HXLINE( 109) if (hx::IsNull( _this10->charBuf )) {
HXLINE( 109) _this10->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 109) _this10->charBuf->push(10);
}
}
HXLINE( 110) if (this->pretty) {
HXLINE( 110) ::String v5 = ::StringTools_obj::lpad(HX_("",00,00,00,00),this->indent,(this->nind * this->indent.length));
HXDLIN( 110) {
HXLINE( 110) ::StringBuf _this11 = this->buf;
HXDLIN( 110) if (hx::IsNotNull( _this11->charBuf )) {
HXLINE( 110) _this11->flush();
}
HXDLIN( 110) if (hx::IsNull( _this11->b )) {
HXLINE( 110) _this11->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(v5));
}
else {
HXLINE( 110) ::Array< ::String > _this12 = _this11->b;
HXDLIN( 110) _this12->push(::Std_obj::string(v5));
}
}
}
HXLINE( 111) this->write(i,v4->__get(i));
HXLINE( 112) if ((i == last)) {
HXLINE( 113) this->nind--;
HXLINE( 114) if (this->pretty) {
HXLINE( 114) ::StringBuf _this13 = this->buf;
HXDLIN( 114) {
HXLINE( 114) if (hx::IsNull( _this13->charBuf )) {
HXLINE( 114) _this13->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 114) _this13->charBuf->push(10);
}
}
HXLINE( 115) if (this->pretty) {
HXLINE( 115) ::String v6 = ::StringTools_obj::lpad(HX_("",00,00,00,00),this->indent,(this->nind * this->indent.length));
HXDLIN( 115) {
HXLINE( 115) ::StringBuf _this14 = this->buf;
HXDLIN( 115) if (hx::IsNotNull( _this14->charBuf )) {
HXLINE( 115) _this14->flush();
}
HXDLIN( 115) if (hx::IsNull( _this14->b )) {
HXLINE( 115) _this14->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(v6));
}
else {
HXLINE( 115) ::Array< ::String > _this15 = _this14->b;
HXDLIN( 115) _this15->push(::Std_obj::string(v6));
}
}
}
}
}
}
HXLINE( 118) {
HXLINE( 118) ::StringBuf _this16 = this->buf;
HXDLIN( 118) {
HXLINE( 118) if (hx::IsNull( _this16->charBuf )) {
HXLINE( 118) _this16->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 118) _this16->charBuf->push(93);
}
}
}
else {
HXLINE( 119) if (hx::IsEq( c,hx::ClassOf< ::haxe::ds::StringMap >() )) {
HXLINE( 120) ::haxe::ds::StringMap v7 = ( ( ::haxe::ds::StringMap)(v) );
HXLINE( 121) ::Dynamic o = ::Dynamic(hx::Anon_obj::Create(0));
HXLINE( 122) {
HXLINE( 122) ::Dynamic k1 = v7->keys();
HXDLIN( 122) while(( (bool)(k1->__Field(HX_("hasNext",6d,a5,46,18),hx::paccDynamic)()) )){
HXLINE( 122) ::String k2 = ( (::String)(k1->__Field(HX_("next",f3,84,02,49),hx::paccDynamic)()) );
HXLINE( 123) ::Reflect_obj::setField(o,k2,v7->get(k2));
}
}
HXLINE( 124) {
HXLINE( 124) ::Dynamic v8 = o;
HXDLIN( 124) this->fieldsString(v8,::Reflect_obj::fields(v8));
}
}
else {
HXLINE( 125) if (hx::IsEq( c,hx::ClassOf< ::Date >() )) {
HXLINE( 126) ::Date v9 = ( ( ::Date)(v) );
HXLINE( 127) this->quote(v9->toString());
}
else {
HXLINE( 129) this->classString(v);
}
}
}
}
}
break;
case (int)7: {
HXLINE( 130) hx::Class _g12 = _g->_hx_getObject(0).StaticCast< hx::Class >();
HXDLIN( 130) {
HXLINE( 131) ::Dynamic i1 = _hx_getEnumValueIndex(v);
HXLINE( 132) {
HXLINE( 132) ::String v10 = ( (::String)(i1) );
HXDLIN( 132) {
HXLINE( 132) ::StringBuf _this17 = this->buf;
HXDLIN( 132) if (hx::IsNotNull( _this17->charBuf )) {
HXLINE( 132) _this17->flush();
}
HXDLIN( 132) if (hx::IsNull( _this17->b )) {
HXLINE( 132) _this17->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(v10));
}
else {
HXLINE( 132) ::Array< ::String > _this18 = _this17->b;
HXDLIN( 132) _this18->push(::Std_obj::string(v10));
}
}
}
}
}
break;
case (int)8: {
HXLINE( 86) ::StringBuf _this19 = this->buf;
HXDLIN( 86) if (hx::IsNotNull( _this19->charBuf )) {
HXLINE( 86) _this19->flush();
}
HXDLIN( 86) if (hx::IsNull( _this19->b )) {
HXLINE( 86) _this19->b = ::Array_obj< ::String >::fromData( _hx_array_data_f7b98003_6,1);
}
else {
HXLINE( 86) _this19->b->push(HX_("\"???\"",45,2f,74,bd));
}
}
break;
}
}
}
HX_DEFINE_DYNAMIC_FUNC2(JsonPrinter_obj,write,(void))
void JsonPrinter_obj::classString( ::Dynamic v){
HX_STACKFRAME(&_hx_pos_48248be6b214f1a1_158_classString)
HXDLIN( 158) this->fieldsString(v,::Type_obj::getInstanceFields(::Type_obj::getClass(v)));
}
HX_DEFINE_DYNAMIC_FUNC1(JsonPrinter_obj,classString,(void))
void JsonPrinter_obj::fieldsString( ::Dynamic v,::Array< ::String > fields){
HX_STACKFRAME(&_hx_pos_48248be6b214f1a1_165_fieldsString)
HXLINE( 166) {
HXLINE( 166) ::StringBuf _this = this->buf;
HXDLIN( 166) {
HXLINE( 166) if (hx::IsNull( _this->charBuf )) {
HXLINE( 166) _this->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 166) _this->charBuf->push(123);
}
}
HXLINE( 167) int len = fields->length;
HXLINE( 168) int last = (len - 1);
HXLINE( 169) bool first = true;
HXLINE( 170) {
HXLINE( 170) int _g = 0;
HXDLIN( 170) int _g1 = len;
HXDLIN( 170) while((_g < _g1)){
HXLINE( 170) _g = (_g + 1);
HXDLIN( 170) int i = (_g - 1);
HXLINE( 171) ::String f = fields->__get(i);
HXLINE( 172) ::Dynamic value = ::Reflect_obj::field(v,f);
HXLINE( 173) if (::Reflect_obj::isFunction(value)) {
HXLINE( 174) continue;
}
HXLINE( 175) if (first) {
HXLINE( 176) this->nind++;
HXLINE( 177) first = false;
}
else {
HXLINE( 179) ::StringBuf _this1 = this->buf;
HXDLIN( 179) {
HXLINE( 179) if (hx::IsNull( _this1->charBuf )) {
HXLINE( 179) _this1->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 179) _this1->charBuf->push(44);
}
}
HXLINE( 180) if (this->pretty) {
HXLINE( 180) ::StringBuf _this2 = this->buf;
HXDLIN( 180) {
HXLINE( 180) if (hx::IsNull( _this2->charBuf )) {
HXLINE( 180) _this2->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 180) _this2->charBuf->push(10);
}
}
HXLINE( 181) if (this->pretty) {
HXLINE( 181) ::String v1 = ::StringTools_obj::lpad(HX_("",00,00,00,00),this->indent,(this->nind * this->indent.length));
HXDLIN( 181) {
HXLINE( 181) ::StringBuf _this3 = this->buf;
HXDLIN( 181) if (hx::IsNotNull( _this3->charBuf )) {
HXLINE( 181) _this3->flush();
}
HXDLIN( 181) if (hx::IsNull( _this3->b )) {
HXLINE( 181) _this3->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(v1));
}
else {
HXLINE( 181) ::Array< ::String > _this4 = _this3->b;
HXDLIN( 181) _this4->push(::Std_obj::string(v1));
}
}
}
HXLINE( 182) this->quote(f);
HXLINE( 183) {
HXLINE( 183) ::StringBuf _this5 = this->buf;
HXDLIN( 183) {
HXLINE( 183) if (hx::IsNull( _this5->charBuf )) {
HXLINE( 183) _this5->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 183) _this5->charBuf->push(58);
}
}
HXLINE( 184) if (this->pretty) {
HXLINE( 185) ::StringBuf _this6 = this->buf;
HXDLIN( 185) {
HXLINE( 185) if (hx::IsNull( _this6->charBuf )) {
HXLINE( 185) _this6->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 185) _this6->charBuf->push(32);
}
}
HXLINE( 186) this->write(f,value);
HXLINE( 187) if ((i == last)) {
HXLINE( 188) this->nind--;
HXLINE( 189) if (this->pretty) {
HXLINE( 189) ::StringBuf _this7 = this->buf;
HXDLIN( 189) {
HXLINE( 189) if (hx::IsNull( _this7->charBuf )) {
HXLINE( 189) _this7->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 189) _this7->charBuf->push(10);
}
}
HXLINE( 190) if (this->pretty) {
HXLINE( 190) ::String v2 = ::StringTools_obj::lpad(HX_("",00,00,00,00),this->indent,(this->nind * this->indent.length));
HXDLIN( 190) {
HXLINE( 190) ::StringBuf _this8 = this->buf;
HXDLIN( 190) if (hx::IsNotNull( _this8->charBuf )) {
HXLINE( 190) _this8->flush();
}
HXDLIN( 190) if (hx::IsNull( _this8->b )) {
HXLINE( 190) _this8->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(v2));
}
else {
HXLINE( 190) ::Array< ::String > _this9 = _this8->b;
HXDLIN( 190) _this9->push(::Std_obj::string(v2));
}
}
}
}
}
}
HXLINE( 193) {
HXLINE( 193) ::StringBuf _this10 = this->buf;
HXDLIN( 193) {
HXLINE( 193) if (hx::IsNull( _this10->charBuf )) {
HXLINE( 193) _this10->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 193) _this10->charBuf->push(125);
}
}
}
HX_DEFINE_DYNAMIC_FUNC2(JsonPrinter_obj,fieldsString,(void))
void JsonPrinter_obj::quote(::String s){
HX_STACKFRAME(&_hx_pos_48248be6b214f1a1_196_quote)
HXLINE( 203) {
HXLINE( 203) ::StringBuf _this = this->buf;
HXDLIN( 203) {
HXLINE( 203) if (hx::IsNull( _this->charBuf )) {
HXLINE( 203) _this->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 203) _this->charBuf->push(34);
}
}
HXLINE( 204) int i = 0;
HXLINE( 208) while(true){
HXLINE( 209) i = (i + 1);
HXDLIN( 209) int c = s.cca((i - 1));
HXLINE( 210) if ((c == 0)) {
HXLINE( 211) goto _hx_goto_10;
}
HXLINE( 212) switch((int)(c)){
case (int)8: {
HXLINE( 224) ::StringBuf _this1 = this->buf;
HXDLIN( 224) if (hx::IsNotNull( _this1->charBuf )) {
HXLINE( 224) _this1->flush();
}
HXDLIN( 224) if (hx::IsNull( _this1->b )) {
HXLINE( 224) _this1->b = ::Array_obj< ::String >::fromData( _hx_array_data_f7b98003_12,1);
}
else {
HXLINE( 224) _this1->b->push(HX_("\\b",86,50,00,00));
}
}
break;
case (int)9: {
HXLINE( 222) ::StringBuf _this2 = this->buf;
HXDLIN( 222) if (hx::IsNotNull( _this2->charBuf )) {
HXLINE( 222) _this2->flush();
}
HXDLIN( 222) if (hx::IsNull( _this2->b )) {
HXLINE( 222) _this2->b = ::Array_obj< ::String >::fromData( _hx_array_data_f7b98003_13,1);
}
else {
HXLINE( 222) _this2->b->push(HX_("\\t",98,50,00,00));
}
}
break;
case (int)10: {
HXLINE( 218) ::StringBuf _this3 = this->buf;
HXDLIN( 218) if (hx::IsNotNull( _this3->charBuf )) {
HXLINE( 218) _this3->flush();
}
HXDLIN( 218) if (hx::IsNull( _this3->b )) {
HXLINE( 218) _this3->b = ::Array_obj< ::String >::fromData( _hx_array_data_f7b98003_14,1);
}
else {
HXLINE( 218) _this3->b->push(HX_("\\n",92,50,00,00));
}
}
break;
case (int)12: {
HXLINE( 226) ::StringBuf _this4 = this->buf;
HXDLIN( 226) if (hx::IsNotNull( _this4->charBuf )) {
HXLINE( 226) _this4->flush();
}
HXDLIN( 226) if (hx::IsNull( _this4->b )) {
HXLINE( 226) _this4->b = ::Array_obj< ::String >::fromData( _hx_array_data_f7b98003_15,1);
}
else {
HXLINE( 226) _this4->b->push(HX_("\\f",8a,50,00,00));
}
}
break;
case (int)13: {
HXLINE( 220) ::StringBuf _this5 = this->buf;
HXDLIN( 220) if (hx::IsNotNull( _this5->charBuf )) {
HXLINE( 220) _this5->flush();
}
HXDLIN( 220) if (hx::IsNull( _this5->b )) {
HXLINE( 220) _this5->b = ::Array_obj< ::String >::fromData( _hx_array_data_f7b98003_16,1);
}
else {
HXLINE( 220) _this5->b->push(HX_("\\r",96,50,00,00));
}
}
break;
case (int)34: {
HXLINE( 214) ::StringBuf _this6 = this->buf;
HXDLIN( 214) if (hx::IsNotNull( _this6->charBuf )) {
HXLINE( 214) _this6->flush();
}
HXDLIN( 214) if (hx::IsNull( _this6->b )) {
HXLINE( 214) _this6->b = ::Array_obj< ::String >::fromData( _hx_array_data_f7b98003_17,1);
}
else {
HXLINE( 214) _this6->b->push(HX_("\\\"",46,50,00,00));
}
}
break;
case (int)92: {
HXLINE( 216) ::StringBuf _this7 = this->buf;
HXDLIN( 216) if (hx::IsNotNull( _this7->charBuf )) {
HXLINE( 216) _this7->flush();
}
HXDLIN( 216) if (hx::IsNull( _this7->b )) {
HXLINE( 216) _this7->b = ::Array_obj< ::String >::fromData( _hx_array_data_f7b98003_18,1);
}
else {
HXLINE( 216) _this7->b->push(HX_("\\\\",80,50,00,00));
}
}
break;
default:{
HXLINE( 249) ::StringBuf _this8 = this->buf;
HXDLIN( 249) if ((c >= 127)) {
HXLINE( 249) ::String x = ::String::fromCharCode(c);
HXDLIN( 249) if (hx::IsNotNull( _this8->charBuf )) {
HXLINE( 249) _this8->flush();
}
HXDLIN( 249) if (hx::IsNull( _this8->b )) {
HXLINE( 249) _this8->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(x));
}
else {
HXLINE( 249) ::Array< ::String > _this9 = _this8->b;
HXDLIN( 249) _this9->push(::Std_obj::string(x));
}
}
else {
HXLINE( 249) if (hx::IsNull( _this8->charBuf )) {
HXLINE( 249) _this8->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 249) _this8->charBuf->push(c);
}
}
}
}
_hx_goto_10:;
HXLINE( 257) {
HXLINE( 257) ::StringBuf _this10 = this->buf;
HXDLIN( 257) {
HXLINE( 257) if (hx::IsNull( _this10->charBuf )) {
HXLINE( 257) _this10->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 257) _this10->charBuf->push(34);
}
}
}
HX_DEFINE_DYNAMIC_FUNC1(JsonPrinter_obj,quote,(void))
::String JsonPrinter_obj::print( ::Dynamic o, ::Dynamic replacer,::String space){
HX_GC_STACKFRAME(&_hx_pos_48248be6b214f1a1_44_print)
HXLINE( 45) ::haxe::format::JsonPrinter printer = ::haxe::format::JsonPrinter_obj::__alloc( HX_CTX ,replacer,space);
HXLINE( 46) printer->write(HX_("",00,00,00,00),o);
HXLINE( 47) return printer->buf->toString();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC3(JsonPrinter_obj,print,return )
hx::ObjectPtr< JsonPrinter_obj > JsonPrinter_obj::__new( ::Dynamic replacer,::String space) {
hx::ObjectPtr< JsonPrinter_obj > __this = new JsonPrinter_obj();
__this->__construct(replacer,space);
return __this;
}
hx::ObjectPtr< JsonPrinter_obj > JsonPrinter_obj::__alloc(hx::Ctx *_hx_ctx, ::Dynamic replacer,::String space) {
JsonPrinter_obj *__this = (JsonPrinter_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(JsonPrinter_obj), true, "haxe.format.JsonPrinter"));
*(void **)__this = JsonPrinter_obj::_hx_vtable;
__this->__construct(replacer,space);
return __this;
}
JsonPrinter_obj::JsonPrinter_obj()
{
}
void JsonPrinter_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(JsonPrinter);
HX_MARK_MEMBER_NAME(buf,"buf");
HX_MARK_MEMBER_NAME(replacer,"replacer");
HX_MARK_MEMBER_NAME(indent,"indent");
HX_MARK_MEMBER_NAME(pretty,"pretty");
HX_MARK_MEMBER_NAME(nind,"nind");
HX_MARK_END_CLASS();
}
void JsonPrinter_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(buf,"buf");
HX_VISIT_MEMBER_NAME(replacer,"replacer");
HX_VISIT_MEMBER_NAME(indent,"indent");
HX_VISIT_MEMBER_NAME(pretty,"pretty");
HX_VISIT_MEMBER_NAME(nind,"nind");
}
hx::Val JsonPrinter_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 3:
if (HX_FIELD_EQ(inName,"buf") ) { return hx::Val( buf ); }
break;
case 4:
if (HX_FIELD_EQ(inName,"nind") ) { return hx::Val( nind ); }
break;
case 5:
if (HX_FIELD_EQ(inName,"write") ) { return hx::Val( write_dyn() ); }
if (HX_FIELD_EQ(inName,"quote") ) { return hx::Val( quote_dyn() ); }
break;
case 6:
if (HX_FIELD_EQ(inName,"indent") ) { return hx::Val( indent ); }
if (HX_FIELD_EQ(inName,"pretty") ) { return hx::Val( pretty ); }
break;
case 8:
if (HX_FIELD_EQ(inName,"replacer") ) { return hx::Val( replacer ); }
break;
case 11:
if (HX_FIELD_EQ(inName,"classString") ) { return hx::Val( classString_dyn() ); }
break;
case 12:
if (HX_FIELD_EQ(inName,"fieldsString") ) { return hx::Val( fieldsString_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
bool JsonPrinter_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 5:
if (HX_FIELD_EQ(inName,"print") ) { outValue = print_dyn(); return true; }
}
return false;
}
hx::Val JsonPrinter_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 3:
if (HX_FIELD_EQ(inName,"buf") ) { buf=inValue.Cast< ::StringBuf >(); return inValue; }
break;
case 4:
if (HX_FIELD_EQ(inName,"nind") ) { nind=inValue.Cast< int >(); return inValue; }
break;
case 6:
if (HX_FIELD_EQ(inName,"indent") ) { indent=inValue.Cast< ::String >(); return inValue; }
if (HX_FIELD_EQ(inName,"pretty") ) { pretty=inValue.Cast< bool >(); return inValue; }
break;
case 8:
if (HX_FIELD_EQ(inName,"replacer") ) { replacer=inValue.Cast< ::Dynamic >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void JsonPrinter_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("buf",33,c3,4a,00));
outFields->push(HX_("indent",6c,0c,f3,93));
outFields->push(HX_("pretty",b6,82,c1,ae));
outFields->push(HX_("nind",31,85,05,49));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo JsonPrinter_obj_sMemberStorageInfo[] = {
{hx::fsObject /* ::StringBuf */ ,(int)offsetof(JsonPrinter_obj,buf),HX_("buf",33,c3,4a,00)},
{hx::fsObject /* ::Dynamic */ ,(int)offsetof(JsonPrinter_obj,replacer),HX_("replacer",be,e5,16,18)},
{hx::fsString,(int)offsetof(JsonPrinter_obj,indent),HX_("indent",6c,0c,f3,93)},
{hx::fsBool,(int)offsetof(JsonPrinter_obj,pretty),HX_("pretty",b6,82,c1,ae)},
{hx::fsInt,(int)offsetof(JsonPrinter_obj,nind),HX_("nind",31,85,05,49)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *JsonPrinter_obj_sStaticStorageInfo = 0;
#endif
static ::String JsonPrinter_obj_sMemberFields[] = {
HX_("buf",33,c3,4a,00),
HX_("replacer",be,e5,16,18),
HX_("indent",6c,0c,f3,93),
HX_("pretty",b6,82,c1,ae),
HX_("nind",31,85,05,49),
HX_("write",df,6c,59,d0),
HX_("classString",29,0f,79,88),
HX_("fieldsString",2a,cc,56,34),
HX_("quote",3c,23,f2,5d),
::String(null()) };
hx::Class JsonPrinter_obj::__mClass;
static ::String JsonPrinter_obj_sStaticFields[] = {
HX_("print",2d,58,8b,c8),
::String(null())
};
void JsonPrinter_obj::__register()
{
JsonPrinter_obj _hx_dummy;
JsonPrinter_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.format.JsonPrinter",03,80,b9,f7);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &JsonPrinter_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(JsonPrinter_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(JsonPrinter_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< JsonPrinter_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = JsonPrinter_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = JsonPrinter_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace format

View File

@@ -0,0 +1,685 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_38344beec7696400
#define INCLUDED_38344beec7696400
#include "cpp/Int64.h"
#endif
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_StringBuf
#include <StringBuf.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_haxe_io_Encoding
#include <haxe/io/Encoding.h>
#endif
#ifndef INCLUDED_haxe_io_Error
#include <haxe/io/Error.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_7de8773c9a509473_44_new,"haxe.io.Bytes","new",0x3938d57d,"haxe.io.Bytes.new","haxe/io/Bytes.hx",44,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_59_get,"haxe.io.Bytes","get",0x393385b3,"haxe.io.Bytes.get","haxe/io/Bytes.hx",59,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_76_set,"haxe.io.Bytes","set",0x393ca0bf,"haxe.io.Bytes.set","haxe/io/Bytes.hx",76,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_89_blit,"haxe.io.Bytes","blit",0xd098ac78,"haxe.io.Bytes.blit","haxe/io/Bytes.hx",89,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_140_fill,"haxe.io.Bytes","fill",0xd33b42c6,"haxe.io.Bytes.fill","haxe/io/Bytes.hx",140,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_148_sub,"haxe.io.Bytes","sub",0x393cae9d,"haxe.io.Bytes.sub","haxe/io/Bytes.hx",148,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_210_compare,"haxe.io.Bytes","compare",0x46537042,"haxe.io.Bytes.compare","haxe/io/Bytes.hx",210,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_229_getDouble,"haxe.io.Bytes","getDouble",0xc306ed24,"haxe.io.Bytes.getDouble","haxe/io/Bytes.hx",229,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_251_getFloat,"haxe.io.Bytes","getFloat",0x2c9026e9,"haxe.io.Bytes.getFloat","haxe/io/Bytes.hx",251,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_273_setDouble,"haxe.io.Bytes","setDouble",0xa657d930,"haxe.io.Bytes.setDouble","haxe/io/Bytes.hx",273,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_299_setFloat,"haxe.io.Bytes","setFloat",0xdaed805d,"haxe.io.Bytes.setFloat","haxe/io/Bytes.hx",299,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_323_getUInt16,"haxe.io.Bytes","getUInt16",0xa94afaf2,"haxe.io.Bytes.getUInt16","haxe/io/Bytes.hx",323,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_331_setUInt16,"haxe.io.Bytes","setUInt16",0x8c9be6fe,"haxe.io.Bytes.setUInt16","haxe/io/Bytes.hx",331,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_354_getInt32,"haxe.io.Bytes","getInt32",0xe819f49b,"haxe.io.Bytes.getInt32","haxe/io/Bytes.hx",354,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_363_getInt64,"haxe.io.Bytes","getInt64",0xe819f73a,"haxe.io.Bytes.getInt64","haxe/io/Bytes.hx",363,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_370_setInt32,"haxe.io.Bytes","setInt32",0x96774e0f,"haxe.io.Bytes.setInt32","haxe/io/Bytes.hx",370,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_385_setInt64,"haxe.io.Bytes","setInt64",0x967750ae,"haxe.io.Bytes.setInt64","haxe/io/Bytes.hx",385,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_391_getString,"haxe.io.Bytes","getString",0xa16beae4,"haxe.io.Bytes.getString","haxe/io/Bytes.hx",391,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_457_readString,"haxe.io.Bytes","readString",0x5f58954a,"haxe.io.Bytes.readString","haxe/io/Bytes.hx",457,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_480_toString,"haxe.io.Bytes","toString",0x0291226f,"haxe.io.Bytes.toString","haxe/io/Bytes.hx",480,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_485_toHex,"haxe.io.Bytes","toHex",0x14173a7d,"haxe.io.Bytes.toHex","haxe/io/Bytes.hx",485,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_502_getData,"haxe.io.Bytes","getData",0xd7d05d7d,"haxe.io.Bytes.getData","haxe/io/Bytes.hx",502,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_506_alloc,"haxe.io.Bytes","alloc",0x2199ead2,"haxe.io.Bytes.alloc","haxe/io/Bytes.hx",506,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_536_ofString,"haxe.io.Bytes","ofString",0x6e53bb0b,"haxe.io.Bytes.ofString","haxe/io/Bytes.hx",536,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_606_ofData,"haxe.io.Bytes","ofData",0x4f3005e4,"haxe.io.Bytes.ofData","haxe/io/Bytes.hx",606,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_615_ofHex,"haxe.io.Bytes","ofHex",0x2d236861,"haxe.io.Bytes.ofHex","haxe/io/Bytes.hx",615,0x68bfff33)
HX_LOCAL_STACK_FRAME(_hx_pos_7de8773c9a509473_642_fastGet,"haxe.io.Bytes","fastGet",0xa10d56f7,"haxe.io.Bytes.fastGet","haxe/io/Bytes.hx",642,0x68bfff33)
namespace haxe{
namespace io{
void Bytes_obj::__construct(int length,::Array< unsigned char > b){
HX_STACKFRAME(&_hx_pos_7de8773c9a509473_44_new)
HXLINE( 45) this->length = length;
HXLINE( 46) this->b = b;
}
Dynamic Bytes_obj::__CreateEmpty() { return new Bytes_obj; }
void *Bytes_obj::_hx_vtable = 0;
Dynamic Bytes_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Bytes_obj > _hx_result = new Bytes_obj();
_hx_result->__construct(inArgs[0],inArgs[1]);
return _hx_result;
}
bool Bytes_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x5b931193;
}
int Bytes_obj::get(int pos){
HX_STACKFRAME(&_hx_pos_7de8773c9a509473_59_get)
HXDLIN( 59) return ( (int)(this->b->__get(pos)) );
}
HX_DEFINE_DYNAMIC_FUNC1(Bytes_obj,get,return )
void Bytes_obj::set(int pos,int v){
HX_STACKFRAME(&_hx_pos_7de8773c9a509473_76_set)
HXDLIN( 76) this->b[pos] = ( (unsigned char)(v) );
}
HX_DEFINE_DYNAMIC_FUNC2(Bytes_obj,set,(void))
void Bytes_obj::blit(int pos, ::haxe::io::Bytes src,int srcpos,int len){
HX_STACKFRAME(&_hx_pos_7de8773c9a509473_89_blit)
HXLINE( 91) bool _hx_tmp;
HXDLIN( 91) bool _hx_tmp1;
HXDLIN( 91) bool _hx_tmp2;
HXDLIN( 91) bool _hx_tmp3;
HXDLIN( 91) if ((pos >= 0)) {
HXLINE( 91) _hx_tmp3 = (srcpos < 0);
}
else {
HXLINE( 91) _hx_tmp3 = true;
}
HXDLIN( 91) if (!(_hx_tmp3)) {
HXLINE( 91) _hx_tmp2 = (len < 0);
}
else {
HXLINE( 91) _hx_tmp2 = true;
}
HXDLIN( 91) if (!(_hx_tmp2)) {
HXLINE( 91) _hx_tmp1 = ((pos + len) > this->length);
}
else {
HXLINE( 91) _hx_tmp1 = true;
}
HXDLIN( 91) if (!(_hx_tmp1)) {
HXLINE( 91) _hx_tmp = ((srcpos + len) > src->length);
}
else {
HXLINE( 91) _hx_tmp = true;
}
HXDLIN( 91) if (_hx_tmp) {
HXLINE( 91) HX_STACK_DO_THROW(::haxe::io::Error_obj::OutsideBounds_dyn());
}
HXLINE( 108) this->b->blit(pos,src->b,srcpos,len);
}
HX_DEFINE_DYNAMIC_FUNC4(Bytes_obj,blit,(void))
void Bytes_obj::fill(int pos,int len,int value){
HX_STACKFRAME(&_hx_pos_7de8773c9a509473_140_fill)
HXDLIN( 140) ::__hxcpp_memory_memset(this->b,pos,len,value);
}
HX_DEFINE_DYNAMIC_FUNC3(Bytes_obj,fill,(void))
::haxe::io::Bytes Bytes_obj::sub(int pos,int len){
HX_GC_STACKFRAME(&_hx_pos_7de8773c9a509473_148_sub)
HXLINE( 150) bool _hx_tmp;
HXDLIN( 150) bool _hx_tmp1;
HXDLIN( 150) if ((pos >= 0)) {
HXLINE( 150) _hx_tmp1 = (len < 0);
}
else {
HXLINE( 150) _hx_tmp1 = true;
}
HXDLIN( 150) if (!(_hx_tmp1)) {
HXLINE( 150) _hx_tmp = ((pos + len) > this->length);
}
else {
HXLINE( 150) _hx_tmp = true;
}
HXDLIN( 150) if (_hx_tmp) {
HXLINE( 150) HX_STACK_DO_THROW(::haxe::io::Error_obj::OutsideBounds_dyn());
}
HXLINE( 171) return ::haxe::io::Bytes_obj::__alloc( HX_CTX ,len,this->b->slice(pos,(pos + len)));
}
HX_DEFINE_DYNAMIC_FUNC2(Bytes_obj,sub,return )
int Bytes_obj::compare( ::haxe::io::Bytes other){
HX_STACKFRAME(&_hx_pos_7de8773c9a509473_210_compare)
HXDLIN( 210) return this->b->memcmp(other->b);
}
HX_DEFINE_DYNAMIC_FUNC1(Bytes_obj,compare,return )
Float Bytes_obj::getDouble(int pos){
HX_STACKFRAME(&_hx_pos_7de8773c9a509473_229_getDouble)
HXLINE( 236) bool _hx_tmp;
HXDLIN( 236) if ((pos >= 0)) {
HXLINE( 236) _hx_tmp = ((pos + 8) > this->length);
}
else {
HXLINE( 236) _hx_tmp = true;
}
HXDLIN( 236) if (_hx_tmp) {
HXLINE( 236) HX_STACK_DO_THROW(::haxe::io::Error_obj::OutsideBounds_dyn());
}
HXLINE( 237) return ::__hxcpp_memory_get_double(this->b,pos);
}
HX_DEFINE_DYNAMIC_FUNC1(Bytes_obj,getDouble,return )
Float Bytes_obj::getFloat(int pos){
HX_STACKFRAME(&_hx_pos_7de8773c9a509473_251_getFloat)
HXLINE( 258) bool _hx_tmp;
HXDLIN( 258) if ((pos >= 0)) {
HXLINE( 258) _hx_tmp = ((pos + 4) > this->length);
}
else {
HXLINE( 258) _hx_tmp = true;
}
HXDLIN( 258) if (_hx_tmp) {
HXLINE( 258) HX_STACK_DO_THROW(::haxe::io::Error_obj::OutsideBounds_dyn());
}
HXLINE( 259) return ::__hxcpp_memory_get_float(this->b,pos);
}
HX_DEFINE_DYNAMIC_FUNC1(Bytes_obj,getFloat,return )
void Bytes_obj::setDouble(int pos,Float v){
HX_STACKFRAME(&_hx_pos_7de8773c9a509473_273_setDouble)
HXLINE( 282) bool _hx_tmp;
HXDLIN( 282) if ((pos >= 0)) {
HXLINE( 282) _hx_tmp = ((pos + 8) > this->length);
}
else {
HXLINE( 282) _hx_tmp = true;
}
HXDLIN( 282) if (_hx_tmp) {
HXLINE( 282) HX_STACK_DO_THROW(::haxe::io::Error_obj::OutsideBounds_dyn());
}
HXLINE( 283) ::__hxcpp_memory_set_double(this->b,pos,v);
}
HX_DEFINE_DYNAMIC_FUNC2(Bytes_obj,setDouble,(void))
void Bytes_obj::setFloat(int pos,Float v){
HX_STACKFRAME(&_hx_pos_7de8773c9a509473_299_setFloat)
HXLINE( 308) bool _hx_tmp;
HXDLIN( 308) if ((pos >= 0)) {
HXLINE( 308) _hx_tmp = ((pos + 4) > this->length);
}
else {
HXLINE( 308) _hx_tmp = true;
}
HXDLIN( 308) if (_hx_tmp) {
HXLINE( 308) HX_STACK_DO_THROW(::haxe::io::Error_obj::OutsideBounds_dyn());
}
HXLINE( 309) ::__hxcpp_memory_set_float(this->b,pos,v);
}
HX_DEFINE_DYNAMIC_FUNC2(Bytes_obj,setFloat,(void))
int Bytes_obj::getUInt16(int pos){
HX_STACKFRAME(&_hx_pos_7de8773c9a509473_323_getUInt16)
HXDLIN( 323) return (( (int)(this->b->__get(pos)) ) | (( (int)(this->b->__get((pos + 1))) ) << 8));
}
HX_DEFINE_DYNAMIC_FUNC1(Bytes_obj,getUInt16,return )
void Bytes_obj::setUInt16(int pos,int v){
HX_STACKFRAME(&_hx_pos_7de8773c9a509473_331_setUInt16)
HXLINE( 335) this->b[pos] = ( (unsigned char)(v) );
HXLINE( 336) this->b[(pos + 1)] = ( (unsigned char)((v >> 8)) );
}
HX_DEFINE_DYNAMIC_FUNC2(Bytes_obj,setUInt16,(void))
int Bytes_obj::getInt32(int pos){
HX_STACKFRAME(&_hx_pos_7de8773c9a509473_354_getInt32)
HXDLIN( 354) return (((( (int)(this->b->__get(pos)) ) | (( (int)(this->b->__get((pos + 1))) ) << 8)) | (( (int)(this->b->__get((pos + 2))) ) << 16)) | (( (int)(this->b->__get((pos + 3))) ) << 24));
}
HX_DEFINE_DYNAMIC_FUNC1(Bytes_obj,getInt32,return )
cpp::Int64Struct Bytes_obj::getInt64(int pos){
HX_STACKFRAME(&_hx_pos_7de8773c9a509473_363_getInt64)
HXDLIN( 363) int pos1 = (pos + 4);
HXDLIN( 363) return _hx_int64_make((((( (int)(this->b->__get(pos1)) ) | (( (int)(this->b->__get((pos1 + 1))) ) << 8)) | (( (int)(this->b->__get((pos1 + 2))) ) << 16)) | (( (int)(this->b->__get((pos1 + 3))) ) << 24)),(((( (int)(this->b->__get(pos)) ) | (( (int)(this->b->__get((pos + 1))) ) << 8)) | (( (int)(this->b->__get((pos + 2))) ) << 16)) | (( (int)(this->b->__get((pos + 3))) ) << 24)));
}
HX_DEFINE_DYNAMIC_FUNC1(Bytes_obj,getInt64,return )
void Bytes_obj::setInt32(int pos,int v){
HX_STACKFRAME(&_hx_pos_7de8773c9a509473_370_setInt32)
HXLINE( 374) this->b[pos] = ( (unsigned char)((v & 255)) );
HXLINE( 375) this->b[(pos + 1)] = ( (unsigned char)(((v >> 8) & 255)) );
HXLINE( 376) this->b[(pos + 2)] = ( (unsigned char)(((v >> 16) & 255)) );
HXLINE( 377) this->b[(pos + 3)] = ( (unsigned char)((hx::UShr(v,24) & 255)) );
}
HX_DEFINE_DYNAMIC_FUNC2(Bytes_obj,setInt32,(void))
void Bytes_obj::setInt64(int pos, cpp::Int64Struct v){
HX_STACKFRAME(&_hx_pos_7de8773c9a509473_385_setInt64)
HXLINE( 386) {
HXLINE( 386) int v1 = _hx_int64_low(v);
HXDLIN( 386) this->b[pos] = ( (unsigned char)((v1 & 255)) );
HXDLIN( 386) this->b[(pos + 1)] = ( (unsigned char)(((v1 >> 8) & 255)) );
HXDLIN( 386) this->b[(pos + 2)] = ( (unsigned char)(((v1 >> 16) & 255)) );
HXDLIN( 386) this->b[(pos + 3)] = ( (unsigned char)((hx::UShr(v1,24) & 255)) );
}
HXLINE( 387) {
HXLINE( 387) int pos1 = (pos + 4);
HXDLIN( 387) int v2 = _hx_int64_high(v);
HXDLIN( 387) this->b[pos1] = ( (unsigned char)((v2 & 255)) );
HXDLIN( 387) this->b[(pos1 + 1)] = ( (unsigned char)(((v2 >> 8) & 255)) );
HXDLIN( 387) this->b[(pos1 + 2)] = ( (unsigned char)(((v2 >> 16) & 255)) );
HXDLIN( 387) this->b[(pos1 + 3)] = ( (unsigned char)((hx::UShr(v2,24) & 255)) );
}
}
HX_DEFINE_DYNAMIC_FUNC2(Bytes_obj,setInt64,(void))
::String Bytes_obj::getString(int pos,int len, ::haxe::io::Encoding encoding){
HX_STACKFRAME(&_hx_pos_7de8773c9a509473_391_getString)
HXLINE( 393) bool _hx_tmp;
HXDLIN( 393) bool _hx_tmp1;
HXDLIN( 393) if ((pos >= 0)) {
HXLINE( 393) _hx_tmp1 = (len < 0);
}
else {
HXLINE( 393) _hx_tmp1 = true;
}
HXDLIN( 393) if (!(_hx_tmp1)) {
HXLINE( 393) _hx_tmp = ((pos + len) > this->length);
}
else {
HXLINE( 393) _hx_tmp = true;
}
HXDLIN( 393) if (_hx_tmp) {
HXLINE( 393) HX_STACK_DO_THROW(::haxe::io::Error_obj::OutsideBounds_dyn());
}
HXLINE( 402) ::String result = HX_("",00,00,00,00);
HXLINE( 403) ::__hxcpp_string_of_bytes(this->b,result,pos,len);
HXLINE( 404) return result;
}
HX_DEFINE_DYNAMIC_FUNC3(Bytes_obj,getString,return )
::String Bytes_obj::readString(int pos,int len){
HX_STACKFRAME(&_hx_pos_7de8773c9a509473_457_readString)
HXDLIN( 457) return this->getString(pos,len,null());
}
HX_DEFINE_DYNAMIC_FUNC2(Bytes_obj,readString,return )
::String Bytes_obj::toString(){
HX_STACKFRAME(&_hx_pos_7de8773c9a509473_480_toString)
HXDLIN( 480) return this->getString(0,this->length,null());
}
HX_DEFINE_DYNAMIC_FUNC0(Bytes_obj,toString,return )
::String Bytes_obj::toHex(){
HX_GC_STACKFRAME(&_hx_pos_7de8773c9a509473_485_toHex)
HXLINE( 486) ::StringBuf s = ::StringBuf_obj::__alloc( HX_CTX );
HXLINE( 487) ::Array< ::Dynamic> chars = ::Array_obj< ::Dynamic>::__new(0);
HXLINE( 488) ::String str = HX_("0123456789abcdef",68,7e,d5,ef);
HXLINE( 489) {
HXLINE( 489) int _g = 0;
HXDLIN( 489) int _g1 = str.length;
HXDLIN( 489) while((_g < _g1)){
HXLINE( 489) _g = (_g + 1);
HXDLIN( 489) int i = (_g - 1);
HXLINE( 490) chars->push(str.charCodeAt(i));
}
}
HXLINE( 491) {
HXLINE( 491) int _g2 = 0;
HXDLIN( 491) int _g3 = this->length;
HXDLIN( 491) while((_g2 < _g3)){
HXLINE( 491) _g2 = (_g2 + 1);
HXDLIN( 491) int i1 = (_g2 - 1);
HXLINE( 493) int c = ( (int)(this->b->__get(i1)) );
HXLINE( 494) {
HXLINE( 494) int c1 = ( (int)(chars->__get((c >> 4))) );
HXDLIN( 494) if ((c1 >= 127)) {
HXLINE( 494) ::String x = ::String::fromCharCode(c1);
HXDLIN( 494) if (hx::IsNotNull( s->charBuf )) {
HXLINE( 494) s->flush();
}
HXDLIN( 494) if (hx::IsNull( s->b )) {
HXLINE( 494) s->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(x));
}
else {
HXLINE( 494) ::Array< ::String > s1 = s->b;
HXDLIN( 494) s1->push(::Std_obj::string(x));
}
}
else {
HXLINE( 494) if (hx::IsNull( s->charBuf )) {
HXLINE( 494) s->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 494) s->charBuf->push(c1);
}
}
HXLINE( 495) {
HXLINE( 495) int c2 = ( (int)(chars->__get((c & 15))) );
HXDLIN( 495) if ((c2 >= 127)) {
HXLINE( 495) ::String x1 = ::String::fromCharCode(c2);
HXDLIN( 495) if (hx::IsNotNull( s->charBuf )) {
HXLINE( 495) s->flush();
}
HXDLIN( 495) if (hx::IsNull( s->b )) {
HXLINE( 495) s->b = ::Array_obj< ::String >::__new(1)->init(0,::Std_obj::string(x1));
}
else {
HXLINE( 495) ::Array< ::String > s2 = s->b;
HXDLIN( 495) s2->push(::Std_obj::string(x1));
}
}
else {
HXLINE( 495) if (hx::IsNull( s->charBuf )) {
HXLINE( 495) s->charBuf = ::Array_obj< char >::__new();
}
HXDLIN( 495) s->charBuf->push(c2);
}
}
}
}
HXLINE( 497) return s->toString();
}
HX_DEFINE_DYNAMIC_FUNC0(Bytes_obj,toHex,return )
::Array< unsigned char > Bytes_obj::getData(){
HX_STACKFRAME(&_hx_pos_7de8773c9a509473_502_getData)
HXDLIN( 502) return this->b;
}
HX_DEFINE_DYNAMIC_FUNC0(Bytes_obj,getData,return )
::haxe::io::Bytes Bytes_obj::alloc(int length){
HX_GC_STACKFRAME(&_hx_pos_7de8773c9a509473_506_alloc)
HXLINE( 514) ::Array< unsigned char > a = ::Array_obj< unsigned char >::__new();
HXLINE( 515) if ((length > 0)) {
HXLINE( 515) _hx_array_set_size_exact(a,length);
}
HXLINE( 516) return ::haxe::io::Bytes_obj::__alloc( HX_CTX ,length,a);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Bytes_obj,alloc,return )
::haxe::io::Bytes Bytes_obj::ofString(::String s, ::haxe::io::Encoding encoding){
HX_GC_STACKFRAME(&_hx_pos_7de8773c9a509473_536_ofString)
HXLINE( 544) ::Array< unsigned char > a = ::Array_obj< unsigned char >::__new();
HXLINE( 545) ::__hxcpp_bytes_of_string(a,s);
HXLINE( 546) return ::haxe::io::Bytes_obj::__alloc( HX_CTX ,a->length,a);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(Bytes_obj,ofString,return )
::haxe::io::Bytes Bytes_obj::ofData(::Array< unsigned char > b){
HX_GC_STACKFRAME(&_hx_pos_7de8773c9a509473_606_ofData)
HXDLIN( 606) return ::haxe::io::Bytes_obj::__alloc( HX_CTX ,b->length,b);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Bytes_obj,ofData,return )
::haxe::io::Bytes Bytes_obj::ofHex(::String s){
HX_STACKFRAME(&_hx_pos_7de8773c9a509473_615_ofHex)
HXLINE( 616) int len = s.length;
HXLINE( 617) if (((len & 1) != 0)) {
HXLINE( 617) HX_STACK_DO_THROW(HX_("Not a hex string (odd number of digits)",96,4b,d1,a4));
}
HXLINE( 618) ::haxe::io::Bytes ret = ::haxe::io::Bytes_obj::alloc((len >> 1));
HXLINE( 619) {
HXLINE( 619) int _g = 0;
HXDLIN( 619) int _g1 = ret->length;
HXDLIN( 619) while((_g < _g1)){
HXLINE( 619) _g = (_g + 1);
HXDLIN( 619) int i = (_g - 1);
HXLINE( 621) int high = s.cca((i * 2));
HXLINE( 622) int low = s.cca(((i * 2) + 1));
HXLINE( 623) high = ((high & 15) + (((high & 64) >> 6) * 9));
HXLINE( 624) low = ((low & 15) + (((low & 64) >> 6) * 9));
HXLINE( 625) ret->b[i] = ( (unsigned char)((((high << 4) | low) & 255)) );
}
}
HXLINE( 628) return ret;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Bytes_obj,ofHex,return )
int Bytes_obj::fastGet(::Array< unsigned char > b,int pos){
HX_STACKFRAME(&_hx_pos_7de8773c9a509473_642_fastGet)
HXDLIN( 642) return ( (int)(_hx_array_unsafe_get(b,pos)) );
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(Bytes_obj,fastGet,return )
hx::ObjectPtr< Bytes_obj > Bytes_obj::__new(int length,::Array< unsigned char > b) {
hx::ObjectPtr< Bytes_obj > __this = new Bytes_obj();
__this->__construct(length,b);
return __this;
}
hx::ObjectPtr< Bytes_obj > Bytes_obj::__alloc(hx::Ctx *_hx_ctx,int length,::Array< unsigned char > b) {
Bytes_obj *__this = (Bytes_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(Bytes_obj), true, "haxe.io.Bytes"));
*(void **)__this = Bytes_obj::_hx_vtable;
__this->__construct(length,b);
return __this;
}
Bytes_obj::Bytes_obj()
{
}
void Bytes_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(Bytes);
HX_MARK_MEMBER_NAME(length,"length");
HX_MARK_MEMBER_NAME(b,"b");
HX_MARK_END_CLASS();
}
void Bytes_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(length,"length");
HX_VISIT_MEMBER_NAME(b,"b");
}
hx::Val Bytes_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"b") ) { return hx::Val( b ); }
break;
case 3:
if (HX_FIELD_EQ(inName,"get") ) { return hx::Val( get_dyn() ); }
if (HX_FIELD_EQ(inName,"set") ) { return hx::Val( set_dyn() ); }
if (HX_FIELD_EQ(inName,"sub") ) { return hx::Val( sub_dyn() ); }
break;
case 4:
if (HX_FIELD_EQ(inName,"blit") ) { return hx::Val( blit_dyn() ); }
if (HX_FIELD_EQ(inName,"fill") ) { return hx::Val( fill_dyn() ); }
break;
case 5:
if (HX_FIELD_EQ(inName,"toHex") ) { return hx::Val( toHex_dyn() ); }
break;
case 6:
if (HX_FIELD_EQ(inName,"length") ) { return hx::Val( length ); }
break;
case 7:
if (HX_FIELD_EQ(inName,"compare") ) { return hx::Val( compare_dyn() ); }
if (HX_FIELD_EQ(inName,"getData") ) { return hx::Val( getData_dyn() ); }
break;
case 8:
if (HX_FIELD_EQ(inName,"getFloat") ) { return hx::Val( getFloat_dyn() ); }
if (HX_FIELD_EQ(inName,"setFloat") ) { return hx::Val( setFloat_dyn() ); }
if (HX_FIELD_EQ(inName,"getInt32") ) { return hx::Val( getInt32_dyn() ); }
if (HX_FIELD_EQ(inName,"getInt64") ) { return hx::Val( getInt64_dyn() ); }
if (HX_FIELD_EQ(inName,"setInt32") ) { return hx::Val( setInt32_dyn() ); }
if (HX_FIELD_EQ(inName,"setInt64") ) { return hx::Val( setInt64_dyn() ); }
if (HX_FIELD_EQ(inName,"toString") ) { return hx::Val( toString_dyn() ); }
break;
case 9:
if (HX_FIELD_EQ(inName,"getDouble") ) { return hx::Val( getDouble_dyn() ); }
if (HX_FIELD_EQ(inName,"setDouble") ) { return hx::Val( setDouble_dyn() ); }
if (HX_FIELD_EQ(inName,"getUInt16") ) { return hx::Val( getUInt16_dyn() ); }
if (HX_FIELD_EQ(inName,"setUInt16") ) { return hx::Val( setUInt16_dyn() ); }
if (HX_FIELD_EQ(inName,"getString") ) { return hx::Val( getString_dyn() ); }
break;
case 10:
if (HX_FIELD_EQ(inName,"readString") ) { return hx::Val( readString_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
bool Bytes_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 5:
if (HX_FIELD_EQ(inName,"alloc") ) { outValue = alloc_dyn(); return true; }
if (HX_FIELD_EQ(inName,"ofHex") ) { outValue = ofHex_dyn(); return true; }
break;
case 6:
if (HX_FIELD_EQ(inName,"ofData") ) { outValue = ofData_dyn(); return true; }
break;
case 7:
if (HX_FIELD_EQ(inName,"fastGet") ) { outValue = fastGet_dyn(); return true; }
break;
case 8:
if (HX_FIELD_EQ(inName,"ofString") ) { outValue = ofString_dyn(); return true; }
}
return false;
}
hx::Val Bytes_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"b") ) { b=inValue.Cast< ::Array< unsigned char > >(); return inValue; }
break;
case 6:
if (HX_FIELD_EQ(inName,"length") ) { length=inValue.Cast< int >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void Bytes_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("length",e6,94,07,9f));
outFields->push(HX_("b",62,00,00,00));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo Bytes_obj_sMemberStorageInfo[] = {
{hx::fsInt,(int)offsetof(Bytes_obj,length),HX_("length",e6,94,07,9f)},
{hx::fsObject /* ::Array< unsigned char > */ ,(int)offsetof(Bytes_obj,b),HX_("b",62,00,00,00)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *Bytes_obj_sStaticStorageInfo = 0;
#endif
static ::String Bytes_obj_sMemberFields[] = {
HX_("length",e6,94,07,9f),
HX_("b",62,00,00,00),
HX_("get",96,80,4e,00),
HX_("set",a2,9b,57,00),
HX_("blit",35,38,19,41),
HX_("fill",83,ce,bb,43),
HX_("sub",80,a9,57,00),
HX_("compare",a5,18,69,83),
HX_("getDouble",47,b4,21,af),
HX_("getFloat",26,d5,6d,62),
HX_("setDouble",53,a0,72,92),
HX_("setFloat",9a,2e,cb,10),
HX_("getUInt16",15,c2,65,95),
HX_("setUInt16",21,ae,b6,78),
HX_("getInt32",d8,a2,f7,1d),
HX_("getInt64",77,a5,f7,1d),
HX_("setInt32",4c,fc,54,cc),
HX_("setInt64",eb,fe,54,cc),
HX_("getString",07,b2,86,8d),
HX_("readString",c7,0c,ac,0a),
HX_("toString",ac,d0,6e,38),
HX_("toHex",20,f4,10,14),
HX_("getData",e0,05,e6,14),
::String(null()) };
hx::Class Bytes_obj::__mClass;
static ::String Bytes_obj_sStaticFields[] = {
HX_("alloc",75,a4,93,21),
HX_("ofString",48,69,31,a4),
HX_("ofData",e1,ba,b8,49),
HX_("ofHex",04,22,1d,2d),
HX_("fastGet",5a,ff,22,de),
::String(null())
};
void Bytes_obj::__register()
{
Bytes_obj _hx_dummy;
Bytes_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.io.Bytes",0b,53,6f,9f);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &Bytes_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(Bytes_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(Bytes_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< Bytes_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Bytes_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Bytes_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace io

View File

@@ -0,0 +1,143 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_haxe_io_BytesBuffer
#include <haxe/io/BytesBuffer.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_1af32ff740468f4b_52_new,"haxe.io.BytesBuffer","new",0x022790dd,"haxe.io.BytesBuffer.new","/usr/share/haxe/std/haxe/io/BytesBuffer.hx",52,0x054745ce)
HX_LOCAL_STACK_FRAME(_hx_pos_1af32ff740468f4b_202_getBytes,"haxe.io.BytesBuffer","getBytes",0x1e9f7258,"haxe.io.BytesBuffer.getBytes","/usr/share/haxe/std/haxe/io/BytesBuffer.hx",202,0x054745ce)
namespace haxe{
namespace io{
void BytesBuffer_obj::__construct(){
HX_STACKFRAME(&_hx_pos_1af32ff740468f4b_52_new)
HXDLIN( 52) this->b = ::Array_obj< unsigned char >::__new();
}
Dynamic BytesBuffer_obj::__CreateEmpty() { return new BytesBuffer_obj; }
void *BytesBuffer_obj::_hx_vtable = 0;
Dynamic BytesBuffer_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< BytesBuffer_obj > _hx_result = new BytesBuffer_obj();
_hx_result->__construct();
return _hx_result;
}
bool BytesBuffer_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x418818bb;
}
::haxe::io::Bytes BytesBuffer_obj::getBytes(){
HX_GC_STACKFRAME(&_hx_pos_1af32ff740468f4b_202_getBytes)
HXLINE( 220) ::haxe::io::Bytes bytes = ::haxe::io::Bytes_obj::__alloc( HX_CTX ,this->b->length,this->b);
HXLINE( 222) this->b = null();
HXLINE( 223) return bytes;
}
HX_DEFINE_DYNAMIC_FUNC0(BytesBuffer_obj,getBytes,return )
hx::ObjectPtr< BytesBuffer_obj > BytesBuffer_obj::__new() {
hx::ObjectPtr< BytesBuffer_obj > __this = new BytesBuffer_obj();
__this->__construct();
return __this;
}
hx::ObjectPtr< BytesBuffer_obj > BytesBuffer_obj::__alloc(hx::Ctx *_hx_ctx) {
BytesBuffer_obj *__this = (BytesBuffer_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(BytesBuffer_obj), true, "haxe.io.BytesBuffer"));
*(void **)__this = BytesBuffer_obj::_hx_vtable;
__this->__construct();
return __this;
}
BytesBuffer_obj::BytesBuffer_obj()
{
}
void BytesBuffer_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(BytesBuffer);
HX_MARK_MEMBER_NAME(b,"b");
HX_MARK_END_CLASS();
}
void BytesBuffer_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(b,"b");
}
hx::Val BytesBuffer_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"b") ) { return hx::Val( b ); }
break;
case 8:
if (HX_FIELD_EQ(inName,"getBytes") ) { return hx::Val( getBytes_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val BytesBuffer_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"b") ) { b=inValue.Cast< ::Array< unsigned char > >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void BytesBuffer_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("b",62,00,00,00));
outFields->push(HX_("length",e6,94,07,9f));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo BytesBuffer_obj_sMemberStorageInfo[] = {
{hx::fsObject /* ::Array< unsigned char > */ ,(int)offsetof(BytesBuffer_obj,b),HX_("b",62,00,00,00)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *BytesBuffer_obj_sStaticStorageInfo = 0;
#endif
static ::String BytesBuffer_obj_sMemberFields[] = {
HX_("b",62,00,00,00),
HX_("getBytes",f5,17,6f,1d),
::String(null()) };
hx::Class BytesBuffer_obj::__mClass;
void BytesBuffer_obj::__register()
{
BytesBuffer_obj _hx_dummy;
BytesBuffer_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.io.BytesBuffer",6b,de,c4,a0);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(BytesBuffer_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< BytesBuffer_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = BytesBuffer_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = BytesBuffer_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace io

View File

@@ -0,0 +1,268 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_haxe_io_BytesInput
#include <haxe/io/BytesInput.h>
#endif
#ifndef INCLUDED_haxe_io_Eof
#include <haxe/io/Eof.h>
#endif
#ifndef INCLUDED_haxe_io_Error
#include <haxe/io/Error.h>
#endif
#ifndef INCLUDED_haxe_io_Input
#include <haxe/io/Input.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_e19d9b72e9fc063d_39_new,"haxe.io.BytesInput","new",0x7fa18571,"haxe.io.BytesInput.new","/usr/share/haxe/std/haxe/io/BytesInput.hx",39,0x845f32e4)
HX_LOCAL_STACK_FRAME(_hx_pos_e19d9b72e9fc063d_96_readByte,"haxe.io.BytesInput","readByte",0xb70e46cd,"haxe.io.BytesInput.readByte","/usr/share/haxe/std/haxe/io/BytesInput.hx",96,0x845f32e4)
HX_LOCAL_STACK_FRAME(_hx_pos_e19d9b72e9fc063d_119_readBytes,"haxe.io.BytesInput","readBytes",0x756fad06,"haxe.io.BytesInput.readBytes","/usr/share/haxe/std/haxe/io/BytesInput.hx",119,0x845f32e4)
namespace haxe{
namespace io{
void BytesInput_obj::__construct( ::haxe::io::Bytes b, ::Dynamic pos, ::Dynamic len){
HX_STACKFRAME(&_hx_pos_e19d9b72e9fc063d_39_new)
HXLINE( 40) if (hx::IsNull( pos )) {
HXLINE( 41) pos = 0;
}
HXLINE( 42) if (hx::IsNull( len )) {
HXLINE( 43) len = (b->length - ( (int)(pos) ));
}
HXLINE( 44) bool _hx_tmp;
HXDLIN( 44) bool _hx_tmp1;
HXDLIN( 44) if (hx::IsGreaterEq( pos,0 )) {
HXLINE( 44) _hx_tmp1 = hx::IsLess( len,0 );
}
else {
HXLINE( 44) _hx_tmp1 = true;
}
HXDLIN( 44) if (!(_hx_tmp1)) {
HXLINE( 44) _hx_tmp = ((pos + len) > b->length);
}
else {
HXLINE( 44) _hx_tmp = true;
}
HXDLIN( 44) if (_hx_tmp) {
HXLINE( 45) HX_STACK_DO_THROW(::haxe::io::Error_obj::OutsideBounds_dyn());
}
HXLINE( 57) this->b = b->b;
HXLINE( 58) this->pos = ( (int)(pos) );
HXLINE( 59) this->len = ( (int)(len) );
HXLINE( 60) this->totlen = ( (int)(len) );
}
Dynamic BytesInput_obj::__CreateEmpty() { return new BytesInput_obj; }
void *BytesInput_obj::_hx_vtable = 0;
Dynamic BytesInput_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< BytesInput_obj > _hx_result = new BytesInput_obj();
_hx_result->__construct(inArgs[0],inArgs[1],inArgs[2]);
return _hx_result;
}
bool BytesInput_obj::_hx_isInstanceOf(int inClassId) {
if (inClassId<=(int)0x2a8878af) {
return inClassId==(int)0x00000001 || inClassId==(int)0x2a8878af;
} else {
return inClassId==(int)0x5c18cd32;
}
}
int BytesInput_obj::readByte(){
HX_GC_STACKFRAME(&_hx_pos_e19d9b72e9fc063d_96_readByte)
HXLINE( 100) if ((this->len == 0)) {
HXLINE( 101) HX_STACK_DO_THROW( ::haxe::io::Eof_obj::__alloc( HX_CTX ));
}
HXLINE( 102) this->len--;
HXLINE( 106) return ( (int)(this->b->__get(this->pos++)) );
}
int BytesInput_obj::readBytes( ::haxe::io::Bytes buf,int pos,int len){
HX_GC_STACKFRAME(&_hx_pos_e19d9b72e9fc063d_119_readBytes)
HXLINE( 121) bool _hx_tmp;
HXDLIN( 121) bool _hx_tmp1;
HXDLIN( 121) if ((pos >= 0)) {
HXLINE( 121) _hx_tmp1 = (len < 0);
}
else {
HXLINE( 121) _hx_tmp1 = true;
}
HXDLIN( 121) if (!(_hx_tmp1)) {
HXLINE( 121) _hx_tmp = ((pos + len) > buf->length);
}
else {
HXLINE( 121) _hx_tmp = true;
}
HXDLIN( 121) if (_hx_tmp) {
HXLINE( 122) HX_STACK_DO_THROW(::haxe::io::Error_obj::OutsideBounds_dyn());
}
HXLINE( 151) bool _hx_tmp2;
HXDLIN( 151) if ((this->len == 0)) {
HXLINE( 151) _hx_tmp2 = (len > 0);
}
else {
HXLINE( 151) _hx_tmp2 = false;
}
HXDLIN( 151) if (_hx_tmp2) {
HXLINE( 152) HX_STACK_DO_THROW( ::haxe::io::Eof_obj::__alloc( HX_CTX ));
}
HXLINE( 153) if ((this->len < len)) {
HXLINE( 154) len = this->len;
}
HXLINE( 163) ::Array< unsigned char > b1 = this->b;
HXLINE( 164) ::Array< unsigned char > b2 = buf->b;
HXLINE( 165) {
HXLINE( 165) int _g = 0;
HXDLIN( 165) int _g1 = len;
HXDLIN( 165) while((_g < _g1)){
HXLINE( 165) _g = (_g + 1);
HXDLIN( 165) int i = (_g - 1);
HXLINE( 166) b2[(pos + i)] = b1->__get((this->pos + i));
}
}
HXLINE( 168) ::haxe::io::BytesInput _hx_tmp3 = hx::ObjectPtr<OBJ_>(this);
HXDLIN( 168) _hx_tmp3->pos = (_hx_tmp3->pos + len);
HXLINE( 169) ::haxe::io::BytesInput _hx_tmp4 = hx::ObjectPtr<OBJ_>(this);
HXDLIN( 169) _hx_tmp4->len = (_hx_tmp4->len - len);
HXLINE( 171) return len;
}
hx::ObjectPtr< BytesInput_obj > BytesInput_obj::__new( ::haxe::io::Bytes b, ::Dynamic pos, ::Dynamic len) {
hx::ObjectPtr< BytesInput_obj > __this = new BytesInput_obj();
__this->__construct(b,pos,len);
return __this;
}
hx::ObjectPtr< BytesInput_obj > BytesInput_obj::__alloc(hx::Ctx *_hx_ctx, ::haxe::io::Bytes b, ::Dynamic pos, ::Dynamic len) {
BytesInput_obj *__this = (BytesInput_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(BytesInput_obj), true, "haxe.io.BytesInput"));
*(void **)__this = BytesInput_obj::_hx_vtable;
__this->__construct(b,pos,len);
return __this;
}
BytesInput_obj::BytesInput_obj()
{
}
void BytesInput_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(BytesInput);
HX_MARK_MEMBER_NAME(b,"b");
HX_MARK_MEMBER_NAME(pos,"pos");
HX_MARK_MEMBER_NAME(len,"len");
HX_MARK_MEMBER_NAME(totlen,"totlen");
HX_MARK_END_CLASS();
}
void BytesInput_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(b,"b");
HX_VISIT_MEMBER_NAME(pos,"pos");
HX_VISIT_MEMBER_NAME(len,"len");
HX_VISIT_MEMBER_NAME(totlen,"totlen");
}
hx::Val BytesInput_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"b") ) { return hx::Val( b ); }
break;
case 3:
if (HX_FIELD_EQ(inName,"pos") ) { return hx::Val( pos ); }
if (HX_FIELD_EQ(inName,"len") ) { return hx::Val( len ); }
break;
case 6:
if (HX_FIELD_EQ(inName,"totlen") ) { return hx::Val( totlen ); }
break;
case 8:
if (HX_FIELD_EQ(inName,"readByte") ) { return hx::Val( readByte_dyn() ); }
break;
case 9:
if (HX_FIELD_EQ(inName,"readBytes") ) { return hx::Val( readBytes_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val BytesInput_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"b") ) { b=inValue.Cast< ::Array< unsigned char > >(); return inValue; }
break;
case 3:
if (HX_FIELD_EQ(inName,"pos") ) { pos=inValue.Cast< int >(); return inValue; }
if (HX_FIELD_EQ(inName,"len") ) { len=inValue.Cast< int >(); return inValue; }
break;
case 6:
if (HX_FIELD_EQ(inName,"totlen") ) { totlen=inValue.Cast< int >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void BytesInput_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("b",62,00,00,00));
outFields->push(HX_("pos",94,5d,55,00));
outFields->push(HX_("len",d5,4b,52,00));
outFields->push(HX_("totlen",dc,4a,df,97));
outFields->push(HX_("position",a9,a0,fa,ca));
outFields->push(HX_("length",e6,94,07,9f));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo BytesInput_obj_sMemberStorageInfo[] = {
{hx::fsObject /* ::Array< unsigned char > */ ,(int)offsetof(BytesInput_obj,b),HX_("b",62,00,00,00)},
{hx::fsInt,(int)offsetof(BytesInput_obj,pos),HX_("pos",94,5d,55,00)},
{hx::fsInt,(int)offsetof(BytesInput_obj,len),HX_("len",d5,4b,52,00)},
{hx::fsInt,(int)offsetof(BytesInput_obj,totlen),HX_("totlen",dc,4a,df,97)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *BytesInput_obj_sStaticStorageInfo = 0;
#endif
static ::String BytesInput_obj_sMemberFields[] = {
HX_("b",62,00,00,00),
HX_("pos",94,5d,55,00),
HX_("len",d5,4b,52,00),
HX_("totlen",dc,4a,df,97),
HX_("readByte",7e,f9,1a,69),
HX_("readBytes",35,55,7f,8e),
::String(null()) };
hx::Class BytesInput_obj::__mClass;
void BytesInput_obj::__register()
{
BytesInput_obj _hx_dummy;
BytesInput_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.io.BytesInput",ff,f8,5b,64);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(BytesInput_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< BytesInput_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = BytesInput_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = BytesInput_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace io

View File

@@ -0,0 +1,78 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_io_Encoding
#include <haxe/io/Encoding.h>
#endif
namespace haxe{
namespace io{
::haxe::io::Encoding Encoding_obj::RawNative;
::haxe::io::Encoding Encoding_obj::UTF8;
bool Encoding_obj::__GetStatic(const ::String &inName, ::Dynamic &outValue, hx::PropertyAccess inCallProp)
{
if (inName==HX_("RawNative",7f,51,9c,e8)) { outValue = Encoding_obj::RawNative; return true; }
if (inName==HX_("UTF8",51,1d,6f,38)) { outValue = Encoding_obj::UTF8; return true; }
return super::__GetStatic(inName, outValue, inCallProp);
}
HX_DEFINE_CREATE_ENUM(Encoding_obj)
int Encoding_obj::__FindIndex(::String inName)
{
if (inName==HX_("RawNative",7f,51,9c,e8)) return 1;
if (inName==HX_("UTF8",51,1d,6f,38)) return 0;
return super::__FindIndex(inName);
}
int Encoding_obj::__FindArgCount(::String inName)
{
if (inName==HX_("RawNative",7f,51,9c,e8)) return 0;
if (inName==HX_("UTF8",51,1d,6f,38)) return 0;
return super::__FindArgCount(inName);
}
hx::Val Encoding_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
if (inName==HX_("RawNative",7f,51,9c,e8)) return RawNative;
if (inName==HX_("UTF8",51,1d,6f,38)) return UTF8;
return super::__Field(inName,inCallProp);
}
static ::String Encoding_obj_sStaticFields[] = {
HX_("UTF8",51,1d,6f,38),
HX_("RawNative",7f,51,9c,e8),
::String(null())
};
hx::Class Encoding_obj::__mClass;
Dynamic __Create_Encoding_obj() { return new Encoding_obj; }
void Encoding_obj::__register()
{
hx::Static(__mClass) = hx::_hx_RegisterClass(HX_("haxe.io.Encoding",33,a6,6d,22), hx::TCanCast< Encoding_obj >,Encoding_obj_sStaticFields,0,
&__Create_Encoding_obj, &__Create,
&super::__SGetClass(), &CreateEncoding_obj, 0
#ifdef HXCPP_VISIT_ALLOCS
, 0
#endif
#ifdef HXCPP_SCRIPTABLE
, 0
#endif
);
__mClass->mGetStaticField = &Encoding_obj::__GetStatic;
}
void Encoding_obj::__boot()
{
RawNative = hx::CreateConstEnum< Encoding_obj >(HX_("RawNative",7f,51,9c,e8),1);
UTF8 = hx::CreateConstEnum< Encoding_obj >(HX_("UTF8",51,1d,6f,38),0);
}
} // end namespace haxe
} // end namespace io

View File

@@ -0,0 +1,89 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_io_Eof
#include <haxe/io/Eof.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_f9cd114f27426261_29_new,"haxe.io.Eof","new",0x2166e64e,"haxe.io.Eof.new","/usr/share/haxe/std/haxe/io/Eof.hx",29,0x07e3967d)
HX_LOCAL_STACK_FRAME(_hx_pos_f9cd114f27426261_33_toString,"haxe.io.Eof","toString",0xf9ff7bfe,"haxe.io.Eof.toString","/usr/share/haxe/std/haxe/io/Eof.hx",33,0x07e3967d)
namespace haxe{
namespace io{
void Eof_obj::__construct(){
HX_STACKFRAME(&_hx_pos_f9cd114f27426261_29_new)
}
Dynamic Eof_obj::__CreateEmpty() { return new Eof_obj; }
void *Eof_obj::_hx_vtable = 0;
Dynamic Eof_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Eof_obj > _hx_result = new Eof_obj();
_hx_result->__construct();
return _hx_result;
}
bool Eof_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x41324090;
}
::String Eof_obj::toString(){
HX_STACKFRAME(&_hx_pos_f9cd114f27426261_33_toString)
HXDLIN( 33) return HX_("Eof",9c,bc,34,00);
}
HX_DEFINE_DYNAMIC_FUNC0(Eof_obj,toString,return )
Eof_obj::Eof_obj()
{
}
hx::Val Eof_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 8:
if (HX_FIELD_EQ(inName,"toString") ) { return hx::Val( toString_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *Eof_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *Eof_obj_sStaticStorageInfo = 0;
#endif
static ::String Eof_obj_sMemberFields[] = {
HX_("toString",ac,d0,6e,38),
::String(null()) };
hx::Class Eof_obj::__mClass;
void Eof_obj::__register()
{
Eof_obj _hx_dummy;
Eof_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.io.Eof",5c,67,0e,25);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(Eof_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< Eof_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Eof_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Eof_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace io

View File

@@ -0,0 +1,98 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_io_Error
#include <haxe/io/Error.h>
#endif
namespace haxe{
namespace io{
::haxe::io::Error Error_obj::Blocked;
::haxe::io::Error Error_obj::Custom( ::Dynamic e)
{
return hx::CreateEnum< Error_obj >(HX_("Custom",d1,fb,26,74),3,1)->_hx_init(0,e);
}
::haxe::io::Error Error_obj::OutsideBounds;
::haxe::io::Error Error_obj::Overflow;
bool Error_obj::__GetStatic(const ::String &inName, ::Dynamic &outValue, hx::PropertyAccess inCallProp)
{
if (inName==HX_("Blocked",cc,a2,4f,12)) { outValue = Error_obj::Blocked; return true; }
if (inName==HX_("Custom",d1,fb,26,74)) { outValue = Error_obj::Custom_dyn(); return true; }
if (inName==HX_("OutsideBounds",5a,c1,82,38)) { outValue = Error_obj::OutsideBounds; return true; }
if (inName==HX_("Overflow",62,9f,ed,1a)) { outValue = Error_obj::Overflow; return true; }
return super::__GetStatic(inName, outValue, inCallProp);
}
HX_DEFINE_CREATE_ENUM(Error_obj)
int Error_obj::__FindIndex(::String inName)
{
if (inName==HX_("Blocked",cc,a2,4f,12)) return 0;
if (inName==HX_("Custom",d1,fb,26,74)) return 3;
if (inName==HX_("OutsideBounds",5a,c1,82,38)) return 2;
if (inName==HX_("Overflow",62,9f,ed,1a)) return 1;
return super::__FindIndex(inName);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Error_obj,Custom,return)
int Error_obj::__FindArgCount(::String inName)
{
if (inName==HX_("Blocked",cc,a2,4f,12)) return 0;
if (inName==HX_("Custom",d1,fb,26,74)) return 1;
if (inName==HX_("OutsideBounds",5a,c1,82,38)) return 0;
if (inName==HX_("Overflow",62,9f,ed,1a)) return 0;
return super::__FindArgCount(inName);
}
hx::Val Error_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
if (inName==HX_("Blocked",cc,a2,4f,12)) return Blocked;
if (inName==HX_("Custom",d1,fb,26,74)) return Custom_dyn();
if (inName==HX_("OutsideBounds",5a,c1,82,38)) return OutsideBounds;
if (inName==HX_("Overflow",62,9f,ed,1a)) return Overflow;
return super::__Field(inName,inCallProp);
}
static ::String Error_obj_sStaticFields[] = {
HX_("Blocked",cc,a2,4f,12),
HX_("Overflow",62,9f,ed,1a),
HX_("OutsideBounds",5a,c1,82,38),
HX_("Custom",d1,fb,26,74),
::String(null())
};
hx::Class Error_obj::__mClass;
Dynamic __Create_Error_obj() { return new Error_obj; }
void Error_obj::__register()
{
hx::Static(__mClass) = hx::_hx_RegisterClass(HX_("haxe.io.Error",68,16,01,55), hx::TCanCast< Error_obj >,Error_obj_sStaticFields,0,
&__Create_Error_obj, &__Create,
&super::__SGetClass(), &CreateError_obj, 0
#ifdef HXCPP_VISIT_ALLOCS
, 0
#endif
#ifdef HXCPP_SCRIPTABLE
, 0
#endif
);
__mClass->mGetStaticField = &Error_obj::__GetStatic;
}
void Error_obj::__boot()
{
Blocked = hx::CreateConstEnum< Error_obj >(HX_("Blocked",cc,a2,4f,12),0);
OutsideBounds = hx::CreateConstEnum< Error_obj >(HX_("OutsideBounds",5a,c1,82,38),2);
Overflow = hx::CreateConstEnum< Error_obj >(HX_("Overflow",62,9f,ed,1a),1);
}
} // end namespace haxe
} // end namespace io

View File

@@ -0,0 +1,127 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_38344beec7696400
#define INCLUDED_38344beec7696400
#include "cpp/Int64.h"
#endif
#ifndef INCLUDED_haxe_io_FPHelper
#include <haxe/io/FPHelper.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_11fb855b0ea794ee_148_i32ToFloat,"haxe.io.FPHelper","i32ToFloat",0x7999b6cf,"haxe.io.FPHelper.i32ToFloat","/usr/share/haxe/std/haxe/io/FPHelper.hx",148,0xb3d006ab)
HX_LOCAL_STACK_FRAME(_hx_pos_11fb855b0ea794ee_186_floatToI32,"haxe.io.FPHelper","floatToI32",0xff5a7c67,"haxe.io.FPHelper.floatToI32","/usr/share/haxe/std/haxe/io/FPHelper.hx",186,0xb3d006ab)
HX_LOCAL_STACK_FRAME(_hx_pos_11fb855b0ea794ee_233_i64ToDouble,"haxe.io.FPHelper","i64ToDouble",0xc51d801d,"haxe.io.FPHelper.i64ToDouble","/usr/share/haxe/std/haxe/io/FPHelper.hx",233,0xb3d006ab)
HX_LOCAL_STACK_FRAME(_hx_pos_11fb855b0ea794ee_295_doubleToI64,"haxe.io.FPHelper","doubleToI64",0xe6926a85,"haxe.io.FPHelper.doubleToI64","/usr/share/haxe/std/haxe/io/FPHelper.hx",295,0xb3d006ab)
namespace haxe{
namespace io{
void FPHelper_obj::__construct() { }
Dynamic FPHelper_obj::__CreateEmpty() { return new FPHelper_obj; }
void *FPHelper_obj::_hx_vtable = 0;
Dynamic FPHelper_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< FPHelper_obj > _hx_result = new FPHelper_obj();
_hx_result->__construct();
return _hx_result;
}
bool FPHelper_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x349ee9e4;
}
Float FPHelper_obj::i32ToFloat(int i){
HX_STACKFRAME(&_hx_pos_11fb855b0ea794ee_148_i32ToFloat)
HXDLIN( 148) return ::__hxcpp_reinterpret_le_int32_as_float32(i);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(FPHelper_obj,i32ToFloat,return )
int FPHelper_obj::floatToI32(Float f){
HX_STACKFRAME(&_hx_pos_11fb855b0ea794ee_186_floatToI32)
HXDLIN( 186) return ::__hxcpp_reinterpret_float32_as_le_int32(f);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(FPHelper_obj,floatToI32,return )
Float FPHelper_obj::i64ToDouble(int low,int high){
HX_STACKFRAME(&_hx_pos_11fb855b0ea794ee_233_i64ToDouble)
HXDLIN( 233) return ::__hxcpp_reinterpret_le_int32s_as_float64(low,high);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(FPHelper_obj,i64ToDouble,return )
cpp::Int64Struct FPHelper_obj::doubleToI64(Float v){
HX_STACKFRAME(&_hx_pos_11fb855b0ea794ee_295_doubleToI64)
HXDLIN( 295) int high = ::__hxcpp_reinterpret_float64_as_le_int32_high(v);
HXDLIN( 295) return _hx_int64_make(high, ::__hxcpp_reinterpret_float64_as_le_int32_low(v));
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(FPHelper_obj,doubleToI64,return )
FPHelper_obj::FPHelper_obj()
{
}
bool FPHelper_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 10:
if (HX_FIELD_EQ(inName,"i32ToFloat") ) { outValue = i32ToFloat_dyn(); return true; }
if (HX_FIELD_EQ(inName,"floatToI32") ) { outValue = floatToI32_dyn(); return true; }
break;
case 11:
if (HX_FIELD_EQ(inName,"i64ToDouble") ) { outValue = i64ToDouble_dyn(); return true; }
if (HX_FIELD_EQ(inName,"doubleToI64") ) { outValue = doubleToI64_dyn(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *FPHelper_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *FPHelper_obj_sStaticStorageInfo = 0;
#endif
hx::Class FPHelper_obj::__mClass;
static ::String FPHelper_obj_sStaticFields[] = {
HX_("i32ToFloat",b9,99,e9,ac),
HX_("floatToI32",51,5f,aa,32),
HX_("i64ToDouble",f3,29,b4,77),
HX_("doubleToI64",5b,14,29,99),
::String(null())
};
void FPHelper_obj::__register()
{
FPHelper_obj _hx_dummy;
FPHelper_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.io.FPHelper",98,9f,c6,f3);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &FPHelper_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(FPHelper_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< FPHelper_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = FPHelper_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = FPHelper_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace io

View File

@@ -0,0 +1,344 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_haxe_io_BytesBuffer
#include <haxe/io/BytesBuffer.h>
#endif
#ifndef INCLUDED_haxe_io_Encoding
#include <haxe/io/Encoding.h>
#endif
#ifndef INCLUDED_haxe_io_Eof
#include <haxe/io/Eof.h>
#endif
#ifndef INCLUDED_haxe_io_Error
#include <haxe/io/Error.h>
#endif
#ifndef INCLUDED_haxe_io_Input
#include <haxe/io/Input.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_254a12b9e3136e41_51_readByte,"haxe.io.Input","readByte",0x4de8a3c2,"haxe.io.Input.readByte","/usr/share/haxe/std/haxe/io/Input.hx",51,0x1cc3d0af)
HX_LOCAL_STACK_FRAME(_hx_pos_254a12b9e3136e41_64_readBytes,"haxe.io.Input","readBytes",0xdda6a671,"haxe.io.Input.readBytes","/usr/share/haxe/std/haxe/io/Input.hx",64,0x1cc3d0af)
HX_LOCAL_STACK_FRAME(_hx_pos_254a12b9e3136e41_92_close,"haxe.io.Input","close",0xfc421af4,"haxe.io.Input.close","/usr/share/haxe/std/haxe/io/Input.hx",92,0x1cc3d0af)
HX_LOCAL_STACK_FRAME(_hx_pos_254a12b9e3136e41_133_readFullBytes,"haxe.io.Input","readFullBytes",0x3db9a162,"haxe.io.Input.readFullBytes","/usr/share/haxe/std/haxe/io/Input.hx",133,0x1cc3d0af)
HX_LOCAL_STACK_FRAME(_hx_pos_254a12b9e3136e41_145_read,"haxe.io.Input","read",0x27b9839a,"haxe.io.Input.read","/usr/share/haxe/std/haxe/io/Input.hx",145,0x1cc3d0af)
HX_LOCAL_STACK_FRAME(_hx_pos_254a12b9e3136e41_176_readLine,"haxe.io.Input","readLine",0x54789cae,"haxe.io.Input.readLine","/usr/share/haxe/std/haxe/io/Input.hx",176,0x1cc3d0af)
HX_LOCAL_STACK_FRAME(_hx_pos_254a12b9e3136e41_229_readInt16,"haxe.io.Input","readInt16",0xde2f2f9a,"haxe.io.Input.readInt16","/usr/share/haxe/std/haxe/io/Input.hx",229,0x1cc3d0af)
HX_LOCAL_STACK_FRAME(_hx_pos_254a12b9e3136e41_243_readUInt16,"haxe.io.Input","readUInt16",0x05cae019,"haxe.io.Input.readUInt16","/usr/share/haxe/std/haxe/io/Input.hx",243,0x1cc3d0af)
HX_LOCAL_STACK_FRAME(_hx_pos_254a12b9e3136e41_281_readInt32,"haxe.io.Input","readInt32",0xde2f3154,"haxe.io.Input.readInt32","/usr/share/haxe/std/haxe/io/Input.hx",281,0x1cc3d0af)
HX_LOCAL_STACK_FRAME(_hx_pos_254a12b9e3136e41_304_readString,"haxe.io.Input","readString",0xfdebd00b,"haxe.io.Input.readString","/usr/share/haxe/std/haxe/io/Input.hx",304,0x1cc3d0af)
namespace haxe{
namespace io{
void Input_obj::__construct() { }
Dynamic Input_obj::__CreateEmpty() { return new Input_obj; }
void *Input_obj::_hx_vtable = 0;
Dynamic Input_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Input_obj > _hx_result = new Input_obj();
_hx_result->__construct();
return _hx_result;
}
bool Input_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x5c18cd32;
}
int Input_obj::readByte(){
HX_STACKFRAME(&_hx_pos_254a12b9e3136e41_51_readByte)
HXDLIN( 51) HX_STACK_DO_THROW(HX_("Not implemented",15,1e,32,34));
HXDLIN( 51) return 0;
}
HX_DEFINE_DYNAMIC_FUNC0(Input_obj,readByte,return )
int Input_obj::readBytes( ::haxe::io::Bytes s,int pos,int len){
HX_STACKFRAME(&_hx_pos_254a12b9e3136e41_64_readBytes)
HXLINE( 65) int k = len;
HXLINE( 66) ::Array< unsigned char > b = s->b;
HXLINE( 67) bool _hx_tmp;
HXDLIN( 67) bool _hx_tmp1;
HXDLIN( 67) if ((pos >= 0)) {
HXLINE( 67) _hx_tmp1 = (len < 0);
}
else {
HXLINE( 67) _hx_tmp1 = true;
}
HXDLIN( 67) if (!(_hx_tmp1)) {
HXLINE( 67) _hx_tmp = ((pos + len) > s->length);
}
else {
HXLINE( 67) _hx_tmp = true;
}
HXDLIN( 67) if (_hx_tmp) {
HXLINE( 68) HX_STACK_DO_THROW(::haxe::io::Error_obj::OutsideBounds_dyn());
}
HXLINE( 69) try {
HX_STACK_CATCHABLE( ::haxe::io::Eof, 0);
HXLINE( 70) while((k > 0)){
HXLINE( 76) b[pos] = ( (unsigned char)(this->readByte()) );
HXLINE( 80) pos = (pos + 1);
HXLINE( 81) k = (k - 1);
}
} catch( ::Dynamic _hx_e) {
if (_hx_e.IsClass< ::haxe::io::Eof >() ){
HX_STACK_BEGIN_CATCH
::haxe::io::Eof eof = _hx_e;
}
else {
HX_STACK_DO_THROW(_hx_e);
}
}
HXLINE( 84) return (len - k);
}
HX_DEFINE_DYNAMIC_FUNC3(Input_obj,readBytes,return )
void Input_obj::close(){
HX_STACKFRAME(&_hx_pos_254a12b9e3136e41_92_close)
}
HX_DEFINE_DYNAMIC_FUNC0(Input_obj,close,(void))
void Input_obj::readFullBytes( ::haxe::io::Bytes s,int pos,int len){
HX_STACKFRAME(&_hx_pos_254a12b9e3136e41_133_readFullBytes)
HXDLIN( 133) while((len > 0)){
HXLINE( 134) int k = this->readBytes(s,pos,len);
HXLINE( 135) if ((k == 0)) {
HXLINE( 136) HX_STACK_DO_THROW(::haxe::io::Error_obj::Blocked_dyn());
}
HXLINE( 137) pos = (pos + k);
HXLINE( 138) len = (len - k);
}
}
HX_DEFINE_DYNAMIC_FUNC3(Input_obj,readFullBytes,(void))
::haxe::io::Bytes Input_obj::read(int nbytes){
HX_STACKFRAME(&_hx_pos_254a12b9e3136e41_145_read)
HXLINE( 146) ::haxe::io::Bytes s = ::haxe::io::Bytes_obj::alloc(nbytes);
HXLINE( 147) int p = 0;
HXLINE( 148) while((nbytes > 0)){
HXLINE( 149) int k = this->readBytes(s,p,nbytes);
HXLINE( 150) if ((k == 0)) {
HXLINE( 151) HX_STACK_DO_THROW(::haxe::io::Error_obj::Blocked_dyn());
}
HXLINE( 152) p = (p + k);
HXLINE( 153) nbytes = (nbytes - k);
}
HXLINE( 155) return s;
}
HX_DEFINE_DYNAMIC_FUNC1(Input_obj,read,return )
::String Input_obj::readLine(){
HX_GC_STACKFRAME(&_hx_pos_254a12b9e3136e41_176_readLine)
HXLINE( 177) ::haxe::io::BytesBuffer buf = ::haxe::io::BytesBuffer_obj::__alloc( HX_CTX );
HXLINE( 178) int last;
HXLINE( 179) ::String s;
HXLINE( 180) try {
HX_STACK_CATCHABLE( ::haxe::io::Eof, 0);
HXLINE( 181) while(true){
HXLINE( 181) last = this->readByte();
HXDLIN( 181) if (!((last != 10))) {
HXLINE( 181) goto _hx_goto_8;
}
HXLINE( 182) buf->b->push(last);
}
_hx_goto_8:;
HXLINE( 183) s = buf->getBytes()->toString();
HXLINE( 184) if (hx::IsEq( s.charCodeAt((s.length - 1)),13 )) {
HXLINE( 185) s = s.substr(0,-1);
}
} catch( ::Dynamic _hx_e) {
if (_hx_e.IsClass< ::haxe::io::Eof >() ){
HX_STACK_BEGIN_CATCH
::haxe::io::Eof e = _hx_e;
HXLINE( 187) s = buf->getBytes()->toString();
HXLINE( 188) if ((s.length == 0)) {
HXLINE( 189) HX_STACK_DO_THROW(e);
}
}
else {
HX_STACK_DO_THROW(_hx_e);
}
}
HXLINE( 191) return s;
}
HX_DEFINE_DYNAMIC_FUNC0(Input_obj,readLine,return )
int Input_obj::readInt16(){
HX_STACKFRAME(&_hx_pos_254a12b9e3136e41_229_readInt16)
HXLINE( 230) int ch1 = this->readByte();
HXLINE( 231) int ch2 = this->readByte();
HXLINE( 232) int n;
HXDLIN( 232) if (this->bigEndian) {
HXLINE( 232) n = (ch2 | (ch1 << 8));
}
else {
HXLINE( 232) n = (ch1 | (ch2 << 8));
}
HXLINE( 233) if (((n & 32768) != 0)) {
HXLINE( 234) return (n - 65536);
}
HXLINE( 235) return n;
}
HX_DEFINE_DYNAMIC_FUNC0(Input_obj,readInt16,return )
int Input_obj::readUInt16(){
HX_STACKFRAME(&_hx_pos_254a12b9e3136e41_243_readUInt16)
HXLINE( 244) int ch1 = this->readByte();
HXLINE( 245) int ch2 = this->readByte();
HXLINE( 246) if (this->bigEndian) {
HXLINE( 246) return (ch2 | (ch1 << 8));
}
else {
HXLINE( 246) return (ch1 | (ch2 << 8));
}
HXDLIN( 246) return 0;
}
HX_DEFINE_DYNAMIC_FUNC0(Input_obj,readUInt16,return )
int Input_obj::readInt32(){
HX_STACKFRAME(&_hx_pos_254a12b9e3136e41_281_readInt32)
HXLINE( 282) int ch1 = this->readByte();
HXLINE( 283) int ch2 = this->readByte();
HXLINE( 284) int ch3 = this->readByte();
HXLINE( 285) int ch4 = this->readByte();
HXLINE( 297) if (this->bigEndian) {
HXLINE( 297) return (((ch4 | (ch3 << 8)) | (ch2 << 16)) | (ch1 << 24));
}
else {
HXLINE( 297) return (((ch1 | (ch2 << 8)) | (ch3 << 16)) | (ch4 << 24));
}
HXDLIN( 297) return 0;
}
HX_DEFINE_DYNAMIC_FUNC0(Input_obj,readInt32,return )
::String Input_obj::readString(int len, ::haxe::io::Encoding encoding){
HX_STACKFRAME(&_hx_pos_254a12b9e3136e41_304_readString)
HXLINE( 305) ::haxe::io::Bytes b = ::haxe::io::Bytes_obj::alloc(len);
HXLINE( 306) this->readFullBytes(b,0,len);
HXLINE( 310) return b->getString(0,len,encoding);
}
HX_DEFINE_DYNAMIC_FUNC2(Input_obj,readString,return )
Input_obj::Input_obj()
{
}
hx::Val Input_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"read") ) { return hx::Val( read_dyn() ); }
break;
case 5:
if (HX_FIELD_EQ(inName,"close") ) { return hx::Val( close_dyn() ); }
break;
case 8:
if (HX_FIELD_EQ(inName,"readByte") ) { return hx::Val( readByte_dyn() ); }
if (HX_FIELD_EQ(inName,"readLine") ) { return hx::Val( readLine_dyn() ); }
break;
case 9:
if (HX_FIELD_EQ(inName,"bigEndian") ) { return hx::Val( bigEndian ); }
if (HX_FIELD_EQ(inName,"readBytes") ) { return hx::Val( readBytes_dyn() ); }
if (HX_FIELD_EQ(inName,"readInt16") ) { return hx::Val( readInt16_dyn() ); }
if (HX_FIELD_EQ(inName,"readInt32") ) { return hx::Val( readInt32_dyn() ); }
break;
case 10:
if (HX_FIELD_EQ(inName,"readUInt16") ) { return hx::Val( readUInt16_dyn() ); }
if (HX_FIELD_EQ(inName,"readString") ) { return hx::Val( readString_dyn() ); }
break;
case 13:
if (HX_FIELD_EQ(inName,"readFullBytes") ) { return hx::Val( readFullBytes_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val Input_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 9:
if (HX_FIELD_EQ(inName,"bigEndian") ) { bigEndian=inValue.Cast< bool >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void Input_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("bigEndian",7b,d5,5a,20));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo Input_obj_sMemberStorageInfo[] = {
{hx::fsBool,(int)offsetof(Input_obj,bigEndian),HX_("bigEndian",7b,d5,5a,20)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *Input_obj_sStaticStorageInfo = 0;
#endif
static ::String Input_obj_sMemberFields[] = {
HX_("bigEndian",7b,d5,5a,20),
HX_("readByte",7e,f9,1a,69),
HX_("readBytes",35,55,7f,8e),
HX_("close",b8,17,63,48),
HX_("readFullBytes",26,02,0b,ce),
HX_("read",56,4b,a7,4b),
HX_("readLine",6a,f2,aa,6f),
HX_("readInt16",5e,de,07,8f),
HX_("readUInt16",d5,1c,8b,12),
HX_("readInt32",18,e0,07,8f),
HX_("readString",c7,0c,ac,0a),
::String(null()) };
hx::Class Input_obj::__mClass;
void Input_obj::__register()
{
Input_obj _hx_dummy;
Input_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.io.Input",aa,0e,f5,9f);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(Input_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< Input_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Input_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Input_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace io

View File

@@ -0,0 +1,64 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_io_Output
#include <haxe/io/Output.h>
#endif
namespace haxe{
namespace io{
void Output_obj::__construct() { }
Dynamic Output_obj::__CreateEmpty() { return new Output_obj; }
void *Output_obj::_hx_vtable = 0;
Dynamic Output_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Output_obj > _hx_result = new Output_obj();
_hx_result->__construct();
return _hx_result;
}
bool Output_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x3473efad;
}
Output_obj::Output_obj()
{
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *Output_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *Output_obj_sStaticStorageInfo = 0;
#endif
hx::Class Output_obj::__mClass;
void Output_obj::__register()
{
Output_obj _hx_dummy;
Output_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.io.Output",61,10,0b,c7);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< Output_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Output_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Output_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace io

View File

@@ -0,0 +1,324 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_io_Path
#include <haxe/io/Path.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_6cfed01bf295c856_76_new,"haxe.io.Path","new",0x1b96d677,"haxe.io.Path.new","/usr/share/haxe/std/haxe/io/Path.hx",76,0x457392de)
HX_LOCAL_STACK_FRAME(_hx_pos_6cfed01bf295c856_115_toString,"haxe.io.Path","toString",0xc0ab5735,"haxe.io.Path.toString","/usr/share/haxe/std/haxe/io/Path.hx",115,0x457392de)
HX_LOCAL_STACK_FRAME(_hx_pos_6cfed01bf295c856_134_withoutDirectory,"haxe.io.Path","withoutDirectory",0xdf35ce8e,"haxe.io.Path.withoutDirectory","/usr/share/haxe/std/haxe/io/Path.hx",134,0x457392de)
HX_LOCAL_STACK_FRAME(_hx_pos_6cfed01bf295c856_147_directory,"haxe.io.Path","directory",0xbcfe23c4,"haxe.io.Path.directory","/usr/share/haxe/std/haxe/io/Path.hx",147,0x457392de)
HX_LOCAL_STACK_FRAME(_hx_pos_6cfed01bf295c856_271_addTrailingSlash,"haxe.io.Path","addTrailingSlash",0x8b4f8e69,"haxe.io.Path.addTrailingSlash","/usr/share/haxe/std/haxe/io/Path.hx",271,0x457392de)
HX_LOCAL_STACK_FRAME(_hx_pos_6cfed01bf295c856_299_removeTrailingSlashes,"haxe.io.Path","removeTrailingSlashes",0x2dc73462,"haxe.io.Path.removeTrailingSlashes","/usr/share/haxe/std/haxe/io/Path.hx",299,0x457392de)
namespace haxe{
namespace io{
void Path_obj::__construct(::String path){
HX_STACKFRAME(&_hx_pos_6cfed01bf295c856_76_new)
HXLINE( 77) ::String _hx_switch_0 = path;
if ( (_hx_switch_0==HX_(".",2e,00,00,00)) || (_hx_switch_0==HX_("..",40,28,00,00)) ){
HXLINE( 79) this->dir = path;
HXLINE( 80) this->file = HX_("",00,00,00,00);
HXLINE( 81) return;
HXLINE( 78) goto _hx_goto_0;
}
_hx_goto_0:;
HXLINE( 83) int c1 = path.lastIndexOf(HX_("/",2f,00,00,00),null());
HXLINE( 84) int c2 = path.lastIndexOf(HX_("\\",5c,00,00,00),null());
HXLINE( 85) if ((c1 < c2)) {
HXLINE( 86) this->dir = path.substr(0,c2);
HXLINE( 87) path = path.substr((c2 + 1),null());
HXLINE( 88) this->backslash = true;
}
else {
HXLINE( 89) if ((c2 < c1)) {
HXLINE( 90) this->dir = path.substr(0,c1);
HXLINE( 91) path = path.substr((c1 + 1),null());
}
else {
HXLINE( 93) this->dir = null();
}
}
HXLINE( 94) int cp = path.lastIndexOf(HX_(".",2e,00,00,00),null());
HXLINE( 95) if ((cp != -1)) {
HXLINE( 96) this->ext = path.substr((cp + 1),null());
HXLINE( 97) this->file = path.substr(0,cp);
}
else {
HXLINE( 99) this->ext = null();
HXLINE( 100) this->file = path;
}
}
Dynamic Path_obj::__CreateEmpty() { return new Path_obj; }
void *Path_obj::_hx_vtable = 0;
Dynamic Path_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Path_obj > _hx_result = new Path_obj();
_hx_result->__construct(inArgs[0]);
return _hx_result;
}
bool Path_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x044b6ab5;
}
::String Path_obj::toString(){
HX_STACKFRAME(&_hx_pos_6cfed01bf295c856_115_toString)
HXDLIN( 115) ::String _hx_tmp;
HXDLIN( 115) if (hx::IsNull( this->dir )) {
HXDLIN( 115) _hx_tmp = HX_("",00,00,00,00);
}
else {
HXDLIN( 115) ::String _hx_tmp1;
HXDLIN( 115) if (this->backslash) {
HXDLIN( 115) _hx_tmp1 = HX_("\\",5c,00,00,00);
}
else {
HXDLIN( 115) _hx_tmp1 = HX_("/",2f,00,00,00);
}
HXDLIN( 115) _hx_tmp = (this->dir + _hx_tmp1);
}
HXDLIN( 115) ::String _hx_tmp2;
HXDLIN( 115) if (hx::IsNull( this->ext )) {
HXDLIN( 115) _hx_tmp2 = HX_("",00,00,00,00);
}
else {
HXDLIN( 115) _hx_tmp2 = (HX_(".",2e,00,00,00) + this->ext);
}
HXDLIN( 115) return ((_hx_tmp + this->file) + _hx_tmp2);
}
HX_DEFINE_DYNAMIC_FUNC0(Path_obj,toString,return )
::String Path_obj::withoutDirectory(::String path){
HX_GC_STACKFRAME(&_hx_pos_6cfed01bf295c856_134_withoutDirectory)
HXLINE( 135) ::haxe::io::Path s = ::haxe::io::Path_obj::__alloc( HX_CTX ,path);
HXLINE( 136) s->dir = null();
HXLINE( 137) return s->toString();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Path_obj,withoutDirectory,return )
::String Path_obj::directory(::String path){
HX_GC_STACKFRAME(&_hx_pos_6cfed01bf295c856_147_directory)
HXLINE( 148) ::haxe::io::Path s = ::haxe::io::Path_obj::__alloc( HX_CTX ,path);
HXLINE( 149) if (hx::IsNull( s->dir )) {
HXLINE( 150) return HX_("",00,00,00,00);
}
HXLINE( 151) return s->dir;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Path_obj,directory,return )
::String Path_obj::addTrailingSlash(::String path){
HX_STACKFRAME(&_hx_pos_6cfed01bf295c856_271_addTrailingSlash)
HXLINE( 272) if ((path.length == 0)) {
HXLINE( 273) return HX_("/",2f,00,00,00);
}
HXLINE( 274) int c1 = path.lastIndexOf(HX_("/",2f,00,00,00),null());
HXLINE( 275) int c2 = path.lastIndexOf(HX_("\\",5c,00,00,00),null());
HXLINE( 276) if ((c1 < c2)) {
HXLINE( 277) if ((c2 != (path.length - 1))) {
HXLINE( 278) return (path + HX_("\\",5c,00,00,00));
}
else {
HXLINE( 280) return path;
}
}
else {
HXLINE( 282) if ((c1 != (path.length - 1))) {
HXLINE( 283) return (path + HX_("/",2f,00,00,00));
}
else {
HXLINE( 285) return path;
}
}
HXLINE( 276) return null();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Path_obj,addTrailingSlash,return )
::String Path_obj::removeTrailingSlashes(::String path){
HX_STACKFRAME(&_hx_pos_6cfed01bf295c856_299_removeTrailingSlashes)
HXLINE( 300) while(true){
HXLINE( 301) ::Dynamic _g = path.charCodeAt((path.length - 1));
HXDLIN( 301) if (hx::IsNull( _g )) {
HXLINE( 305) goto _hx_goto_6;
}
else {
HXLINE( 301) ::Dynamic _hx_switch_0 = _g;
if ( (_hx_switch_0==47) || (_hx_switch_0==92) ){
HXLINE( 303) path = path.substr(0,-1);
HXDLIN( 303) goto _hx_goto_7;
}
/* default */{
HXLINE( 305) goto _hx_goto_6;
}
_hx_goto_7:;
}
}
_hx_goto_6:;
HXLINE( 308) return path;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Path_obj,removeTrailingSlashes,return )
hx::ObjectPtr< Path_obj > Path_obj::__new(::String path) {
hx::ObjectPtr< Path_obj > __this = new Path_obj();
__this->__construct(path);
return __this;
}
hx::ObjectPtr< Path_obj > Path_obj::__alloc(hx::Ctx *_hx_ctx,::String path) {
Path_obj *__this = (Path_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(Path_obj), true, "haxe.io.Path"));
*(void **)__this = Path_obj::_hx_vtable;
__this->__construct(path);
return __this;
}
Path_obj::Path_obj()
{
}
void Path_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(Path);
HX_MARK_MEMBER_NAME(dir,"dir");
HX_MARK_MEMBER_NAME(file,"file");
HX_MARK_MEMBER_NAME(ext,"ext");
HX_MARK_MEMBER_NAME(backslash,"backslash");
HX_MARK_END_CLASS();
}
void Path_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(dir,"dir");
HX_VISIT_MEMBER_NAME(file,"file");
HX_VISIT_MEMBER_NAME(ext,"ext");
HX_VISIT_MEMBER_NAME(backslash,"backslash");
}
hx::Val Path_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 3:
if (HX_FIELD_EQ(inName,"dir") ) { return hx::Val( dir ); }
if (HX_FIELD_EQ(inName,"ext") ) { return hx::Val( ext ); }
break;
case 4:
if (HX_FIELD_EQ(inName,"file") ) { return hx::Val( file ); }
break;
case 8:
if (HX_FIELD_EQ(inName,"toString") ) { return hx::Val( toString_dyn() ); }
break;
case 9:
if (HX_FIELD_EQ(inName,"backslash") ) { return hx::Val( backslash ); }
}
return super::__Field(inName,inCallProp);
}
bool Path_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 9:
if (HX_FIELD_EQ(inName,"directory") ) { outValue = directory_dyn(); return true; }
break;
case 16:
if (HX_FIELD_EQ(inName,"withoutDirectory") ) { outValue = withoutDirectory_dyn(); return true; }
if (HX_FIELD_EQ(inName,"addTrailingSlash") ) { outValue = addTrailingSlash_dyn(); return true; }
break;
case 21:
if (HX_FIELD_EQ(inName,"removeTrailingSlashes") ) { outValue = removeTrailingSlashes_dyn(); return true; }
}
return false;
}
hx::Val Path_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 3:
if (HX_FIELD_EQ(inName,"dir") ) { dir=inValue.Cast< ::String >(); return inValue; }
if (HX_FIELD_EQ(inName,"ext") ) { ext=inValue.Cast< ::String >(); return inValue; }
break;
case 4:
if (HX_FIELD_EQ(inName,"file") ) { file=inValue.Cast< ::String >(); return inValue; }
break;
case 9:
if (HX_FIELD_EQ(inName,"backslash") ) { backslash=inValue.Cast< bool >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void Path_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("dir",4d,3d,4c,00));
outFields->push(HX_("file",7c,ce,bb,43));
outFields->push(HX_("ext",a1,0c,4d,00));
outFields->push(HX_("backslash",b6,b8,45,c8));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo Path_obj_sMemberStorageInfo[] = {
{hx::fsString,(int)offsetof(Path_obj,dir),HX_("dir",4d,3d,4c,00)},
{hx::fsString,(int)offsetof(Path_obj,file),HX_("file",7c,ce,bb,43)},
{hx::fsString,(int)offsetof(Path_obj,ext),HX_("ext",a1,0c,4d,00)},
{hx::fsBool,(int)offsetof(Path_obj,backslash),HX_("backslash",b6,b8,45,c8)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *Path_obj_sStaticStorageInfo = 0;
#endif
static ::String Path_obj_sMemberFields[] = {
HX_("dir",4d,3d,4c,00),
HX_("file",7c,ce,bb,43),
HX_("ext",a1,0c,4d,00),
HX_("backslash",b6,b8,45,c8),
HX_("toString",ac,d0,6e,38),
::String(null()) };
hx::Class Path_obj::__mClass;
static ::String Path_obj_sStaticFields[] = {
HX_("withoutDirectory",05,17,d2,7a),
HX_("directory",6d,f2,44,10),
HX_("addTrailingSlash",e0,d6,eb,26),
HX_("removeTrailingSlashes",8b,dc,1d,43),
::String(null())
};
void Path_obj::__register()
{
Path_obj _hx_dummy;
Path_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.io.Path",05,cf,c6,4e);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &Path_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(Path_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(Path_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< Path_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Path_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Path_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace io

View File

@@ -0,0 +1,147 @@
// Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_iterators_ArrayIterator
#include <haxe/iterators/ArrayIterator.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_4080537b5ff1f511_28_new,"haxe.iterators.ArrayIterator","new",0x70a754c8,"haxe.iterators.ArrayIterator.new","/usr/share/haxe/std/haxe/iterators/ArrayIterator.hx",28,0x6121158f)
HX_LOCAL_STACK_FRAME(_hx_pos_4080537b5ff1f511_45_hasNext,"haxe.iterators.ArrayIterator","hasNext",0x74587dd5,"haxe.iterators.ArrayIterator.hasNext","/usr/share/haxe/std/haxe/iterators/ArrayIterator.hx",45,0x6121158f)
HX_LOCAL_STACK_FRAME(_hx_pos_4080537b5ff1f511_53_next,"haxe.iterators.ArrayIterator","next",0x21c2db8b,"haxe.iterators.ArrayIterator.next","/usr/share/haxe/std/haxe/iterators/ArrayIterator.hx",53,0x6121158f)
namespace haxe{
namespace iterators{
void ArrayIterator_obj::__construct(::cpp::VirtualArray array){
HX_STACKFRAME(&_hx_pos_4080537b5ff1f511_28_new)
HXLINE( 30) this->current = 0;
HXLINE( 37) this->array = array;
}
Dynamic ArrayIterator_obj::__CreateEmpty() { return new ArrayIterator_obj; }
void *ArrayIterator_obj::_hx_vtable = 0;
Dynamic ArrayIterator_obj::__Create(::hx::DynamicArray inArgs)
{
::hx::ObjectPtr< ArrayIterator_obj > _hx_result = new ArrayIterator_obj();
_hx_result->__construct(inArgs[0]);
return _hx_result;
}
bool ArrayIterator_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x189859c8;
}
bool ArrayIterator_obj::hasNext(){
HX_STACKFRAME(&_hx_pos_4080537b5ff1f511_45_hasNext)
HXDLIN( 45) return (this->current < this->array->get_length());
}
HX_DEFINE_DYNAMIC_FUNC0(ArrayIterator_obj,hasNext,return )
::Dynamic ArrayIterator_obj::next(){
HX_STACKFRAME(&_hx_pos_4080537b5ff1f511_53_next)
HXDLIN( 53) return this->array->__get(this->current++);
}
HX_DEFINE_DYNAMIC_FUNC0(ArrayIterator_obj,next,return )
ArrayIterator_obj::ArrayIterator_obj()
{
}
void ArrayIterator_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(ArrayIterator);
HX_MARK_MEMBER_NAME(array,"array");
HX_MARK_MEMBER_NAME(current,"current");
HX_MARK_END_CLASS();
}
void ArrayIterator_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(array,"array");
HX_VISIT_MEMBER_NAME(current,"current");
}
::hx::Val ArrayIterator_obj::__Field(const ::String &inName,::hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"next") ) { return ::hx::Val( next_dyn() ); }
break;
case 5:
if (HX_FIELD_EQ(inName,"array") ) { return ::hx::Val( array ); }
break;
case 7:
if (HX_FIELD_EQ(inName,"current") ) { return ::hx::Val( current ); }
if (HX_FIELD_EQ(inName,"hasNext") ) { return ::hx::Val( hasNext_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
::hx::Val ArrayIterator_obj::__SetField(const ::String &inName,const ::hx::Val &inValue,::hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 5:
if (HX_FIELD_EQ(inName,"array") ) { array=inValue.Cast< ::cpp::VirtualArray >(); return inValue; }
break;
case 7:
if (HX_FIELD_EQ(inName,"current") ) { current=inValue.Cast< int >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void ArrayIterator_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("array",99,6d,8f,25));
outFields->push(HX_("current",39,9c,e3,cb));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static ::hx::StorageInfo ArrayIterator_obj_sMemberStorageInfo[] = {
{::hx::fsObject /* ::cpp::VirtualArray */ ,(int)offsetof(ArrayIterator_obj,array),HX_("array",99,6d,8f,25)},
{::hx::fsInt,(int)offsetof(ArrayIterator_obj,current),HX_("current",39,9c,e3,cb)},
{ ::hx::fsUnknown, 0, null()}
};
static ::hx::StaticInfo *ArrayIterator_obj_sStaticStorageInfo = 0;
#endif
static ::String ArrayIterator_obj_sMemberFields[] = {
HX_("array",99,6d,8f,25),
HX_("current",39,9c,e3,cb),
HX_("hasNext",6d,a5,46,18),
HX_("next",f3,84,02,49),
::String(null()) };
::hx::Class ArrayIterator_obj::__mClass;
void ArrayIterator_obj::__register()
{
ArrayIterator_obj _hx_dummy;
ArrayIterator_obj::_hx_vtable = *(void **)&_hx_dummy;
::hx::Static(__mClass) = new ::hx::Class_obj();
__mClass->mName = HX_("haxe.iterators.ArrayIterator",d6,90,23,99);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &::hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &::hx::Class_obj::SetNoStaticField;
__mClass->mStatics = ::hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = ::hx::Class_obj::dupFunctions(ArrayIterator_obj_sMemberFields);
__mClass->mCanCast = ::hx::TCanCast< ArrayIterator_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = ArrayIterator_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = ArrayIterator_obj_sStaticStorageInfo;
#endif
::hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace iterators

View File

@@ -0,0 +1,43 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_lang_Iterable
#include <haxe/lang/Iterable.h>
#endif
#ifndef INCLUDED_haxe_lang_Iterator
#include <haxe/lang/Iterator.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_5f8d55efe7199781_81_boot,"haxe.lang.Iterable","boot",0x15490416,"haxe.lang.Iterable.boot","openfl/utils/Object.hx",81,0xcbd6e8e2)
namespace haxe{
namespace lang{
static ::String Iterable_obj_sMemberFields[] = {
HX_("iterator",ee,49,9a,93),
::String(null()) };
hx::Class Iterable_obj::__mClass;
void Iterable_obj::__register()
{
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.lang.Iterable",0a,eb,de,a0);
__mClass->mSuper = &super::__SGetClass();
__mClass->mMembers = hx::Class_obj::dupFunctions(Iterable_obj_sMemberFields);
__mClass->mCanCast = hx::TIsInterface< (int)0x1f692be6 >;
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
void Iterable_obj::__boot()
{
{
HX_STACKFRAME(&_hx_pos_5f8d55efe7199781_81_boot)
HXDLIN( 81) __mClass->__meta__ = ::Dynamic(hx::Anon_obj::Create(1)
->setFixed(0,HX_("obj",f7,8f,54,00), ::Dynamic(hx::Anon_obj::Create(1)
->setFixed(0,HX_("SuppressWarnings",0c,d3,d2,00),::cpp::VirtualArray_obj::__new(1)->init(0,HX_("checkstyle:FieldDocComment",70,56,1b,20))))));
}
}
} // end namespace haxe
} // end namespace lang

View File

@@ -0,0 +1,41 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_lang_Iterator
#include <haxe/lang/Iterator.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_f85ca578fa6b99a5_74_boot,"haxe.lang.Iterator","boot",0xca391f5a,"haxe.lang.Iterator.boot","openfl/utils/Object.hx",74,0xcbd6e8e2)
namespace haxe{
namespace lang{
static ::String Iterator_obj_sMemberFields[] = {
HX_("hasNext",6d,a5,46,18),
HX_("next",f3,84,02,49),
::String(null()) };
hx::Class Iterator_obj::__mClass;
void Iterator_obj::__register()
{
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.lang.Iterator",46,96,ec,a0);
__mClass->mSuper = &super::__SGetClass();
__mClass->mMembers = hx::Class_obj::dupFunctions(Iterator_obj_sMemberFields);
__mClass->mCanCast = hx::TIsInterface< (int)0x1f76d722 >;
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
void Iterator_obj::__boot()
{
{
HX_STACKFRAME(&_hx_pos_f85ca578fa6b99a5_74_boot)
HXDLIN( 74) __mClass->__meta__ = ::Dynamic(hx::Anon_obj::Create(1)
->setFixed(0,HX_("obj",f7,8f,54,00), ::Dynamic(hx::Anon_obj::Create(1)
->setFixed(0,HX_("SuppressWarnings",0c,d3,d2,00),::cpp::VirtualArray_obj::__new(1)->init(0,HX_("checkstyle:FieldDocComment",70,56,1b,20))))));
}
}
} // end namespace haxe
} // end namespace lang

View File

@@ -0,0 +1,97 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_haxe_zip_ExtraField
#include <haxe/zip/ExtraField.h>
#endif
namespace haxe{
namespace zip{
::haxe::zip::ExtraField ExtraField_obj::FInfoZipUnicodePath(::String name,int crc)
{
return hx::CreateEnum< ExtraField_obj >(HX_("FInfoZipUnicodePath",f5,d6,45,19),1,2)->_hx_init(0,name)->_hx_init(1,crc);
}
::haxe::zip::ExtraField ExtraField_obj::FUnknown(int tag, ::haxe::io::Bytes bytes)
{
return hx::CreateEnum< ExtraField_obj >(HX_("FUnknown",e4,7f,97,52),0,2)->_hx_init(0,tag)->_hx_init(1,bytes);
}
::haxe::zip::ExtraField ExtraField_obj::FUtf8;
bool ExtraField_obj::__GetStatic(const ::String &inName, ::Dynamic &outValue, hx::PropertyAccess inCallProp)
{
if (inName==HX_("FInfoZipUnicodePath",f5,d6,45,19)) { outValue = ExtraField_obj::FInfoZipUnicodePath_dyn(); return true; }
if (inName==HX_("FUnknown",e4,7f,97,52)) { outValue = ExtraField_obj::FUnknown_dyn(); return true; }
if (inName==HX_("FUtf8",97,1c,94,86)) { outValue = ExtraField_obj::FUtf8; return true; }
return super::__GetStatic(inName, outValue, inCallProp);
}
HX_DEFINE_CREATE_ENUM(ExtraField_obj)
int ExtraField_obj::__FindIndex(::String inName)
{
if (inName==HX_("FInfoZipUnicodePath",f5,d6,45,19)) return 1;
if (inName==HX_("FUnknown",e4,7f,97,52)) return 0;
if (inName==HX_("FUtf8",97,1c,94,86)) return 2;
return super::__FindIndex(inName);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(ExtraField_obj,FInfoZipUnicodePath,return)
STATIC_HX_DEFINE_DYNAMIC_FUNC2(ExtraField_obj,FUnknown,return)
int ExtraField_obj::__FindArgCount(::String inName)
{
if (inName==HX_("FInfoZipUnicodePath",f5,d6,45,19)) return 2;
if (inName==HX_("FUnknown",e4,7f,97,52)) return 2;
if (inName==HX_("FUtf8",97,1c,94,86)) return 0;
return super::__FindArgCount(inName);
}
hx::Val ExtraField_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
if (inName==HX_("FInfoZipUnicodePath",f5,d6,45,19)) return FInfoZipUnicodePath_dyn();
if (inName==HX_("FUnknown",e4,7f,97,52)) return FUnknown_dyn();
if (inName==HX_("FUtf8",97,1c,94,86)) return FUtf8;
return super::__Field(inName,inCallProp);
}
static ::String ExtraField_obj_sStaticFields[] = {
HX_("FUnknown",e4,7f,97,52),
HX_("FInfoZipUnicodePath",f5,d6,45,19),
HX_("FUtf8",97,1c,94,86),
::String(null())
};
hx::Class ExtraField_obj::__mClass;
Dynamic __Create_ExtraField_obj() { return new ExtraField_obj; }
void ExtraField_obj::__register()
{
hx::Static(__mClass) = hx::_hx_RegisterClass(HX_("haxe.zip.ExtraField",df,af,f8,91), hx::TCanCast< ExtraField_obj >,ExtraField_obj_sStaticFields,0,
&__Create_ExtraField_obj, &__Create,
&super::__SGetClass(), &CreateExtraField_obj, 0
#ifdef HXCPP_VISIT_ALLOCS
, 0
#endif
#ifdef HXCPP_SCRIPTABLE
, 0
#endif
);
__mClass->mGetStaticField = &ExtraField_obj::__GetStatic;
}
void ExtraField_obj::__boot()
{
FUtf8 = hx::CreateConstEnum< ExtraField_obj >(HX_("FUtf8",97,1c,94,86),2);
}
} // end namespace haxe
} // end namespace zip

View File

@@ -0,0 +1,297 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_IMap
#include <haxe/IMap.h>
#endif
#ifndef INCLUDED_haxe_ds_IntMap
#include <haxe/ds/IntMap.h>
#endif
#ifndef INCLUDED_haxe_zip_HuffTools
#include <haxe/zip/HuffTools.h>
#endif
#ifndef INCLUDED_haxe_zip_Huffman
#include <haxe/zip/Huffman.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_5d42cb1a506472e6_32_new,"haxe.zip.HuffTools","new",0x5263948b,"haxe.zip.HuffTools.new","/usr/share/haxe/std/haxe/zip/Huffman.hx",32,0xeaeaefad)
HX_LOCAL_STACK_FRAME(_hx_pos_5d42cb1a506472e6_35_treeDepth,"haxe.zip.HuffTools","treeDepth",0x748ac930,"haxe.zip.HuffTools.treeDepth","/usr/share/haxe/std/haxe/zip/Huffman.hx",35,0xeaeaefad)
HX_LOCAL_STACK_FRAME(_hx_pos_5d42cb1a506472e6_45_treeCompress,"haxe.zip.HuffTools","treeCompress",0x66340995,"haxe.zip.HuffTools.treeCompress","/usr/share/haxe/std/haxe/zip/Huffman.hx",45,0xeaeaefad)
HX_LOCAL_STACK_FRAME(_hx_pos_5d42cb1a506472e6_63_treeWalk,"haxe.zip.HuffTools","treeWalk",0x2e5c697c,"haxe.zip.HuffTools.treeWalk","/usr/share/haxe/std/haxe/zip/Huffman.hx",63,0xeaeaefad)
HX_LOCAL_STACK_FRAME(_hx_pos_5d42cb1a506472e6_75_treeMake,"haxe.zip.HuffTools","treeMake",0x27c04661,"haxe.zip.HuffTools.treeMake","/usr/share/haxe/std/haxe/zip/Huffman.hx",75,0xeaeaefad)
HX_LOCAL_STACK_FRAME(_hx_pos_5d42cb1a506472e6_86_make,"haxe.zip.HuffTools","make",0xc4121b63,"haxe.zip.HuffTools.make","/usr/share/haxe/std/haxe/zip/Huffman.hx",86,0xeaeaefad)
namespace haxe{
namespace zip{
void HuffTools_obj::__construct(){
HX_STACKFRAME(&_hx_pos_5d42cb1a506472e6_32_new)
}
Dynamic HuffTools_obj::__CreateEmpty() { return new HuffTools_obj; }
void *HuffTools_obj::_hx_vtable = 0;
Dynamic HuffTools_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< HuffTools_obj > _hx_result = new HuffTools_obj();
_hx_result->__construct();
return _hx_result;
}
bool HuffTools_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x10a15413;
}
int HuffTools_obj::treeDepth( ::haxe::zip::Huffman t){
HX_STACKFRAME(&_hx_pos_5d42cb1a506472e6_35_treeDepth)
HXDLIN( 35) switch((int)(t->_hx_getIndex())){
case (int)0: {
HXLINE( 36) int _g = t->_hx_getInt(0);
HXDLIN( 36) return 0;
}
break;
case (int)1: {
HXLINE( 38) ::haxe::zip::Huffman b = t->_hx_getObject(1).StaticCast< ::haxe::zip::Huffman >();
HXDLIN( 38) ::haxe::zip::Huffman a = t->_hx_getObject(0).StaticCast< ::haxe::zip::Huffman >();
HXLINE( 39) int da = this->treeDepth(a);
HXLINE( 40) int db = this->treeDepth(b);
HXLINE( 41) int _hx_tmp;
HXDLIN( 41) if ((da < db)) {
HXLINE( 41) _hx_tmp = da;
}
else {
HXLINE( 41) _hx_tmp = db;
}
HXDLIN( 41) return (1 + _hx_tmp);
}
break;
case (int)2: {
HXLINE( 37) ::Array< ::Dynamic> _g2 = t->_hx_getObject(1).StaticCast< ::Array< ::Dynamic> >();
HXDLIN( 37) int _g1 = t->_hx_getInt(0);
HXDLIN( 37) HX_STACK_DO_THROW(HX_("assert",c6,46,03,4c));
}
break;
}
HXLINE( 35) return 0;
}
HX_DEFINE_DYNAMIC_FUNC1(HuffTools_obj,treeDepth,return )
::haxe::zip::Huffman HuffTools_obj::treeCompress( ::haxe::zip::Huffman t){
HX_STACKFRAME(&_hx_pos_5d42cb1a506472e6_45_treeCompress)
HXLINE( 46) int d = this->treeDepth(t);
HXLINE( 47) if ((d == 0)) {
HXLINE( 48) return t;
}
HXLINE( 49) if ((d == 1)) {
HXLINE( 50) if ((t->_hx_getIndex() == 1)) {
HXLINE( 51) ::haxe::zip::Huffman b = t->_hx_getObject(1).StaticCast< ::haxe::zip::Huffman >();
HXDLIN( 51) ::haxe::zip::Huffman a = t->_hx_getObject(0).StaticCast< ::haxe::zip::Huffman >();
HXDLIN( 51) ::haxe::zip::Huffman _hx_tmp = this->treeCompress(a);
HXDLIN( 51) return ::haxe::zip::Huffman_obj::NeedBit(_hx_tmp,this->treeCompress(b));
}
else {
HXLINE( 52) HX_STACK_DO_THROW(HX_("assert",c6,46,03,4c));
}
}
HXLINE( 54) int size = (1 << d);
HXLINE( 55) ::Array< ::Dynamic> table = ::Array_obj< ::Dynamic>::__new();
HXLINE( 56) {
HXLINE( 56) int _g = 0;
HXDLIN( 56) int _g1 = size;
HXDLIN( 56) while((_g < _g1)){
HXLINE( 56) _g = (_g + 1);
HXDLIN( 56) int i = (_g - 1);
HXLINE( 57) table->push(::haxe::zip::Huffman_obj::Found(-1));
}
}
HXLINE( 58) this->treeWalk(table,0,0,d,t);
HXLINE( 59) return ::haxe::zip::Huffman_obj::NeedBits(d,table);
}
HX_DEFINE_DYNAMIC_FUNC1(HuffTools_obj,treeCompress,return )
void HuffTools_obj::treeWalk(::Array< ::Dynamic> table,int p,int cd,int d, ::haxe::zip::Huffman t){
HX_STACKFRAME(&_hx_pos_5d42cb1a506472e6_63_treeWalk)
HXDLIN( 63) if ((t->_hx_getIndex() == 1)) {
HXLINE( 64) ::haxe::zip::Huffman b = t->_hx_getObject(1).StaticCast< ::haxe::zip::Huffman >();
HXDLIN( 64) ::haxe::zip::Huffman a = t->_hx_getObject(0).StaticCast< ::haxe::zip::Huffman >();
HXLINE( 65) if ((d > 0)) {
HXLINE( 66) this->treeWalk(table,p,(cd + 1),(d - 1),a);
HXLINE( 67) this->treeWalk(table,(p | (1 << cd)),(cd + 1),(d - 1),b);
}
else {
HXLINE( 69) table[p] = this->treeCompress(t);
}
}
else {
HXLINE( 71) table[p] = this->treeCompress(t);
}
}
HX_DEFINE_DYNAMIC_FUNC5(HuffTools_obj,treeWalk,(void))
::haxe::zip::Huffman HuffTools_obj::treeMake( ::haxe::ds::IntMap bits,int maxbits,int v,int len){
HX_STACKFRAME(&_hx_pos_5d42cb1a506472e6_75_treeMake)
HXLINE( 76) if ((len > maxbits)) {
HXLINE( 77) HX_STACK_DO_THROW(HX_("Invalid huffman",e4,e4,8f,a6));
}
HXLINE( 78) int idx = ((v << 5) | len);
HXLINE( 79) if (bits->exists(idx)) {
HXLINE( 80) return ::haxe::zip::Huffman_obj::Found(bits->get(idx));
}
HXLINE( 81) v = (v << 1);
HXLINE( 82) len = (len + 1);
HXLINE( 83) ::haxe::zip::Huffman _hx_tmp = this->treeMake(bits,maxbits,v,len);
HXDLIN( 83) return ::haxe::zip::Huffman_obj::NeedBit(_hx_tmp,this->treeMake(bits,maxbits,(v | 1),len));
}
HX_DEFINE_DYNAMIC_FUNC4(HuffTools_obj,treeMake,return )
::haxe::zip::Huffman HuffTools_obj::make(::Array< int > lengths,int pos,int nlengths,int maxbits){
HX_GC_STACKFRAME(&_hx_pos_5d42cb1a506472e6_86_make)
HXLINE( 87) if ((nlengths == 1)) {
HXLINE( 88) return ::haxe::zip::Huffman_obj::NeedBit(::haxe::zip::Huffman_obj::Found(0),::haxe::zip::Huffman_obj::Found(0));
}
HXLINE( 90) ::Array< int > counts = ::Array_obj< int >::__new();
HXLINE( 91) ::Array< int > tmp = ::Array_obj< int >::__new();
HXLINE( 92) if ((maxbits > 32)) {
HXLINE( 93) HX_STACK_DO_THROW(HX_("Invalid huffman",e4,e4,8f,a6));
}
HXLINE( 94) {
HXLINE( 94) int _g = 0;
HXDLIN( 94) int _g1 = maxbits;
HXDLIN( 94) while((_g < _g1)){
HXLINE( 94) _g = (_g + 1);
HXDLIN( 94) int i = (_g - 1);
HXLINE( 95) counts->push(0);
HXLINE( 96) tmp->push(0);
}
}
HXLINE( 98) {
HXLINE( 98) int _g2 = 0;
HXDLIN( 98) int _g3 = nlengths;
HXDLIN( 98) while((_g2 < _g3)){
HXLINE( 98) _g2 = (_g2 + 1);
HXDLIN( 98) int i1 = (_g2 - 1);
HXLINE( 99) int p = lengths->__get((i1 + pos));
HXLINE( 100) if ((p >= maxbits)) {
HXLINE( 101) HX_STACK_DO_THROW(HX_("Invalid huffman",e4,e4,8f,a6));
}
HXLINE( 102) counts[p]++;
}
}
HXLINE( 104) int code = 0;
HXLINE( 105) {
HXLINE( 105) int _g4 = 1;
HXDLIN( 105) int _g5 = (maxbits - 1);
HXDLIN( 105) while((_g4 < _g5)){
HXLINE( 105) _g4 = (_g4 + 1);
HXDLIN( 105) int i2 = (_g4 - 1);
HXLINE( 106) code = ((code + counts->__get(i2)) << 1);
HXLINE( 107) tmp[i2] = code;
}
}
HXLINE( 109) ::haxe::ds::IntMap bits = ::haxe::ds::IntMap_obj::__alloc( HX_CTX );
HXLINE( 110) {
HXLINE( 110) int _g6 = 0;
HXDLIN( 110) int _g7 = nlengths;
HXDLIN( 110) while((_g6 < _g7)){
HXLINE( 110) _g6 = (_g6 + 1);
HXDLIN( 110) int i3 = (_g6 - 1);
HXLINE( 111) int l = lengths->__get((i3 + pos));
HXLINE( 112) if ((l != 0)) {
HXLINE( 113) int n = tmp->__get((l - 1));
HXLINE( 114) tmp[(l - 1)] = (n + 1);
HXLINE( 115) bits->set(((n << 5) | l),i3);
}
}
}
HXLINE( 118) ::haxe::zip::Huffman _hx_tmp = this->treeMake(bits,maxbits,0,1);
HXDLIN( 118) return this->treeCompress(::haxe::zip::Huffman_obj::NeedBit(_hx_tmp,this->treeMake(bits,maxbits,1,1)));
}
HX_DEFINE_DYNAMIC_FUNC4(HuffTools_obj,make,return )
hx::ObjectPtr< HuffTools_obj > HuffTools_obj::__new() {
hx::ObjectPtr< HuffTools_obj > __this = new HuffTools_obj();
__this->__construct();
return __this;
}
hx::ObjectPtr< HuffTools_obj > HuffTools_obj::__alloc(hx::Ctx *_hx_ctx) {
HuffTools_obj *__this = (HuffTools_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(HuffTools_obj), false, "haxe.zip.HuffTools"));
*(void **)__this = HuffTools_obj::_hx_vtable;
__this->__construct();
return __this;
}
HuffTools_obj::HuffTools_obj()
{
}
hx::Val HuffTools_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"make") ) { return hx::Val( make_dyn() ); }
break;
case 8:
if (HX_FIELD_EQ(inName,"treeWalk") ) { return hx::Val( treeWalk_dyn() ); }
if (HX_FIELD_EQ(inName,"treeMake") ) { return hx::Val( treeMake_dyn() ); }
break;
case 9:
if (HX_FIELD_EQ(inName,"treeDepth") ) { return hx::Val( treeDepth_dyn() ); }
break;
case 12:
if (HX_FIELD_EQ(inName,"treeCompress") ) { return hx::Val( treeCompress_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *HuffTools_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *HuffTools_obj_sStaticStorageInfo = 0;
#endif
static ::String HuffTools_obj_sMemberFields[] = {
HX_("treeDepth",c5,12,35,42),
HX_("treeCompress",20,2b,da,a1),
HX_("treeWalk",87,29,ba,32),
HX_("treeMake",6c,06,1e,2c),
HX_("make",ee,39,56,48),
::String(null()) };
hx::Class HuffTools_obj::__mClass;
void HuffTools_obj::__register()
{
HuffTools_obj _hx_dummy;
HuffTools_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.zip.HuffTools",19,f3,2d,d5);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(HuffTools_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< HuffTools_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = HuffTools_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = HuffTools_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace zip

View File

@@ -0,0 +1,98 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_zip_Huffman
#include <haxe/zip/Huffman.h>
#endif
namespace haxe{
namespace zip{
::haxe::zip::Huffman Huffman_obj::Found(int i)
{
return hx::CreateEnum< Huffman_obj >(HX_("Found",22,72,c4,97),0,1)->_hx_init(0,i);
}
::haxe::zip::Huffman Huffman_obj::NeedBit( ::haxe::zip::Huffman left, ::haxe::zip::Huffman right)
{
return hx::CreateEnum< Huffman_obj >(HX_("NeedBit",f7,fd,59,77),1,2)->_hx_init(0,left)->_hx_init(1,right);
}
::haxe::zip::Huffman Huffman_obj::NeedBits(int n,::Array< ::Dynamic> table)
{
return hx::CreateEnum< Huffman_obj >(HX_("NeedBits",9c,3a,64,f7),2,2)->_hx_init(0,n)->_hx_init(1,table);
}
bool Huffman_obj::__GetStatic(const ::String &inName, ::Dynamic &outValue, hx::PropertyAccess inCallProp)
{
if (inName==HX_("Found",22,72,c4,97)) { outValue = Huffman_obj::Found_dyn(); return true; }
if (inName==HX_("NeedBit",f7,fd,59,77)) { outValue = Huffman_obj::NeedBit_dyn(); return true; }
if (inName==HX_("NeedBits",9c,3a,64,f7)) { outValue = Huffman_obj::NeedBits_dyn(); return true; }
return super::__GetStatic(inName, outValue, inCallProp);
}
HX_DEFINE_CREATE_ENUM(Huffman_obj)
int Huffman_obj::__FindIndex(::String inName)
{
if (inName==HX_("Found",22,72,c4,97)) return 0;
if (inName==HX_("NeedBit",f7,fd,59,77)) return 1;
if (inName==HX_("NeedBits",9c,3a,64,f7)) return 2;
return super::__FindIndex(inName);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Huffman_obj,Found,return)
STATIC_HX_DEFINE_DYNAMIC_FUNC2(Huffman_obj,NeedBit,return)
STATIC_HX_DEFINE_DYNAMIC_FUNC2(Huffman_obj,NeedBits,return)
int Huffman_obj::__FindArgCount(::String inName)
{
if (inName==HX_("Found",22,72,c4,97)) return 1;
if (inName==HX_("NeedBit",f7,fd,59,77)) return 2;
if (inName==HX_("NeedBits",9c,3a,64,f7)) return 2;
return super::__FindArgCount(inName);
}
hx::Val Huffman_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
if (inName==HX_("Found",22,72,c4,97)) return Found_dyn();
if (inName==HX_("NeedBit",f7,fd,59,77)) return NeedBit_dyn();
if (inName==HX_("NeedBits",9c,3a,64,f7)) return NeedBits_dyn();
return super::__Field(inName,inCallProp);
}
static ::String Huffman_obj_sStaticFields[] = {
HX_("Found",22,72,c4,97),
HX_("NeedBit",f7,fd,59,77),
HX_("NeedBits",9c,3a,64,f7),
::String(null())
};
hx::Class Huffman_obj::__mClass;
Dynamic __Create_Huffman_obj() { return new Huffman_obj; }
void Huffman_obj::__register()
{
hx::Static(__mClass) = hx::_hx_RegisterClass(HX_("haxe.zip.Huffman",38,d8,1f,47), hx::TCanCast< Huffman_obj >,Huffman_obj_sStaticFields,0,
&__Create_Huffman_obj, &__Create,
&super::__SGetClass(), &CreateHuffman_obj, 0
#ifdef HXCPP_VISIT_ALLOCS
, 0
#endif
#ifdef HXCPP_SCRIPTABLE
, 0
#endif
);
__mClass->mGetStaticField = &Huffman_obj::__GetStatic;
}
void Huffman_obj::__boot()
{
}
} // end namespace haxe
} // end namespace zip

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,406 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_Date
#include <Date.h>
#endif
#ifndef INCLUDED_haxe_ds_List
#include <haxe/ds/List.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_haxe_io_BytesBuffer
#include <haxe/io/BytesBuffer.h>
#endif
#ifndef INCLUDED_haxe_io_Encoding
#include <haxe/io/Encoding.h>
#endif
#ifndef INCLUDED_haxe_io_Error
#include <haxe/io/Error.h>
#endif
#ifndef INCLUDED_haxe_io_Input
#include <haxe/io/Input.h>
#endif
#ifndef INCLUDED_haxe_zip_ExtraField
#include <haxe/zip/ExtraField.h>
#endif
#ifndef INCLUDED_haxe_zip_InflateImpl
#include <haxe/zip/InflateImpl.h>
#endif
#ifndef INCLUDED_haxe_zip_Reader
#include <haxe/zip/Reader.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_c76307fb0f9c3e4f_34_new,"haxe.zip.Reader","new",0xf101338a,"haxe.zip.Reader.new","haxe/zip/Reader.hx",34,0x3164d664)
HX_LOCAL_STACK_FRAME(_hx_pos_c76307fb0f9c3e4f_38_readZipDate,"haxe.zip.Reader","readZipDate",0xa6a02623,"haxe.zip.Reader.readZipDate","haxe/zip/Reader.hx",38,0x3164d664)
HX_LOCAL_STACK_FRAME(_hx_pos_c76307fb0f9c3e4f_51_readExtraFields,"haxe.zip.Reader","readExtraFields",0x48ea639d,"haxe.zip.Reader.readExtraFields","haxe/zip/Reader.hx",51,0x3164d664)
HX_LOCAL_STACK_FRAME(_hx_pos_c76307fb0f9c3e4f_85_readEntryHeader,"haxe.zip.Reader","readEntryHeader",0x28765213,"haxe.zip.Reader.readEntryHeader","haxe/zip/Reader.hx",85,0x3164d664)
HX_LOCAL_STACK_FRAME(_hx_pos_c76307fb0f9c3e4f_122_read,"haxe.zip.Reader","read",0xf2b0acec,"haxe.zip.Reader.read","haxe/zip/Reader.hx",122,0x3164d664)
HX_LOCAL_STACK_FRAME(_hx_pos_c76307fb0f9c3e4f_193_readZip,"haxe.zip.Reader","readZip",0x2845d555,"haxe.zip.Reader.readZip","haxe/zip/Reader.hx",193,0x3164d664)
HX_LOCAL_STACK_FRAME(_hx_pos_c76307fb0f9c3e4f_199_unzip,"haxe.zip.Reader","unzip",0x282047d2,"haxe.zip.Reader.unzip","haxe/zip/Reader.hx",199,0x3164d664)
namespace haxe{
namespace zip{
void Reader_obj::__construct( ::haxe::io::Input i){
HX_STACKFRAME(&_hx_pos_c76307fb0f9c3e4f_34_new)
HXDLIN( 34) this->i = i;
}
Dynamic Reader_obj::__CreateEmpty() { return new Reader_obj; }
void *Reader_obj::_hx_vtable = 0;
Dynamic Reader_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Reader_obj > _hx_result = new Reader_obj();
_hx_result->__construct(inArgs[0]);
return _hx_result;
}
bool Reader_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x2836055e;
}
::Date Reader_obj::readZipDate(){
HX_GC_STACKFRAME(&_hx_pos_c76307fb0f9c3e4f_38_readZipDate)
HXLINE( 39) int t = this->i->readUInt16();
HXLINE( 40) int hour = ((t >> 11) & 31);
HXLINE( 41) int min = ((t >> 5) & 63);
HXLINE( 42) int sec = (t & 31);
HXLINE( 43) int d = this->i->readUInt16();
HXLINE( 44) int year = (d >> 9);
HXLINE( 45) int month = ((d >> 5) & 15);
HXLINE( 46) int day = (d & 31);
HXLINE( 47) return ::Date_obj::__alloc( HX_CTX ,(year + 1980),(month - 1),day,hour,min,(sec << 1));
}
HX_DEFINE_DYNAMIC_FUNC0(Reader_obj,readZipDate,return )
::haxe::ds::List Reader_obj::readExtraFields(int length){
HX_GC_STACKFRAME(&_hx_pos_c76307fb0f9c3e4f_51_readExtraFields)
HXLINE( 52) ::haxe::ds::List fields = ::haxe::ds::List_obj::__alloc( HX_CTX );
HXLINE( 53) while((length > 0)){
HXLINE( 55) if ((length < 4)) {
HXLINE( 55) HX_STACK_DO_THROW(HX_("Invalid extra fields data",18,88,a4,23));
}
HXLINE( 56) int tag = this->i->readUInt16();
HXLINE( 57) int len = this->i->readUInt16();
HXLINE( 58) if ((length < len)) {
HXLINE( 58) HX_STACK_DO_THROW(HX_("Invalid extra fields data",18,88,a4,23));
}
HXLINE( 59) if ((tag == 28789)) {
HXLINE( 62) int version = this->i->readByte();
HXLINE( 63) if ((version != 1)) {
HXLINE( 65) ::haxe::io::BytesBuffer data = ::haxe::io::BytesBuffer_obj::__alloc( HX_CTX );
HXLINE( 66) data->b->push(version);
HXLINE( 67) {
HXLINE( 67) ::haxe::io::Bytes src = this->i->read((len - 1));
HXDLIN( 67) ::Array< unsigned char > b1 = data->b;
HXDLIN( 67) ::Array< unsigned char > b2 = src->b;
HXDLIN( 67) {
HXLINE( 67) int _g = 0;
HXDLIN( 67) int _g1 = src->length;
HXDLIN( 67) while((_g < _g1)){
HXLINE( 67) _g = (_g + 1);
HXDLIN( 67) int i = (_g - 1);
HXDLIN( 67) data->b->push(b2->__get(i));
}
}
}
HXLINE( 68) fields->add(::haxe::zip::ExtraField_obj::FUnknown(tag,data->getBytes()));
}
else {
HXLINE( 72) int crc = this->i->readInt32();
HXLINE( 73) ::String name = this->i->read((len - 5))->toString();
HXLINE( 74) fields->add(::haxe::zip::ExtraField_obj::FInfoZipUnicodePath(name,crc));
}
}
else {
HXLINE( 77) fields->add(::haxe::zip::ExtraField_obj::FUnknown(tag,this->i->read(len)));
}
HXLINE( 79) length = (length - (4 + len));
}
HXLINE( 81) return fields;
}
HX_DEFINE_DYNAMIC_FUNC1(Reader_obj,readExtraFields,return )
::Dynamic Reader_obj::readEntryHeader(){
HX_STACKFRAME(&_hx_pos_c76307fb0f9c3e4f_85_readEntryHeader)
HXLINE( 86) ::haxe::io::Input i = this->i;
HXLINE( 87) int h = i->readInt32();
HXLINE( 88) bool _hx_tmp;
HXDLIN( 88) if ((h != 33639248)) {
HXLINE( 88) _hx_tmp = (h == 101010256);
}
else {
HXLINE( 88) _hx_tmp = true;
}
HXDLIN( 88) if (_hx_tmp) {
HXLINE( 88) return null();
}
HXLINE( 89) if ((h != 67324752)) {
HXLINE( 89) HX_STACK_DO_THROW(HX_("Invalid Zip Data",72,da,ff,99));
}
HXLINE( 90) int version = i->readUInt16();
HXLINE( 91) int flags = i->readUInt16();
HXLINE( 92) bool utf8 = ((flags & 2048) != 0);
HXLINE( 95) int compression = i->readUInt16();
HXLINE( 96) bool compressed = (compression != 0);
HXLINE( 97) bool _hx_tmp1;
HXDLIN( 97) if (compressed) {
HXLINE( 97) _hx_tmp1 = (compression != 8);
}
else {
HXLINE( 97) _hx_tmp1 = false;
}
HXDLIN( 97) if (_hx_tmp1) {
HXLINE( 97) HX_STACK_DO_THROW((HX_("Unsupported compression ",65,94,24,90) + compression));
}
HXLINE( 98) ::Date mtime = this->readZipDate();
HXLINE( 99) int crc32 = i->readInt32();
HXLINE( 100) int csize = i->readInt32();
HXLINE( 101) int usize = i->readInt32();
HXLINE( 102) int fnamelen = i->readInt16();
HXLINE( 103) int elen = i->readInt16();
HXLINE( 104) ::String fname = i->readString(fnamelen,null());
HXLINE( 105) ::haxe::ds::List fields = this->readExtraFields(elen);
HXLINE( 106) if (utf8) {
HXLINE( 106) fields->push(::haxe::zip::ExtraField_obj::FUtf8_dyn());
}
HXLINE( 107) ::haxe::io::Bytes data = null();
HXLINE( 108) if (((flags & 8) != 0)) {
HXLINE( 108) csize = -1;
}
HXLINE( 109) return ::Dynamic(hx::Anon_obj::Create(8)
->setFixed(0,HX_("dataSize",0b,80,c7,8b),csize)
->setFixed(1,HX_("data",2a,56,63,42),data)
->setFixed(2,HX_("crc32",73,0c,51,4c),crc32)
->setFixed(3,HX_("fileName",e7,5a,43,62),fname)
->setFixed(4,HX_("fileSize",5d,89,97,65),usize)
->setFixed(5,HX_("fileTime",a9,b4,40,66),mtime)
->setFixed(6,HX_("compressed",81,4c,da,67),compressed)
->setFixed(7,HX_("extraFields",29,e9,47,7f),fields));
}
HX_DEFINE_DYNAMIC_FUNC0(Reader_obj,readEntryHeader,return )
::haxe::ds::List Reader_obj::read(){
HX_GC_STACKFRAME(&_hx_pos_c76307fb0f9c3e4f_122_read)
HXLINE( 123) ::haxe::ds::List l = ::haxe::ds::List_obj::__alloc( HX_CTX );
HXLINE( 124) ::Dynamic buf = null();
HXLINE( 125) ::haxe::io::Bytes tmp = null();
HXLINE( 126) while(true){
HXLINE( 128) ::Dynamic e = this->readEntryHeader();
HXLINE( 129) if (hx::IsNull( e )) {
HXLINE( 129) goto _hx_goto_6;
}
HXLINE( 130) if (hx::IsLess( e->__Field(HX_("dataSize",0b,80,c7,8b),hx::paccDynamic),0 )) {
HXLINE( 165) int bufSize = 65536;
HXLINE( 166) if (hx::IsNull( tmp )) {
HXLINE( 166) tmp = ::haxe::io::Bytes_obj::alloc(bufSize);
}
HXLINE( 167) ::haxe::io::BytesBuffer out = ::haxe::io::BytesBuffer_obj::__alloc( HX_CTX );
HXLINE( 168) ::haxe::zip::InflateImpl z = ::haxe::zip::InflateImpl_obj::__alloc( HX_CTX ,this->i,false,false);
HXLINE( 169) while(true){
HXLINE( 171) int n = z->readBytes(tmp,0,bufSize);
HXLINE( 172) {
HXLINE( 172) bool _hx_tmp;
HXDLIN( 172) if ((n >= 0)) {
HXLINE( 172) _hx_tmp = (n > tmp->length);
}
else {
HXLINE( 172) _hx_tmp = true;
}
HXDLIN( 172) if (_hx_tmp) {
HXLINE( 172) HX_STACK_DO_THROW(::haxe::io::Error_obj::OutsideBounds_dyn());
}
HXDLIN( 172) ::Array< unsigned char > b1 = out->b;
HXDLIN( 172) ::Array< unsigned char > b2 = tmp->b;
HXDLIN( 172) {
HXLINE( 172) int _g = 0;
HXDLIN( 172) int _g1 = n;
HXDLIN( 172) while((_g < _g1)){
HXLINE( 172) _g = (_g + 1);
HXDLIN( 172) int i = (_g - 1);
HXDLIN( 172) out->b->push(b2->__get(i));
}
}
}
HXLINE( 173) if ((n < bufSize)) {
HXLINE( 173) goto _hx_goto_7;
}
}
_hx_goto_7:;
HXLINE( 175) e->__SetField(HX_("data",2a,56,63,42),out->getBytes(),hx::paccDynamic);
HXLINE( 177) e->__SetField(HX_("crc32",73,0c,51,4c),this->i->readInt32(),hx::paccDynamic);
HXLINE( 178) if (hx::IsEq( e->__Field(HX_("crc32",73,0c,51,4c),hx::paccDynamic),134695760 )) {
HXLINE( 178) e->__SetField(HX_("crc32",73,0c,51,4c),this->i->readInt32(),hx::paccDynamic);
}
HXLINE( 179) e->__SetField(HX_("dataSize",0b,80,c7,8b),this->i->readInt32(),hx::paccDynamic);
HXLINE( 180) e->__SetField(HX_("fileSize",5d,89,97,65),this->i->readInt32(),hx::paccDynamic);
HXLINE( 182) e->__SetField(HX_("dataSize",0b,80,c7,8b),e->__Field(HX_("fileSize",5d,89,97,65),hx::paccDynamic),hx::paccDynamic);
HXLINE( 183) e->__SetField(HX_("compressed",81,4c,da,67),false,hx::paccDynamic);
}
else {
HXLINE( 186) e->__SetField(HX_("data",2a,56,63,42),this->i->read(( (int)(e->__Field(HX_("dataSize",0b,80,c7,8b),hx::paccDynamic)) )),hx::paccDynamic);
}
HXLINE( 187) l->add(e);
}
_hx_goto_6:;
HXLINE( 189) return l;
}
HX_DEFINE_DYNAMIC_FUNC0(Reader_obj,read,return )
::haxe::ds::List Reader_obj::readZip( ::haxe::io::Input i){
HX_GC_STACKFRAME(&_hx_pos_c76307fb0f9c3e4f_193_readZip)
HXLINE( 194) ::haxe::zip::Reader r = ::haxe::zip::Reader_obj::__alloc( HX_CTX ,i);
HXLINE( 195) return r->read();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Reader_obj,readZip,return )
::haxe::io::Bytes Reader_obj::unzip( ::Dynamic f){
HX_STACKFRAME(&_hx_pos_c76307fb0f9c3e4f_199_unzip)
HXLINE( 200) if (!(( (bool)(f->__Field(HX_("compressed",81,4c,da,67),hx::paccDynamic)) ))) {
HXLINE( 200) return ( ( ::haxe::io::Bytes)(f->__Field(HX_("data",2a,56,63,42),hx::paccDynamic)) );
}
HXLINE( 211) HX_STACK_DO_THROW(HX_("No uncompress support",49,96,03,85));
HXDLIN( 211) return null();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Reader_obj,unzip,return )
hx::ObjectPtr< Reader_obj > Reader_obj::__new( ::haxe::io::Input i) {
hx::ObjectPtr< Reader_obj > __this = new Reader_obj();
__this->__construct(i);
return __this;
}
hx::ObjectPtr< Reader_obj > Reader_obj::__alloc(hx::Ctx *_hx_ctx, ::haxe::io::Input i) {
Reader_obj *__this = (Reader_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(Reader_obj), true, "haxe.zip.Reader"));
*(void **)__this = Reader_obj::_hx_vtable;
__this->__construct(i);
return __this;
}
Reader_obj::Reader_obj()
{
}
void Reader_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(Reader);
HX_MARK_MEMBER_NAME(i,"i");
HX_MARK_END_CLASS();
}
void Reader_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(i,"i");
}
hx::Val Reader_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"i") ) { return hx::Val( i ); }
break;
case 4:
if (HX_FIELD_EQ(inName,"read") ) { return hx::Val( read_dyn() ); }
break;
case 11:
if (HX_FIELD_EQ(inName,"readZipDate") ) { return hx::Val( readZipDate_dyn() ); }
break;
case 15:
if (HX_FIELD_EQ(inName,"readExtraFields") ) { return hx::Val( readExtraFields_dyn() ); }
if (HX_FIELD_EQ(inName,"readEntryHeader") ) { return hx::Val( readEntryHeader_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
bool Reader_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 5:
if (HX_FIELD_EQ(inName,"unzip") ) { outValue = unzip_dyn(); return true; }
break;
case 7:
if (HX_FIELD_EQ(inName,"readZip") ) { outValue = readZip_dyn(); return true; }
}
return false;
}
hx::Val Reader_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"i") ) { i=inValue.Cast< ::haxe::io::Input >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void Reader_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("i",69,00,00,00));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo Reader_obj_sMemberStorageInfo[] = {
{hx::fsObject /* ::haxe::io::Input */ ,(int)offsetof(Reader_obj,i),HX_("i",69,00,00,00)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *Reader_obj_sStaticStorageInfo = 0;
#endif
static ::String Reader_obj_sMemberFields[] = {
HX_("i",69,00,00,00),
HX_("readZipDate",f9,88,bc,c9),
HX_("readExtraFields",73,e9,9f,a6),
HX_("readEntryHeader",e9,d7,2b,86),
HX_("read",56,4b,a7,4b),
::String(null()) };
hx::Class Reader_obj::__mClass;
static ::String Reader_obj_sStaticFields[] = {
HX_("readZip",2b,95,d6,02),
HX_("unzip",28,46,f4,a6),
::String(null())
};
void Reader_obj::__register()
{
Reader_obj _hx_dummy;
Reader_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.zip.Reader",98,66,32,ed);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &Reader_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(Reader_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(Reader_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< Reader_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Reader_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Reader_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace zip

View File

@@ -0,0 +1,128 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_zip__InflateImpl_State
#include <haxe/zip/_InflateImpl/State.h>
#endif
namespace haxe{
namespace zip{
namespace _InflateImpl{
::haxe::zip::_InflateImpl::State State_obj::Block;
::haxe::zip::_InflateImpl::State State_obj::CData;
::haxe::zip::_InflateImpl::State State_obj::Crc;
::haxe::zip::_InflateImpl::State State_obj::Dist;
::haxe::zip::_InflateImpl::State State_obj::DistOne;
::haxe::zip::_InflateImpl::State State_obj::Done;
::haxe::zip::_InflateImpl::State State_obj::Flat;
::haxe::zip::_InflateImpl::State State_obj::Head;
bool State_obj::__GetStatic(const ::String &inName, ::Dynamic &outValue, hx::PropertyAccess inCallProp)
{
if (inName==HX_("Block",2d,e5,29,48)) { outValue = State_obj::Block; return true; }
if (inName==HX_("CData",0d,60,15,c1)) { outValue = State_obj::CData; return true; }
if (inName==HX_("Crc",b4,3a,33,00)) { outValue = State_obj::Crc; return true; }
if (inName==HX_("Dist",86,93,42,2d)) { outValue = State_obj::Dist; return true; }
if (inName==HX_("DistOne",80,36,2a,8b)) { outValue = State_obj::DistOne; return true; }
if (inName==HX_("Done",a2,1c,47,2d)) { outValue = State_obj::Done; return true; }
if (inName==HX_("Flat",d9,37,97,2e)) { outValue = State_obj::Flat; return true; }
if (inName==HX_("Head",40,55,e4,2f)) { outValue = State_obj::Head; return true; }
return super::__GetStatic(inName, outValue, inCallProp);
}
HX_DEFINE_CREATE_ENUM(State_obj)
int State_obj::__FindIndex(::String inName)
{
if (inName==HX_("Block",2d,e5,29,48)) return 1;
if (inName==HX_("CData",0d,60,15,c1)) return 2;
if (inName==HX_("Crc",b4,3a,33,00)) return 4;
if (inName==HX_("Dist",86,93,42,2d)) return 5;
if (inName==HX_("DistOne",80,36,2a,8b)) return 6;
if (inName==HX_("Done",a2,1c,47,2d)) return 7;
if (inName==HX_("Flat",d9,37,97,2e)) return 3;
if (inName==HX_("Head",40,55,e4,2f)) return 0;
return super::__FindIndex(inName);
}
int State_obj::__FindArgCount(::String inName)
{
if (inName==HX_("Block",2d,e5,29,48)) return 0;
if (inName==HX_("CData",0d,60,15,c1)) return 0;
if (inName==HX_("Crc",b4,3a,33,00)) return 0;
if (inName==HX_("Dist",86,93,42,2d)) return 0;
if (inName==HX_("DistOne",80,36,2a,8b)) return 0;
if (inName==HX_("Done",a2,1c,47,2d)) return 0;
if (inName==HX_("Flat",d9,37,97,2e)) return 0;
if (inName==HX_("Head",40,55,e4,2f)) return 0;
return super::__FindArgCount(inName);
}
hx::Val State_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
if (inName==HX_("Block",2d,e5,29,48)) return Block;
if (inName==HX_("CData",0d,60,15,c1)) return CData;
if (inName==HX_("Crc",b4,3a,33,00)) return Crc;
if (inName==HX_("Dist",86,93,42,2d)) return Dist;
if (inName==HX_("DistOne",80,36,2a,8b)) return DistOne;
if (inName==HX_("Done",a2,1c,47,2d)) return Done;
if (inName==HX_("Flat",d9,37,97,2e)) return Flat;
if (inName==HX_("Head",40,55,e4,2f)) return Head;
return super::__Field(inName,inCallProp);
}
static ::String State_obj_sStaticFields[] = {
HX_("Head",40,55,e4,2f),
HX_("Block",2d,e5,29,48),
HX_("CData",0d,60,15,c1),
HX_("Flat",d9,37,97,2e),
HX_("Crc",b4,3a,33,00),
HX_("Dist",86,93,42,2d),
HX_("DistOne",80,36,2a,8b),
HX_("Done",a2,1c,47,2d),
::String(null())
};
hx::Class State_obj::__mClass;
Dynamic __Create_State_obj() { return new State_obj; }
void State_obj::__register()
{
hx::Static(__mClass) = hx::_hx_RegisterClass(HX_("haxe.zip._InflateImpl.State",a0,c2,8b,f6), hx::TCanCast< State_obj >,State_obj_sStaticFields,0,
&__Create_State_obj, &__Create,
&super::__SGetClass(), &CreateState_obj, 0
#ifdef HXCPP_VISIT_ALLOCS
, 0
#endif
#ifdef HXCPP_SCRIPTABLE
, 0
#endif
);
__mClass->mGetStaticField = &State_obj::__GetStatic;
}
void State_obj::__boot()
{
Block = hx::CreateConstEnum< State_obj >(HX_("Block",2d,e5,29,48),1);
CData = hx::CreateConstEnum< State_obj >(HX_("CData",0d,60,15,c1),2);
Crc = hx::CreateConstEnum< State_obj >(HX_("Crc",b4,3a,33,00),4);
Dist = hx::CreateConstEnum< State_obj >(HX_("Dist",86,93,42,2d),5);
DistOne = hx::CreateConstEnum< State_obj >(HX_("DistOne",80,36,2a,8b),6);
Done = hx::CreateConstEnum< State_obj >(HX_("Done",a2,1c,47,2d),7);
Flat = hx::CreateConstEnum< State_obj >(HX_("Flat",d9,37,97,2e),3);
Head = hx::CreateConstEnum< State_obj >(HX_("Head",40,55,e4,2f),0);
}
} // end namespace haxe
} // end namespace zip
} // end namespace _InflateImpl

View File

@@ -0,0 +1,249 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_crypto_Adler32
#include <haxe/crypto/Adler32.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_haxe_zip__InflateImpl_Window
#include <haxe/zip/_InflateImpl/Window.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_f6e7d05923176656_37_new,"haxe.zip._InflateImpl.Window","new",0x88adb9f3,"haxe.zip._InflateImpl.Window.new","/usr/share/haxe/std/haxe/zip/InflateImpl.hx",37,0x99065a13)
HX_LOCAL_STACK_FRAME(_hx_pos_f6e7d05923176656_44_slide,"haxe.zip._InflateImpl.Window","slide",0x409d7984,"haxe.zip._InflateImpl.Window.slide","/usr/share/haxe/std/haxe/zip/InflateImpl.hx",44,0x99065a13)
HX_LOCAL_STACK_FRAME(_hx_pos_f6e7d05923176656_53_addBytes,"haxe.zip._InflateImpl.Window","addBytes",0xb984b017,"haxe.zip._InflateImpl.Window.addBytes","/usr/share/haxe/std/haxe/zip/InflateImpl.hx",53,0x99065a13)
HX_LOCAL_STACK_FRAME(_hx_pos_f6e7d05923176656_60_addByte,"haxe.zip._InflateImpl.Window","addByte",0xa74a10dc,"haxe.zip._InflateImpl.Window.addByte","/usr/share/haxe/std/haxe/zip/InflateImpl.hx",60,0x99065a13)
HX_LOCAL_STACK_FRAME(_hx_pos_f6e7d05923176656_68_getLastChar,"haxe.zip._InflateImpl.Window","getLastChar",0xdd866f95,"haxe.zip._InflateImpl.Window.getLastChar","/usr/share/haxe/std/haxe/zip/InflateImpl.hx",68,0x99065a13)
HX_LOCAL_STACK_FRAME(_hx_pos_f6e7d05923176656_72_available,"haxe.zip._InflateImpl.Window","available",0x3285339c,"haxe.zip._InflateImpl.Window.available","/usr/share/haxe/std/haxe/zip/InflateImpl.hx",72,0x99065a13)
HX_LOCAL_STACK_FRAME(_hx_pos_f6e7d05923176656_75_checksum,"haxe.zip._InflateImpl.Window","checksum",0x2f923f50,"haxe.zip._InflateImpl.Window.checksum","/usr/share/haxe/std/haxe/zip/InflateImpl.hx",75,0x99065a13)
namespace haxe{
namespace zip{
namespace _InflateImpl{
void Window_obj::__construct(bool hasCrc){
HX_GC_STACKFRAME(&_hx_pos_f6e7d05923176656_37_new)
HXLINE( 38) this->buffer = ::haxe::io::Bytes_obj::alloc(65536);
HXLINE( 39) this->pos = 0;
HXLINE( 40) if (hasCrc) {
HXLINE( 41) this->crc = ::haxe::crypto::Adler32_obj::__alloc( HX_CTX );
}
}
Dynamic Window_obj::__CreateEmpty() { return new Window_obj; }
void *Window_obj::_hx_vtable = 0;
Dynamic Window_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Window_obj > _hx_result = new Window_obj();
_hx_result->__construct(inArgs[0]);
return _hx_result;
}
bool Window_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x021b9cf3;
}
void Window_obj::slide(){
HX_STACKFRAME(&_hx_pos_f6e7d05923176656_44_slide)
HXLINE( 45) if (hx::IsNotNull( this->crc )) {
HXLINE( 46) this->crc->update(this->buffer,0,32768);
}
HXLINE( 47) ::haxe::io::Bytes b = ::haxe::io::Bytes_obj::alloc(65536);
HXLINE( 48) ::haxe::zip::_InflateImpl::Window _hx_tmp = hx::ObjectPtr<OBJ_>(this);
HXDLIN( 48) _hx_tmp->pos = (_hx_tmp->pos - 32768);
HXLINE( 49) b->blit(0,this->buffer,32768,this->pos);
HXLINE( 50) this->buffer = b;
}
HX_DEFINE_DYNAMIC_FUNC0(Window_obj,slide,(void))
void Window_obj::addBytes( ::haxe::io::Bytes b,int p,int len){
HX_STACKFRAME(&_hx_pos_f6e7d05923176656_53_addBytes)
HXLINE( 54) if (((this->pos + len) > 65536)) {
HXLINE( 55) this->slide();
}
HXLINE( 56) this->buffer->blit(this->pos,b,p,len);
HXLINE( 57) ::haxe::zip::_InflateImpl::Window _hx_tmp = hx::ObjectPtr<OBJ_>(this);
HXDLIN( 57) _hx_tmp->pos = (_hx_tmp->pos + len);
}
HX_DEFINE_DYNAMIC_FUNC3(Window_obj,addBytes,(void))
void Window_obj::addByte(int c){
HX_STACKFRAME(&_hx_pos_f6e7d05923176656_60_addByte)
HXLINE( 61) if ((this->pos == 65536)) {
HXLINE( 62) this->slide();
}
HXLINE( 63) this->buffer->b[this->pos] = ( (unsigned char)(c) );
HXLINE( 64) this->pos++;
}
HX_DEFINE_DYNAMIC_FUNC1(Window_obj,addByte,(void))
int Window_obj::getLastChar(){
HX_STACKFRAME(&_hx_pos_f6e7d05923176656_68_getLastChar)
HXDLIN( 68) return ( (int)(this->buffer->b->__get((this->pos - 1))) );
}
HX_DEFINE_DYNAMIC_FUNC0(Window_obj,getLastChar,return )
int Window_obj::available(){
HX_STACKFRAME(&_hx_pos_f6e7d05923176656_72_available)
HXDLIN( 72) return this->pos;
}
HX_DEFINE_DYNAMIC_FUNC0(Window_obj,available,return )
::haxe::crypto::Adler32 Window_obj::checksum(){
HX_STACKFRAME(&_hx_pos_f6e7d05923176656_75_checksum)
HXLINE( 76) if (hx::IsNotNull( this->crc )) {
HXLINE( 77) this->crc->update(this->buffer,0,this->pos);
}
HXLINE( 78) return this->crc;
}
HX_DEFINE_DYNAMIC_FUNC0(Window_obj,checksum,return )
hx::ObjectPtr< Window_obj > Window_obj::__new(bool hasCrc) {
hx::ObjectPtr< Window_obj > __this = new Window_obj();
__this->__construct(hasCrc);
return __this;
}
hx::ObjectPtr< Window_obj > Window_obj::__alloc(hx::Ctx *_hx_ctx,bool hasCrc) {
Window_obj *__this = (Window_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(Window_obj), true, "haxe.zip._InflateImpl.Window"));
*(void **)__this = Window_obj::_hx_vtable;
__this->__construct(hasCrc);
return __this;
}
Window_obj::Window_obj()
{
}
void Window_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(Window);
HX_MARK_MEMBER_NAME(buffer,"buffer");
HX_MARK_MEMBER_NAME(pos,"pos");
HX_MARK_MEMBER_NAME(crc,"crc");
HX_MARK_END_CLASS();
}
void Window_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(buffer,"buffer");
HX_VISIT_MEMBER_NAME(pos,"pos");
HX_VISIT_MEMBER_NAME(crc,"crc");
}
hx::Val Window_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 3:
if (HX_FIELD_EQ(inName,"pos") ) { return hx::Val( pos ); }
if (HX_FIELD_EQ(inName,"crc") ) { return hx::Val( crc ); }
break;
case 5:
if (HX_FIELD_EQ(inName,"slide") ) { return hx::Val( slide_dyn() ); }
break;
case 6:
if (HX_FIELD_EQ(inName,"buffer") ) { return hx::Val( buffer ); }
break;
case 7:
if (HX_FIELD_EQ(inName,"addByte") ) { return hx::Val( addByte_dyn() ); }
break;
case 8:
if (HX_FIELD_EQ(inName,"addBytes") ) { return hx::Val( addBytes_dyn() ); }
if (HX_FIELD_EQ(inName,"checksum") ) { return hx::Val( checksum_dyn() ); }
break;
case 9:
if (HX_FIELD_EQ(inName,"available") ) { return hx::Val( available_dyn() ); }
break;
case 11:
if (HX_FIELD_EQ(inName,"getLastChar") ) { return hx::Val( getLastChar_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val Window_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 3:
if (HX_FIELD_EQ(inName,"pos") ) { pos=inValue.Cast< int >(); return inValue; }
if (HX_FIELD_EQ(inName,"crc") ) { crc=inValue.Cast< ::haxe::crypto::Adler32 >(); return inValue; }
break;
case 6:
if (HX_FIELD_EQ(inName,"buffer") ) { buffer=inValue.Cast< ::haxe::io::Bytes >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void Window_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("buffer",00,bd,94,d0));
outFields->push(HX_("pos",94,5d,55,00));
outFields->push(HX_("crc",d4,82,4b,00));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo Window_obj_sMemberStorageInfo[] = {
{hx::fsObject /* ::haxe::io::Bytes */ ,(int)offsetof(Window_obj,buffer),HX_("buffer",00,bd,94,d0)},
{hx::fsInt,(int)offsetof(Window_obj,pos),HX_("pos",94,5d,55,00)},
{hx::fsObject /* ::haxe::crypto::Adler32 */ ,(int)offsetof(Window_obj,crc),HX_("crc",d4,82,4b,00)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *Window_obj_sStaticStorageInfo = 0;
#endif
static ::String Window_obj_sMemberFields[] = {
HX_("buffer",00,bd,94,d0),
HX_("pos",94,5d,55,00),
HX_("crc",d4,82,4b,00),
HX_("slide",31,c5,c7,7e),
HX_("addBytes",8a,2e,f5,36),
HX_("addByte",c9,61,60,7d),
HX_("getLastChar",02,3b,fc,fa),
HX_("available",c9,59,83,77),
HX_("checksum",c3,bd,02,ad),
::String(null()) };
hx::Class Window_obj::__mClass;
void Window_obj::__register()
{
Window_obj _hx_dummy;
Window_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("haxe.zip._InflateImpl.Window",81,44,4f,10);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(Window_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< Window_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Window_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Window_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace haxe
} // end namespace zip
} // end namespace _InflateImpl

View File

@@ -0,0 +1,127 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_lime__internal_backend_native_ApplicationEventInfo
#include <lime/_internal/backend/native/ApplicationEventInfo.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_1a94701d58bd3d3e_612_new,"lime._internal.backend.native.ApplicationEventInfo","new",0xb35cdd3c,"lime._internal.backend.native.ApplicationEventInfo.new","lime/_internal/backend/native/NativeApplication.hx",612,0xc1eba895)
HX_LOCAL_STACK_FRAME(_hx_pos_1a94701d58bd3d3e_619_clone,"lime._internal.backend.native.ApplicationEventInfo","clone",0x996e0f39,"lime._internal.backend.native.ApplicationEventInfo.clone","lime/_internal/backend/native/NativeApplication.hx",619,0xc1eba895)
namespace lime{
namespace _internal{
namespace backend{
namespace native{
void ApplicationEventInfo_obj::__construct( ::Dynamic type,hx::Null< int > __o_deltaTime){
int deltaTime = __o_deltaTime.Default(0);
HX_STACKFRAME(&_hx_pos_1a94701d58bd3d3e_612_new)
HXLINE( 613) this->type = ( (int)(type) );
HXLINE( 614) this->deltaTime = deltaTime;
}
Dynamic ApplicationEventInfo_obj::__CreateEmpty() { return new ApplicationEventInfo_obj; }
void *ApplicationEventInfo_obj::_hx_vtable = 0;
Dynamic ApplicationEventInfo_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< ApplicationEventInfo_obj > _hx_result = new ApplicationEventInfo_obj();
_hx_result->__construct(inArgs[0],inArgs[1]);
return _hx_result;
}
bool ApplicationEventInfo_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x111de8fc;
}
::lime::_internal::backend::native::ApplicationEventInfo ApplicationEventInfo_obj::clone(){
HX_GC_STACKFRAME(&_hx_pos_1a94701d58bd3d3e_619_clone)
HXDLIN( 619) return ::lime::_internal::backend::native::ApplicationEventInfo_obj::__alloc( HX_CTX ,this->type,this->deltaTime);
}
HX_DEFINE_DYNAMIC_FUNC0(ApplicationEventInfo_obj,clone,return )
ApplicationEventInfo_obj::ApplicationEventInfo_obj()
{
}
hx::Val ApplicationEventInfo_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"type") ) { return hx::Val( type ); }
break;
case 5:
if (HX_FIELD_EQ(inName,"clone") ) { return hx::Val( clone_dyn() ); }
break;
case 9:
if (HX_FIELD_EQ(inName,"deltaTime") ) { return hx::Val( deltaTime ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val ApplicationEventInfo_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"type") ) { type=inValue.Cast< int >(); return inValue; }
break;
case 9:
if (HX_FIELD_EQ(inName,"deltaTime") ) { deltaTime=inValue.Cast< int >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void ApplicationEventInfo_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("deltaTime",25,3c,5c,f5));
outFields->push(HX_("type",ba,f2,08,4d));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo ApplicationEventInfo_obj_sMemberStorageInfo[] = {
{hx::fsInt,(int)offsetof(ApplicationEventInfo_obj,deltaTime),HX_("deltaTime",25,3c,5c,f5)},
{hx::fsInt,(int)offsetof(ApplicationEventInfo_obj,type),HX_("type",ba,f2,08,4d)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *ApplicationEventInfo_obj_sStaticStorageInfo = 0;
#endif
static ::String ApplicationEventInfo_obj_sMemberFields[] = {
HX_("deltaTime",25,3c,5c,f5),
HX_("type",ba,f2,08,4d),
HX_("clone",5d,13,63,48),
::String(null()) };
hx::Class ApplicationEventInfo_obj::__mClass;
void ApplicationEventInfo_obj::__register()
{
ApplicationEventInfo_obj _hx_dummy;
ApplicationEventInfo_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("lime._internal.backend.native.ApplicationEventInfo",4a,cf,e6,1b);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(ApplicationEventInfo_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< ApplicationEventInfo_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = ApplicationEventInfo_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = ApplicationEventInfo_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace lime
} // end namespace _internal
} // end namespace backend
} // end namespace native

View File

@@ -0,0 +1,116 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_lime__internal_backend_native_ClipboardEventInfo
#include <lime/_internal/backend/native/ClipboardEventInfo.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_45f117d879fd522d_635_new,"lime._internal.backend.native.ClipboardEventInfo","new",0x8e61fe76,"lime._internal.backend.native.ClipboardEventInfo.new","lime/_internal/backend/native/NativeApplication.hx",635,0xc1eba895)
HX_LOCAL_STACK_FRAME(_hx_pos_45f117d879fd522d_640_clone,"lime._internal.backend.native.ClipboardEventInfo","clone",0x18e972f3,"lime._internal.backend.native.ClipboardEventInfo.clone","lime/_internal/backend/native/NativeApplication.hx",640,0xc1eba895)
namespace lime{
namespace _internal{
namespace backend{
namespace native{
void ClipboardEventInfo_obj::__construct( ::Dynamic type){
HX_STACKFRAME(&_hx_pos_45f117d879fd522d_635_new)
HXDLIN( 635) this->type = ( (int)(type) );
}
Dynamic ClipboardEventInfo_obj::__CreateEmpty() { return new ClipboardEventInfo_obj; }
void *ClipboardEventInfo_obj::_hx_vtable = 0;
Dynamic ClipboardEventInfo_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< ClipboardEventInfo_obj > _hx_result = new ClipboardEventInfo_obj();
_hx_result->__construct(inArgs[0]);
return _hx_result;
}
bool ClipboardEventInfo_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x1555697e;
}
::lime::_internal::backend::native::ClipboardEventInfo ClipboardEventInfo_obj::clone(){
HX_GC_STACKFRAME(&_hx_pos_45f117d879fd522d_640_clone)
HXDLIN( 640) return ::lime::_internal::backend::native::ClipboardEventInfo_obj::__alloc( HX_CTX ,this->type);
}
HX_DEFINE_DYNAMIC_FUNC0(ClipboardEventInfo_obj,clone,return )
ClipboardEventInfo_obj::ClipboardEventInfo_obj()
{
}
hx::Val ClipboardEventInfo_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"type") ) { return hx::Val( type ); }
break;
case 5:
if (HX_FIELD_EQ(inName,"clone") ) { return hx::Val( clone_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val ClipboardEventInfo_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"type") ) { type=inValue.Cast< int >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void ClipboardEventInfo_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("type",ba,f2,08,4d));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo ClipboardEventInfo_obj_sMemberStorageInfo[] = {
{hx::fsInt,(int)offsetof(ClipboardEventInfo_obj,type),HX_("type",ba,f2,08,4d)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *ClipboardEventInfo_obj_sStaticStorageInfo = 0;
#endif
static ::String ClipboardEventInfo_obj_sMemberFields[] = {
HX_("type",ba,f2,08,4d),
HX_("clone",5d,13,63,48),
::String(null()) };
hx::Class ClipboardEventInfo_obj::__mClass;
void ClipboardEventInfo_obj::__register()
{
ClipboardEventInfo_obj _hx_dummy;
ClipboardEventInfo_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("lime._internal.backend.native.ClipboardEventInfo",84,4b,40,c1);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(ClipboardEventInfo_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< ClipboardEventInfo_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = ClipboardEventInfo_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = ClipboardEventInfo_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace lime
} // end namespace _internal
} // end namespace backend
} // end namespace native

View File

@@ -0,0 +1,136 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_lime__internal_backend_native_DropEventInfo
#include <lime/_internal/backend/native/DropEventInfo.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_a21879e7650910f2_655_new,"lime._internal.backend.native.DropEventInfo","new",0x21a63a99,"lime._internal.backend.native.DropEventInfo.new","lime/_internal/backend/native/NativeApplication.hx",655,0xc1eba895)
HX_LOCAL_STACK_FRAME(_hx_pos_a21879e7650910f2_662_clone,"lime._internal.backend.native.DropEventInfo","clone",0x32cf3dd6,"lime._internal.backend.native.DropEventInfo.clone","lime/_internal/backend/native/NativeApplication.hx",662,0xc1eba895)
namespace lime{
namespace _internal{
namespace backend{
namespace native{
void DropEventInfo_obj::__construct( ::Dynamic type,::String file){
HX_STACKFRAME(&_hx_pos_a21879e7650910f2_655_new)
HXLINE( 656) this->type = ( (int)(type) );
HXLINE( 657) this->file = file;
}
Dynamic DropEventInfo_obj::__CreateEmpty() { return new DropEventInfo_obj; }
void *DropEventInfo_obj::_hx_vtable = 0;
Dynamic DropEventInfo_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< DropEventInfo_obj > _hx_result = new DropEventInfo_obj();
_hx_result->__construct(inArgs[0],inArgs[1]);
return _hx_result;
}
bool DropEventInfo_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x7acc9e35;
}
::lime::_internal::backend::native::DropEventInfo DropEventInfo_obj::clone(){
HX_GC_STACKFRAME(&_hx_pos_a21879e7650910f2_662_clone)
HXDLIN( 662) return ::lime::_internal::backend::native::DropEventInfo_obj::__alloc( HX_CTX ,this->type,this->file);
}
HX_DEFINE_DYNAMIC_FUNC0(DropEventInfo_obj,clone,return )
DropEventInfo_obj::DropEventInfo_obj()
{
}
void DropEventInfo_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(DropEventInfo);
HX_MARK_MEMBER_NAME(file,"file");
HX_MARK_MEMBER_NAME(type,"type");
HX_MARK_END_CLASS();
}
void DropEventInfo_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(file,"file");
HX_VISIT_MEMBER_NAME(type,"type");
}
hx::Val DropEventInfo_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"file") ) { return hx::Val( file ); }
if (HX_FIELD_EQ(inName,"type") ) { return hx::Val( type ); }
break;
case 5:
if (HX_FIELD_EQ(inName,"clone") ) { return hx::Val( clone_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val DropEventInfo_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"file") ) { file=inValue.Cast< ::String >(); return inValue; }
if (HX_FIELD_EQ(inName,"type") ) { type=inValue.Cast< int >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void DropEventInfo_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("file",7c,ce,bb,43));
outFields->push(HX_("type",ba,f2,08,4d));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo DropEventInfo_obj_sMemberStorageInfo[] = {
{hx::fsString,(int)offsetof(DropEventInfo_obj,file),HX_("file",7c,ce,bb,43)},
{hx::fsInt,(int)offsetof(DropEventInfo_obj,type),HX_("type",ba,f2,08,4d)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *DropEventInfo_obj_sStaticStorageInfo = 0;
#endif
static ::String DropEventInfo_obj_sMemberFields[] = {
HX_("file",7c,ce,bb,43),
HX_("type",ba,f2,08,4d),
HX_("clone",5d,13,63,48),
::String(null()) };
hx::Class DropEventInfo_obj::__mClass;
void DropEventInfo_obj::__register()
{
DropEventInfo_obj _hx_dummy;
DropEventInfo_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("lime._internal.backend.native.DropEventInfo",27,fa,44,6f);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(DropEventInfo_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< DropEventInfo_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = DropEventInfo_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = DropEventInfo_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace lime
} // end namespace _internal
} // end namespace backend
} // end namespace native

View File

@@ -0,0 +1,156 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_lime__internal_backend_native_GamepadEventInfo
#include <lime/_internal/backend/native/GamepadEventInfo.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_d0c0bd38b1c3a1bc_680_new,"lime._internal.backend.native.GamepadEventInfo","new",0x77bbf84b,"lime._internal.backend.native.GamepadEventInfo.new","lime/_internal/backend/native/NativeApplication.hx",680,0xc1eba895)
HX_LOCAL_STACK_FRAME(_hx_pos_d0c0bd38b1c3a1bc_690_clone,"lime._internal.backend.native.GamepadEventInfo","clone",0x88154c08,"lime._internal.backend.native.GamepadEventInfo.clone","lime/_internal/backend/native/NativeApplication.hx",690,0xc1eba895)
namespace lime{
namespace _internal{
namespace backend{
namespace native{
void GamepadEventInfo_obj::__construct( ::Dynamic type,hx::Null< int > __o_id,hx::Null< int > __o_button,hx::Null< int > __o_axis,hx::Null< Float > __o_value){
int id = __o_id.Default(0);
int button = __o_button.Default(0);
int axis = __o_axis.Default(0);
Float value = __o_value.Default(0);
HX_STACKFRAME(&_hx_pos_d0c0bd38b1c3a1bc_680_new)
HXLINE( 681) this->type = ( (int)(type) );
HXLINE( 682) this->id = id;
HXLINE( 683) this->button = button;
HXLINE( 684) this->axis = axis;
HXLINE( 685) this->axisValue = value;
}
Dynamic GamepadEventInfo_obj::__CreateEmpty() { return new GamepadEventInfo_obj; }
void *GamepadEventInfo_obj::_hx_vtable = 0;
Dynamic GamepadEventInfo_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< GamepadEventInfo_obj > _hx_result = new GamepadEventInfo_obj();
_hx_result->__construct(inArgs[0],inArgs[1],inArgs[2],inArgs[3],inArgs[4]);
return _hx_result;
}
bool GamepadEventInfo_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x779d48ef;
}
::lime::_internal::backend::native::GamepadEventInfo GamepadEventInfo_obj::clone(){
HX_GC_STACKFRAME(&_hx_pos_d0c0bd38b1c3a1bc_690_clone)
HXDLIN( 690) return ::lime::_internal::backend::native::GamepadEventInfo_obj::__alloc( HX_CTX ,this->type,this->id,this->button,this->axis,this->axisValue);
}
HX_DEFINE_DYNAMIC_FUNC0(GamepadEventInfo_obj,clone,return )
GamepadEventInfo_obj::GamepadEventInfo_obj()
{
}
hx::Val GamepadEventInfo_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 2:
if (HX_FIELD_EQ(inName,"id") ) { return hx::Val( id ); }
break;
case 4:
if (HX_FIELD_EQ(inName,"axis") ) { return hx::Val( axis ); }
if (HX_FIELD_EQ(inName,"type") ) { return hx::Val( type ); }
break;
case 5:
if (HX_FIELD_EQ(inName,"clone") ) { return hx::Val( clone_dyn() ); }
break;
case 6:
if (HX_FIELD_EQ(inName,"button") ) { return hx::Val( button ); }
break;
case 9:
if (HX_FIELD_EQ(inName,"axisValue") ) { return hx::Val( axisValue ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val GamepadEventInfo_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 2:
if (HX_FIELD_EQ(inName,"id") ) { id=inValue.Cast< int >(); return inValue; }
break;
case 4:
if (HX_FIELD_EQ(inName,"axis") ) { axis=inValue.Cast< int >(); return inValue; }
if (HX_FIELD_EQ(inName,"type") ) { type=inValue.Cast< int >(); return inValue; }
break;
case 6:
if (HX_FIELD_EQ(inName,"button") ) { button=inValue.Cast< int >(); return inValue; }
break;
case 9:
if (HX_FIELD_EQ(inName,"axisValue") ) { axisValue=inValue.Cast< Float >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void GamepadEventInfo_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("axis",a1,1c,79,40));
outFields->push(HX_("button",f2,61,e0,d9));
outFields->push(HX_("id",db,5b,00,00));
outFields->push(HX_("type",ba,f2,08,4d));
outFields->push(HX_("axisValue",10,6b,5c,8b));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo GamepadEventInfo_obj_sMemberStorageInfo[] = {
{hx::fsInt,(int)offsetof(GamepadEventInfo_obj,axis),HX_("axis",a1,1c,79,40)},
{hx::fsInt,(int)offsetof(GamepadEventInfo_obj,button),HX_("button",f2,61,e0,d9)},
{hx::fsInt,(int)offsetof(GamepadEventInfo_obj,id),HX_("id",db,5b,00,00)},
{hx::fsInt,(int)offsetof(GamepadEventInfo_obj,type),HX_("type",ba,f2,08,4d)},
{hx::fsFloat,(int)offsetof(GamepadEventInfo_obj,axisValue),HX_("axisValue",10,6b,5c,8b)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *GamepadEventInfo_obj_sStaticStorageInfo = 0;
#endif
static ::String GamepadEventInfo_obj_sMemberFields[] = {
HX_("axis",a1,1c,79,40),
HX_("button",f2,61,e0,d9),
HX_("id",db,5b,00,00),
HX_("type",ba,f2,08,4d),
HX_("axisValue",10,6b,5c,8b),
HX_("clone",5d,13,63,48),
::String(null()) };
hx::Class GamepadEventInfo_obj::__mClass;
void GamepadEventInfo_obj::__register()
{
GamepadEventInfo_obj _hx_dummy;
GamepadEventInfo_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("lime._internal.backend.native.GamepadEventInfo",d9,76,19,9e);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(GamepadEventInfo_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< GamepadEventInfo_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = GamepadEventInfo_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = GamepadEventInfo_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace lime
} // end namespace _internal
} // end namespace backend
} // end namespace native

View File

@@ -0,0 +1,165 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_lime__internal_backend_native_JoystickEventInfo
#include <lime/_internal/backend/native/JoystickEventInfo.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_21cd05885e6e0032_713_new,"lime._internal.backend.native.JoystickEventInfo","new",0x6a2decec,"lime._internal.backend.native.JoystickEventInfo.new","lime/_internal/backend/native/NativeApplication.hx",713,0xc1eba895)
HX_LOCAL_STACK_FRAME(_hx_pos_21cd05885e6e0032_724_clone,"lime._internal.backend.native.JoystickEventInfo","clone",0x72666ae9,"lime._internal.backend.native.JoystickEventInfo.clone","lime/_internal/backend/native/NativeApplication.hx",724,0xc1eba895)
namespace lime{
namespace _internal{
namespace backend{
namespace native{
void JoystickEventInfo_obj::__construct( ::Dynamic type,hx::Null< int > __o_id,hx::Null< int > __o_index,hx::Null< int > __o_value,hx::Null< Float > __o_x,hx::Null< Float > __o_y){
int id = __o_id.Default(0);
int index = __o_index.Default(0);
int value = __o_value.Default(0);
Float x = __o_x.Default(0);
Float y = __o_y.Default(0);
HX_STACKFRAME(&_hx_pos_21cd05885e6e0032_713_new)
HXLINE( 714) this->type = ( (int)(type) );
HXLINE( 715) this->id = id;
HXLINE( 716) this->index = index;
HXLINE( 717) this->eventValue = value;
HXLINE( 718) this->x = x;
HXLINE( 719) this->y = y;
}
Dynamic JoystickEventInfo_obj::__CreateEmpty() { return new JoystickEventInfo_obj; }
void *JoystickEventInfo_obj::_hx_vtable = 0;
Dynamic JoystickEventInfo_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< JoystickEventInfo_obj > _hx_result = new JoystickEventInfo_obj();
_hx_result->__construct(inArgs[0],inArgs[1],inArgs[2],inArgs[3],inArgs[4],inArgs[5]);
return _hx_result;
}
bool JoystickEventInfo_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x599ac45c;
}
::lime::_internal::backend::native::JoystickEventInfo JoystickEventInfo_obj::clone(){
HX_GC_STACKFRAME(&_hx_pos_21cd05885e6e0032_724_clone)
HXDLIN( 724) return ::lime::_internal::backend::native::JoystickEventInfo_obj::__alloc( HX_CTX ,this->type,this->id,this->index,this->eventValue,this->x,this->y);
}
HX_DEFINE_DYNAMIC_FUNC0(JoystickEventInfo_obj,clone,return )
JoystickEventInfo_obj::JoystickEventInfo_obj()
{
}
hx::Val JoystickEventInfo_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"x") ) { return hx::Val( x ); }
if (HX_FIELD_EQ(inName,"y") ) { return hx::Val( y ); }
break;
case 2:
if (HX_FIELD_EQ(inName,"id") ) { return hx::Val( id ); }
break;
case 4:
if (HX_FIELD_EQ(inName,"type") ) { return hx::Val( type ); }
break;
case 5:
if (HX_FIELD_EQ(inName,"index") ) { return hx::Val( index ); }
if (HX_FIELD_EQ(inName,"clone") ) { return hx::Val( clone_dyn() ); }
break;
case 10:
if (HX_FIELD_EQ(inName,"eventValue") ) { return hx::Val( eventValue ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val JoystickEventInfo_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"x") ) { x=inValue.Cast< Float >(); return inValue; }
if (HX_FIELD_EQ(inName,"y") ) { y=inValue.Cast< Float >(); return inValue; }
break;
case 2:
if (HX_FIELD_EQ(inName,"id") ) { id=inValue.Cast< int >(); return inValue; }
break;
case 4:
if (HX_FIELD_EQ(inName,"type") ) { type=inValue.Cast< int >(); return inValue; }
break;
case 5:
if (HX_FIELD_EQ(inName,"index") ) { index=inValue.Cast< int >(); return inValue; }
break;
case 10:
if (HX_FIELD_EQ(inName,"eventValue") ) { eventValue=inValue.Cast< int >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void JoystickEventInfo_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("id",db,5b,00,00));
outFields->push(HX_("index",12,9b,14,be));
outFields->push(HX_("type",ba,f2,08,4d));
outFields->push(HX_("eventValue",f7,88,13,ae));
outFields->push(HX_("x",78,00,00,00));
outFields->push(HX_("y",79,00,00,00));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo JoystickEventInfo_obj_sMemberStorageInfo[] = {
{hx::fsInt,(int)offsetof(JoystickEventInfo_obj,id),HX_("id",db,5b,00,00)},
{hx::fsInt,(int)offsetof(JoystickEventInfo_obj,index),HX_("index",12,9b,14,be)},
{hx::fsInt,(int)offsetof(JoystickEventInfo_obj,type),HX_("type",ba,f2,08,4d)},
{hx::fsInt,(int)offsetof(JoystickEventInfo_obj,eventValue),HX_("eventValue",f7,88,13,ae)},
{hx::fsFloat,(int)offsetof(JoystickEventInfo_obj,x),HX_("x",78,00,00,00)},
{hx::fsFloat,(int)offsetof(JoystickEventInfo_obj,y),HX_("y",79,00,00,00)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *JoystickEventInfo_obj_sStaticStorageInfo = 0;
#endif
static ::String JoystickEventInfo_obj_sMemberFields[] = {
HX_("id",db,5b,00,00),
HX_("index",12,9b,14,be),
HX_("type",ba,f2,08,4d),
HX_("eventValue",f7,88,13,ae),
HX_("x",78,00,00,00),
HX_("y",79,00,00,00),
HX_("clone",5d,13,63,48),
::String(null()) };
hx::Class JoystickEventInfo_obj::__mClass;
void JoystickEventInfo_obj::__register()
{
JoystickEventInfo_obj _hx_dummy;
JoystickEventInfo_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("lime._internal.backend.native.JoystickEventInfo",fa,46,aa,2f);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(JoystickEventInfo_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< JoystickEventInfo_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = JoystickEventInfo_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = JoystickEventInfo_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace lime
} // end namespace _internal
} // end namespace backend
} // end namespace native

View File

@@ -0,0 +1,145 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_lime__internal_backend_native_KeyEventInfo
#include <lime/_internal/backend/native/KeyEventInfo.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_cef4a471e9b9c478_747_new,"lime._internal.backend.native.KeyEventInfo","new",0x84b8978d,"lime._internal.backend.native.KeyEventInfo.new","lime/_internal/backend/native/NativeApplication.hx",747,0xc1eba895)
HX_LOCAL_STACK_FRAME(_hx_pos_cef4a471e9b9c478_756_clone,"lime._internal.backend.native.KeyEventInfo","clone",0x44e9bfca,"lime._internal.backend.native.KeyEventInfo.clone","lime/_internal/backend/native/NativeApplication.hx",756,0xc1eba895)
namespace lime{
namespace _internal{
namespace backend{
namespace native{
void KeyEventInfo_obj::__construct( ::Dynamic type,hx::Null< int > __o_windowID,hx::Null< int > __o_keyCode,hx::Null< int > __o_modifier){
int windowID = __o_windowID.Default(0);
int keyCode = __o_keyCode.Default(0);
int modifier = __o_modifier.Default(0);
HX_STACKFRAME(&_hx_pos_cef4a471e9b9c478_747_new)
HXLINE( 748) this->type = ( (int)(type) );
HXLINE( 749) this->windowID = windowID;
HXLINE( 750) this->keyCode = keyCode;
HXLINE( 751) this->modifier = modifier;
}
Dynamic KeyEventInfo_obj::__CreateEmpty() { return new KeyEventInfo_obj; }
void *KeyEventInfo_obj::_hx_vtable = 0;
Dynamic KeyEventInfo_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< KeyEventInfo_obj > _hx_result = new KeyEventInfo_obj();
_hx_result->__construct(inArgs[0],inArgs[1],inArgs[2],inArgs[3]);
return _hx_result;
}
bool KeyEventInfo_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x792de4cd;
}
::lime::_internal::backend::native::KeyEventInfo KeyEventInfo_obj::clone(){
HX_GC_STACKFRAME(&_hx_pos_cef4a471e9b9c478_756_clone)
HXDLIN( 756) return ::lime::_internal::backend::native::KeyEventInfo_obj::__alloc( HX_CTX ,this->type,this->windowID,this->keyCode,this->modifier);
}
HX_DEFINE_DYNAMIC_FUNC0(KeyEventInfo_obj,clone,return )
KeyEventInfo_obj::KeyEventInfo_obj()
{
}
hx::Val KeyEventInfo_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"type") ) { return hx::Val( type ); }
break;
case 5:
if (HX_FIELD_EQ(inName,"clone") ) { return hx::Val( clone_dyn() ); }
break;
case 7:
if (HX_FIELD_EQ(inName,"keyCode") ) { return hx::Val( keyCode ); }
break;
case 8:
if (HX_FIELD_EQ(inName,"modifier") ) { return hx::Val( modifier ); }
if (HX_FIELD_EQ(inName,"windowID") ) { return hx::Val( windowID ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val KeyEventInfo_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"type") ) { type=inValue.Cast< int >(); return inValue; }
break;
case 7:
if (HX_FIELD_EQ(inName,"keyCode") ) { keyCode=inValue.Cast< int >(); return inValue; }
break;
case 8:
if (HX_FIELD_EQ(inName,"modifier") ) { modifier=inValue.Cast< int >(); return inValue; }
if (HX_FIELD_EQ(inName,"windowID") ) { windowID=inValue.Cast< int >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void KeyEventInfo_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("keyCode",6c,22,9e,9b));
outFields->push(HX_("modifier",57,db,c7,16));
outFields->push(HX_("type",ba,f2,08,4d));
outFields->push(HX_("windowID",cb,af,cd,7d));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo KeyEventInfo_obj_sMemberStorageInfo[] = {
{hx::fsInt,(int)offsetof(KeyEventInfo_obj,keyCode),HX_("keyCode",6c,22,9e,9b)},
{hx::fsInt,(int)offsetof(KeyEventInfo_obj,modifier),HX_("modifier",57,db,c7,16)},
{hx::fsInt,(int)offsetof(KeyEventInfo_obj,type),HX_("type",ba,f2,08,4d)},
{hx::fsInt,(int)offsetof(KeyEventInfo_obj,windowID),HX_("windowID",cb,af,cd,7d)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *KeyEventInfo_obj_sStaticStorageInfo = 0;
#endif
static ::String KeyEventInfo_obj_sMemberFields[] = {
HX_("keyCode",6c,22,9e,9b),
HX_("modifier",57,db,c7,16),
HX_("type",ba,f2,08,4d),
HX_("windowID",cb,af,cd,7d),
HX_("clone",5d,13,63,48),
::String(null()) };
hx::Class KeyEventInfo_obj::__mClass;
void KeyEventInfo_obj::__register()
{
KeyEventInfo_obj _hx_dummy;
KeyEventInfo_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("lime._internal.backend.native.KeyEventInfo",1b,cd,40,15);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(KeyEventInfo_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< KeyEventInfo_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = KeyEventInfo_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = KeyEventInfo_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace lime
} // end namespace _internal
} // end namespace backend
} // end namespace native

View File

@@ -0,0 +1,174 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_lime__internal_backend_native_MouseEventInfo
#include <lime/_internal/backend/native/MouseEventInfo.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_3eb566585b06ea2e_777_new,"lime._internal.backend.native.MouseEventInfo","new",0x46fd57c7,"lime._internal.backend.native.MouseEventInfo.new","lime/_internal/backend/native/NativeApplication.hx",777,0xc1eba895)
HX_LOCAL_STACK_FRAME(_hx_pos_3eb566585b06ea2e_789_clone,"lime._internal.backend.native.MouseEventInfo","clone",0xb20a8284,"lime._internal.backend.native.MouseEventInfo.clone","lime/_internal/backend/native/NativeApplication.hx",789,0xc1eba895)
namespace lime{
namespace _internal{
namespace backend{
namespace native{
void MouseEventInfo_obj::__construct( ::Dynamic type,hx::Null< int > __o_windowID,hx::Null< Float > __o_x,hx::Null< Float > __o_y,hx::Null< int > __o_button,hx::Null< Float > __o_movementX,hx::Null< Float > __o_movementY){
int windowID = __o_windowID.Default(0);
Float x = __o_x.Default(0);
Float y = __o_y.Default(0);
int button = __o_button.Default(0);
Float movementX = __o_movementX.Default(0);
Float movementY = __o_movementY.Default(0);
HX_STACKFRAME(&_hx_pos_3eb566585b06ea2e_777_new)
HXLINE( 778) this->type = ( (int)(type) );
HXLINE( 779) this->windowID = 0;
HXLINE( 780) this->x = x;
HXLINE( 781) this->y = y;
HXLINE( 782) this->button = button;
HXLINE( 783) this->movementX = movementX;
HXLINE( 784) this->movementY = movementY;
}
Dynamic MouseEventInfo_obj::__CreateEmpty() { return new MouseEventInfo_obj; }
void *MouseEventInfo_obj::_hx_vtable = 0;
Dynamic MouseEventInfo_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< MouseEventInfo_obj > _hx_result = new MouseEventInfo_obj();
_hx_result->__construct(inArgs[0],inArgs[1],inArgs[2],inArgs[3],inArgs[4],inArgs[5],inArgs[6]);
return _hx_result;
}
bool MouseEventInfo_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x4f065087;
}
::lime::_internal::backend::native::MouseEventInfo MouseEventInfo_obj::clone(){
HX_GC_STACKFRAME(&_hx_pos_3eb566585b06ea2e_789_clone)
HXDLIN( 789) return ::lime::_internal::backend::native::MouseEventInfo_obj::__alloc( HX_CTX ,this->type,this->windowID,this->x,this->y,this->button,this->movementX,this->movementY);
}
HX_DEFINE_DYNAMIC_FUNC0(MouseEventInfo_obj,clone,return )
MouseEventInfo_obj::MouseEventInfo_obj()
{
}
hx::Val MouseEventInfo_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"x") ) { return hx::Val( x ); }
if (HX_FIELD_EQ(inName,"y") ) { return hx::Val( y ); }
break;
case 4:
if (HX_FIELD_EQ(inName,"type") ) { return hx::Val( type ); }
break;
case 5:
if (HX_FIELD_EQ(inName,"clone") ) { return hx::Val( clone_dyn() ); }
break;
case 6:
if (HX_FIELD_EQ(inName,"button") ) { return hx::Val( button ); }
break;
case 8:
if (HX_FIELD_EQ(inName,"windowID") ) { return hx::Val( windowID ); }
break;
case 9:
if (HX_FIELD_EQ(inName,"movementX") ) { return hx::Val( movementX ); }
if (HX_FIELD_EQ(inName,"movementY") ) { return hx::Val( movementY ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val MouseEventInfo_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"x") ) { x=inValue.Cast< Float >(); return inValue; }
if (HX_FIELD_EQ(inName,"y") ) { y=inValue.Cast< Float >(); return inValue; }
break;
case 4:
if (HX_FIELD_EQ(inName,"type") ) { type=inValue.Cast< int >(); return inValue; }
break;
case 6:
if (HX_FIELD_EQ(inName,"button") ) { button=inValue.Cast< int >(); return inValue; }
break;
case 8:
if (HX_FIELD_EQ(inName,"windowID") ) { windowID=inValue.Cast< int >(); return inValue; }
break;
case 9:
if (HX_FIELD_EQ(inName,"movementX") ) { movementX=inValue.Cast< Float >(); return inValue; }
if (HX_FIELD_EQ(inName,"movementY") ) { movementY=inValue.Cast< Float >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void MouseEventInfo_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("button",f2,61,e0,d9));
outFields->push(HX_("movementX",49,04,5d,30));
outFields->push(HX_("movementY",4a,04,5d,30));
outFields->push(HX_("type",ba,f2,08,4d));
outFields->push(HX_("windowID",cb,af,cd,7d));
outFields->push(HX_("x",78,00,00,00));
outFields->push(HX_("y",79,00,00,00));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo MouseEventInfo_obj_sMemberStorageInfo[] = {
{hx::fsInt,(int)offsetof(MouseEventInfo_obj,button),HX_("button",f2,61,e0,d9)},
{hx::fsFloat,(int)offsetof(MouseEventInfo_obj,movementX),HX_("movementX",49,04,5d,30)},
{hx::fsFloat,(int)offsetof(MouseEventInfo_obj,movementY),HX_("movementY",4a,04,5d,30)},
{hx::fsInt,(int)offsetof(MouseEventInfo_obj,type),HX_("type",ba,f2,08,4d)},
{hx::fsInt,(int)offsetof(MouseEventInfo_obj,windowID),HX_("windowID",cb,af,cd,7d)},
{hx::fsFloat,(int)offsetof(MouseEventInfo_obj,x),HX_("x",78,00,00,00)},
{hx::fsFloat,(int)offsetof(MouseEventInfo_obj,y),HX_("y",79,00,00,00)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *MouseEventInfo_obj_sStaticStorageInfo = 0;
#endif
static ::String MouseEventInfo_obj_sMemberFields[] = {
HX_("button",f2,61,e0,d9),
HX_("movementX",49,04,5d,30),
HX_("movementY",4a,04,5d,30),
HX_("type",ba,f2,08,4d),
HX_("windowID",cb,af,cd,7d),
HX_("x",78,00,00,00),
HX_("y",79,00,00,00),
HX_("clone",5d,13,63,48),
::String(null()) };
hx::Class MouseEventInfo_obj::__mClass;
void MouseEventInfo_obj::__register()
{
MouseEventInfo_obj _hx_dummy;
MouseEventInfo_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("lime._internal.backend.native.MouseEventInfo",55,68,de,43);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(MouseEventInfo_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< MouseEventInfo_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = MouseEventInfo_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = MouseEventInfo_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace lime
} // end namespace _internal
} // end namespace backend
} // end namespace native

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,116 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_lime__internal_backend_native_RenderEventInfo
#include <lime/_internal/backend/native/RenderEventInfo.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_e2a4e584e1f8ec25_807_new,"lime._internal.backend.native.RenderEventInfo","new",0x4ace2292,"lime._internal.backend.native.RenderEventInfo.new","lime/_internal/backend/native/NativeApplication.hx",807,0xc1eba895)
HX_LOCAL_STACK_FRAME(_hx_pos_e2a4e584e1f8ec25_812_clone,"lime._internal.backend.native.RenderEventInfo","clone",0xe3bbd60f,"lime._internal.backend.native.RenderEventInfo.clone","lime/_internal/backend/native/NativeApplication.hx",812,0xc1eba895)
namespace lime{
namespace _internal{
namespace backend{
namespace native{
void RenderEventInfo_obj::__construct( ::Dynamic type){
HX_STACKFRAME(&_hx_pos_e2a4e584e1f8ec25_807_new)
HXDLIN( 807) this->type = ( (int)(type) );
}
Dynamic RenderEventInfo_obj::__CreateEmpty() { return new RenderEventInfo_obj; }
void *RenderEventInfo_obj::_hx_vtable = 0;
Dynamic RenderEventInfo_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< RenderEventInfo_obj > _hx_result = new RenderEventInfo_obj();
_hx_result->__construct(inArgs[0]);
return _hx_result;
}
bool RenderEventInfo_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x68cc752e;
}
::lime::_internal::backend::native::RenderEventInfo RenderEventInfo_obj::clone(){
HX_GC_STACKFRAME(&_hx_pos_e2a4e584e1f8ec25_812_clone)
HXDLIN( 812) return ::lime::_internal::backend::native::RenderEventInfo_obj::__alloc( HX_CTX ,this->type);
}
HX_DEFINE_DYNAMIC_FUNC0(RenderEventInfo_obj,clone,return )
RenderEventInfo_obj::RenderEventInfo_obj()
{
}
hx::Val RenderEventInfo_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"type") ) { return hx::Val( type ); }
break;
case 5:
if (HX_FIELD_EQ(inName,"clone") ) { return hx::Val( clone_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val RenderEventInfo_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"type") ) { type=inValue.Cast< int >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void RenderEventInfo_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("type",ba,f2,08,4d));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo RenderEventInfo_obj_sMemberStorageInfo[] = {
{hx::fsInt,(int)offsetof(RenderEventInfo_obj,type),HX_("type",ba,f2,08,4d)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *RenderEventInfo_obj_sStaticStorageInfo = 0;
#endif
static ::String RenderEventInfo_obj_sMemberFields[] = {
HX_("type",ba,f2,08,4d),
HX_("clone",5d,13,63,48),
::String(null()) };
hx::Class RenderEventInfo_obj::__mClass;
void RenderEventInfo_obj::__register()
{
RenderEventInfo_obj _hx_dummy;
RenderEventInfo_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("lime._internal.backend.native.RenderEventInfo",a0,31,09,b1);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(RenderEventInfo_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< RenderEventInfo_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = RenderEventInfo_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = RenderEventInfo_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace lime
} // end namespace _internal
} // end namespace backend
} // end namespace native

View File

@@ -0,0 +1,152 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_lime__internal_backend_native_SensorEventInfo
#include <lime/_internal/backend/native/SensorEventInfo.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_60e5fd49cce3a06e_832_new,"lime._internal.backend.native.SensorEventInfo","new",0xcd81dd2e,"lime._internal.backend.native.SensorEventInfo.new","lime/_internal/backend/native/NativeApplication.hx",832,0xc1eba895)
HX_LOCAL_STACK_FRAME(_hx_pos_60e5fd49cce3a06e_842_clone,"lime._internal.backend.native.SensorEventInfo","clone",0x46c86fab,"lime._internal.backend.native.SensorEventInfo.clone","lime/_internal/backend/native/NativeApplication.hx",842,0xc1eba895)
namespace lime{
namespace _internal{
namespace backend{
namespace native{
void SensorEventInfo_obj::__construct( ::Dynamic type,hx::Null< int > __o_id,hx::Null< Float > __o_x,hx::Null< Float > __o_y,hx::Null< Float > __o_z){
int id = __o_id.Default(0);
Float x = __o_x.Default(0);
Float y = __o_y.Default(0);
Float z = __o_z.Default(0);
HX_STACKFRAME(&_hx_pos_60e5fd49cce3a06e_832_new)
HXLINE( 833) this->type = ( (int)(type) );
HXLINE( 834) this->id = id;
HXLINE( 835) this->x = x;
HXLINE( 836) this->y = y;
HXLINE( 837) this->z = z;
}
Dynamic SensorEventInfo_obj::__CreateEmpty() { return new SensorEventInfo_obj; }
void *SensorEventInfo_obj::_hx_vtable = 0;
Dynamic SensorEventInfo_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< SensorEventInfo_obj > _hx_result = new SensorEventInfo_obj();
_hx_result->__construct(inArgs[0],inArgs[1],inArgs[2],inArgs[3],inArgs[4]);
return _hx_result;
}
bool SensorEventInfo_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x4f863002;
}
::lime::_internal::backend::native::SensorEventInfo SensorEventInfo_obj::clone(){
HX_GC_STACKFRAME(&_hx_pos_60e5fd49cce3a06e_842_clone)
HXDLIN( 842) return ::lime::_internal::backend::native::SensorEventInfo_obj::__alloc( HX_CTX ,this->type,this->id,this->x,this->y,this->z);
}
HX_DEFINE_DYNAMIC_FUNC0(SensorEventInfo_obj,clone,return )
SensorEventInfo_obj::SensorEventInfo_obj()
{
}
hx::Val SensorEventInfo_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"x") ) { return hx::Val( x ); }
if (HX_FIELD_EQ(inName,"y") ) { return hx::Val( y ); }
if (HX_FIELD_EQ(inName,"z") ) { return hx::Val( z ); }
break;
case 2:
if (HX_FIELD_EQ(inName,"id") ) { return hx::Val( id ); }
break;
case 4:
if (HX_FIELD_EQ(inName,"type") ) { return hx::Val( type ); }
break;
case 5:
if (HX_FIELD_EQ(inName,"clone") ) { return hx::Val( clone_dyn() ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val SensorEventInfo_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"x") ) { x=inValue.Cast< Float >(); return inValue; }
if (HX_FIELD_EQ(inName,"y") ) { y=inValue.Cast< Float >(); return inValue; }
if (HX_FIELD_EQ(inName,"z") ) { z=inValue.Cast< Float >(); return inValue; }
break;
case 2:
if (HX_FIELD_EQ(inName,"id") ) { id=inValue.Cast< int >(); return inValue; }
break;
case 4:
if (HX_FIELD_EQ(inName,"type") ) { type=inValue.Cast< int >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void SensorEventInfo_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("id",db,5b,00,00));
outFields->push(HX_("x",78,00,00,00));
outFields->push(HX_("y",79,00,00,00));
outFields->push(HX_("z",7a,00,00,00));
outFields->push(HX_("type",ba,f2,08,4d));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo SensorEventInfo_obj_sMemberStorageInfo[] = {
{hx::fsInt,(int)offsetof(SensorEventInfo_obj,id),HX_("id",db,5b,00,00)},
{hx::fsFloat,(int)offsetof(SensorEventInfo_obj,x),HX_("x",78,00,00,00)},
{hx::fsFloat,(int)offsetof(SensorEventInfo_obj,y),HX_("y",79,00,00,00)},
{hx::fsFloat,(int)offsetof(SensorEventInfo_obj,z),HX_("z",7a,00,00,00)},
{hx::fsInt,(int)offsetof(SensorEventInfo_obj,type),HX_("type",ba,f2,08,4d)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *SensorEventInfo_obj_sStaticStorageInfo = 0;
#endif
static ::String SensorEventInfo_obj_sMemberFields[] = {
HX_("id",db,5b,00,00),
HX_("x",78,00,00,00),
HX_("y",79,00,00,00),
HX_("z",7a,00,00,00),
HX_("type",ba,f2,08,4d),
HX_("clone",5d,13,63,48),
::String(null()) };
hx::Class SensorEventInfo_obj::__mClass;
void SensorEventInfo_obj::__register()
{
SensorEventInfo_obj _hx_dummy;
SensorEventInfo_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("lime._internal.backend.native.SensorEventInfo",3c,6e,ec,28);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(SensorEventInfo_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< SensorEventInfo_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = SensorEventInfo_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = SensorEventInfo_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace lime
} // end namespace _internal
} // end namespace backend
} // end namespace native

View File

@@ -0,0 +1,184 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_lime__internal_backend_native_TextEventInfo
#include <lime/_internal/backend/native/TextEventInfo.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_48b909785036aaec_861_new,"lime._internal.backend.native.TextEventInfo","new",0x7aff2f5b,"lime._internal.backend.native.TextEventInfo.new","lime/_internal/backend/native/NativeApplication.hx",861,0xc1eba895)
HX_LOCAL_STACK_FRAME(_hx_pos_48b909785036aaec_871_clone,"lime._internal.backend.native.TextEventInfo","clone",0x4be06718,"lime._internal.backend.native.TextEventInfo.clone","lime/_internal/backend/native/NativeApplication.hx",871,0xc1eba895)
namespace lime{
namespace _internal{
namespace backend{
namespace native{
void TextEventInfo_obj::__construct( ::Dynamic type,hx::Null< int > __o_windowID,::String text,hx::Null< int > __o_start,hx::Null< int > __o_length){
int windowID = __o_windowID.Default(0);
int start = __o_start.Default(0);
int length = __o_length.Default(0);
HX_STACKFRAME(&_hx_pos_48b909785036aaec_861_new)
HXLINE( 862) this->type = ( (int)(type) );
HXLINE( 863) this->windowID = windowID;
HXLINE( 864) this->text = text;
HXLINE( 865) this->start = start;
HXLINE( 866) this->length = length;
}
Dynamic TextEventInfo_obj::__CreateEmpty() { return new TextEventInfo_obj; }
void *TextEventInfo_obj::_hx_vtable = 0;
Dynamic TextEventInfo_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< TextEventInfo_obj > _hx_result = new TextEventInfo_obj();
_hx_result->__construct(inArgs[0],inArgs[1],inArgs[2],inArgs[3],inArgs[4]);
return _hx_result;
}
bool TextEventInfo_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x091789f7;
}
::lime::_internal::backend::native::TextEventInfo TextEventInfo_obj::clone(){
HX_GC_STACKFRAME(&_hx_pos_48b909785036aaec_871_clone)
HXDLIN( 871) return ::lime::_internal::backend::native::TextEventInfo_obj::__alloc( HX_CTX ,this->type,this->windowID,this->text,this->start,this->length);
}
HX_DEFINE_DYNAMIC_FUNC0(TextEventInfo_obj,clone,return )
TextEventInfo_obj::TextEventInfo_obj()
{
}
void TextEventInfo_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(TextEventInfo);
HX_MARK_MEMBER_NAME(id,"id");
HX_MARK_MEMBER_NAME(length,"length");
HX_MARK_MEMBER_NAME(start,"start");
HX_MARK_MEMBER_NAME(text,"text");
HX_MARK_MEMBER_NAME(type,"type");
HX_MARK_MEMBER_NAME(windowID,"windowID");
HX_MARK_END_CLASS();
}
void TextEventInfo_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(id,"id");
HX_VISIT_MEMBER_NAME(length,"length");
HX_VISIT_MEMBER_NAME(start,"start");
HX_VISIT_MEMBER_NAME(text,"text");
HX_VISIT_MEMBER_NAME(type,"type");
HX_VISIT_MEMBER_NAME(windowID,"windowID");
}
hx::Val TextEventInfo_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 2:
if (HX_FIELD_EQ(inName,"id") ) { return hx::Val( id ); }
break;
case 4:
if (HX_FIELD_EQ(inName,"text") ) { return hx::Val( text ); }
if (HX_FIELD_EQ(inName,"type") ) { return hx::Val( type ); }
break;
case 5:
if (HX_FIELD_EQ(inName,"start") ) { return hx::Val( start ); }
if (HX_FIELD_EQ(inName,"clone") ) { return hx::Val( clone_dyn() ); }
break;
case 6:
if (HX_FIELD_EQ(inName,"length") ) { return hx::Val( length ); }
break;
case 8:
if (HX_FIELD_EQ(inName,"windowID") ) { return hx::Val( windowID ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val TextEventInfo_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 2:
if (HX_FIELD_EQ(inName,"id") ) { id=inValue.Cast< int >(); return inValue; }
break;
case 4:
if (HX_FIELD_EQ(inName,"text") ) { text=inValue.Cast< ::String >(); return inValue; }
if (HX_FIELD_EQ(inName,"type") ) { type=inValue.Cast< int >(); return inValue; }
break;
case 5:
if (HX_FIELD_EQ(inName,"start") ) { start=inValue.Cast< int >(); return inValue; }
break;
case 6:
if (HX_FIELD_EQ(inName,"length") ) { length=inValue.Cast< int >(); return inValue; }
break;
case 8:
if (HX_FIELD_EQ(inName,"windowID") ) { windowID=inValue.Cast< int >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void TextEventInfo_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("id",db,5b,00,00));
outFields->push(HX_("length",e6,94,07,9f));
outFields->push(HX_("start",62,74,0b,84));
outFields->push(HX_("text",ad,cc,f9,4c));
outFields->push(HX_("type",ba,f2,08,4d));
outFields->push(HX_("windowID",cb,af,cd,7d));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo TextEventInfo_obj_sMemberStorageInfo[] = {
{hx::fsInt,(int)offsetof(TextEventInfo_obj,id),HX_("id",db,5b,00,00)},
{hx::fsInt,(int)offsetof(TextEventInfo_obj,length),HX_("length",e6,94,07,9f)},
{hx::fsInt,(int)offsetof(TextEventInfo_obj,start),HX_("start",62,74,0b,84)},
{hx::fsString,(int)offsetof(TextEventInfo_obj,text),HX_("text",ad,cc,f9,4c)},
{hx::fsInt,(int)offsetof(TextEventInfo_obj,type),HX_("type",ba,f2,08,4d)},
{hx::fsInt,(int)offsetof(TextEventInfo_obj,windowID),HX_("windowID",cb,af,cd,7d)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *TextEventInfo_obj_sStaticStorageInfo = 0;
#endif
static ::String TextEventInfo_obj_sMemberFields[] = {
HX_("id",db,5b,00,00),
HX_("length",e6,94,07,9f),
HX_("start",62,74,0b,84),
HX_("text",ad,cc,f9,4c),
HX_("type",ba,f2,08,4d),
HX_("windowID",cb,af,cd,7d),
HX_("clone",5d,13,63,48),
::String(null()) };
hx::Class TextEventInfo_obj::__mClass;
void TextEventInfo_obj::__register()
{
TextEventInfo_obj _hx_dummy;
TextEventInfo_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("lime._internal.backend.native.TextEventInfo",e9,e5,8f,fd);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(TextEventInfo_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< TextEventInfo_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = TextEventInfo_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = TextEventInfo_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace lime
} // end namespace _internal
} // end namespace backend
} // end namespace native

View File

@@ -0,0 +1,181 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_lime__internal_backend_native_TouchEventInfo
#include <lime/_internal/backend/native/TouchEventInfo.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_dc6fd8f0bbdab31a_893_new,"lime._internal.backend.native.TouchEventInfo","new",0xc006dded,"lime._internal.backend.native.TouchEventInfo.new","lime/_internal/backend/native/NativeApplication.hx",893,0xc1eba895)
HX_LOCAL_STACK_FRAME(_hx_pos_dc6fd8f0bbdab31a_906_clone,"lime._internal.backend.native.TouchEventInfo","clone",0xa51e5e2a,"lime._internal.backend.native.TouchEventInfo.clone","lime/_internal/backend/native/NativeApplication.hx",906,0xc1eba895)
namespace lime{
namespace _internal{
namespace backend{
namespace native{
void TouchEventInfo_obj::__construct( ::Dynamic type,hx::Null< Float > __o_x,hx::Null< Float > __o_y,hx::Null< int > __o_id,hx::Null< Float > __o_dx,hx::Null< Float > __o_dy,hx::Null< Float > __o_pressure,hx::Null< int > __o_device){
Float x = __o_x.Default(0);
Float y = __o_y.Default(0);
int id = __o_id.Default(0);
Float dx = __o_dx.Default(0);
Float dy = __o_dy.Default(0);
Float pressure = __o_pressure.Default(0);
int device = __o_device.Default(0);
HX_STACKFRAME(&_hx_pos_dc6fd8f0bbdab31a_893_new)
HXLINE( 894) this->type = ( (int)(type) );
HXLINE( 895) this->x = x;
HXLINE( 896) this->y = y;
HXLINE( 897) this->id = id;
HXLINE( 898) this->dx = dx;
HXLINE( 899) this->dy = dy;
HXLINE( 900) this->pressure = pressure;
HXLINE( 901) this->device = device;
}
Dynamic TouchEventInfo_obj::__CreateEmpty() { return new TouchEventInfo_obj; }
void *TouchEventInfo_obj::_hx_vtable = 0;
Dynamic TouchEventInfo_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< TouchEventInfo_obj > _hx_result = new TouchEventInfo_obj();
_hx_result->__construct(inArgs[0],inArgs[1],inArgs[2],inArgs[3],inArgs[4],inArgs[5],inArgs[6],inArgs[7]);
return _hx_result;
}
bool TouchEventInfo_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x000d0ecd;
}
::lime::_internal::backend::native::TouchEventInfo TouchEventInfo_obj::clone(){
HX_GC_STACKFRAME(&_hx_pos_dc6fd8f0bbdab31a_906_clone)
HXDLIN( 906) return ::lime::_internal::backend::native::TouchEventInfo_obj::__alloc( HX_CTX ,this->type,this->x,this->y,this->id,this->dx,this->dy,this->pressure,this->device);
}
HX_DEFINE_DYNAMIC_FUNC0(TouchEventInfo_obj,clone,return )
TouchEventInfo_obj::TouchEventInfo_obj()
{
}
hx::Val TouchEventInfo_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"x") ) { return hx::Val( x ); }
if (HX_FIELD_EQ(inName,"y") ) { return hx::Val( y ); }
break;
case 2:
if (HX_FIELD_EQ(inName,"dx") ) { return hx::Val( dx ); }
if (HX_FIELD_EQ(inName,"dy") ) { return hx::Val( dy ); }
if (HX_FIELD_EQ(inName,"id") ) { return hx::Val( id ); }
break;
case 4:
if (HX_FIELD_EQ(inName,"type") ) { return hx::Val( type ); }
break;
case 5:
if (HX_FIELD_EQ(inName,"clone") ) { return hx::Val( clone_dyn() ); }
break;
case 6:
if (HX_FIELD_EQ(inName,"device") ) { return hx::Val( device ); }
break;
case 8:
if (HX_FIELD_EQ(inName,"pressure") ) { return hx::Val( pressure ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val TouchEventInfo_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"x") ) { x=inValue.Cast< Float >(); return inValue; }
if (HX_FIELD_EQ(inName,"y") ) { y=inValue.Cast< Float >(); return inValue; }
break;
case 2:
if (HX_FIELD_EQ(inName,"dx") ) { dx=inValue.Cast< Float >(); return inValue; }
if (HX_FIELD_EQ(inName,"dy") ) { dy=inValue.Cast< Float >(); return inValue; }
if (HX_FIELD_EQ(inName,"id") ) { id=inValue.Cast< int >(); return inValue; }
break;
case 4:
if (HX_FIELD_EQ(inName,"type") ) { type=inValue.Cast< int >(); return inValue; }
break;
case 6:
if (HX_FIELD_EQ(inName,"device") ) { device=inValue.Cast< int >(); return inValue; }
break;
case 8:
if (HX_FIELD_EQ(inName,"pressure") ) { pressure=inValue.Cast< Float >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void TouchEventInfo_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("device",96,dc,77,71));
outFields->push(HX_("dx",94,57,00,00));
outFields->push(HX_("dy",95,57,00,00));
outFields->push(HX_("id",db,5b,00,00));
outFields->push(HX_("pressure",c5,ab,1d,70));
outFields->push(HX_("type",ba,f2,08,4d));
outFields->push(HX_("x",78,00,00,00));
outFields->push(HX_("y",79,00,00,00));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo TouchEventInfo_obj_sMemberStorageInfo[] = {
{hx::fsInt,(int)offsetof(TouchEventInfo_obj,device),HX_("device",96,dc,77,71)},
{hx::fsFloat,(int)offsetof(TouchEventInfo_obj,dx),HX_("dx",94,57,00,00)},
{hx::fsFloat,(int)offsetof(TouchEventInfo_obj,dy),HX_("dy",95,57,00,00)},
{hx::fsInt,(int)offsetof(TouchEventInfo_obj,id),HX_("id",db,5b,00,00)},
{hx::fsFloat,(int)offsetof(TouchEventInfo_obj,pressure),HX_("pressure",c5,ab,1d,70)},
{hx::fsInt,(int)offsetof(TouchEventInfo_obj,type),HX_("type",ba,f2,08,4d)},
{hx::fsFloat,(int)offsetof(TouchEventInfo_obj,x),HX_("x",78,00,00,00)},
{hx::fsFloat,(int)offsetof(TouchEventInfo_obj,y),HX_("y",79,00,00,00)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *TouchEventInfo_obj_sStaticStorageInfo = 0;
#endif
static ::String TouchEventInfo_obj_sMemberFields[] = {
HX_("device",96,dc,77,71),
HX_("dx",94,57,00,00),
HX_("dy",95,57,00,00),
HX_("id",db,5b,00,00),
HX_("pressure",c5,ab,1d,70),
HX_("type",ba,f2,08,4d),
HX_("x",78,00,00,00),
HX_("y",79,00,00,00),
HX_("clone",5d,13,63,48),
::String(null()) };
hx::Class TouchEventInfo_obj::__mClass;
void TouchEventInfo_obj::__register()
{
TouchEventInfo_obj _hx_dummy;
TouchEventInfo_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("lime._internal.backend.native.TouchEventInfo",7b,63,94,c9);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(TouchEventInfo_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< TouchEventInfo_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = TouchEventInfo_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = TouchEventInfo_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace lime
} // end namespace _internal
} // end namespace backend
} // end namespace native

View File

@@ -0,0 +1,165 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_lime__internal_backend_native_WindowEventInfo
#include <lime/_internal/backend/native/WindowEventInfo.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_d8a53269ce4a50a3_927_new,"lime._internal.backend.native.WindowEventInfo","new",0x4cd621b8,"lime._internal.backend.native.WindowEventInfo.new","lime/_internal/backend/native/NativeApplication.hx",927,0xc1eba895)
HX_LOCAL_STACK_FRAME(_hx_pos_d8a53269ce4a50a3_938_clone,"lime._internal.backend.native.WindowEventInfo","clone",0x771e6ab5,"lime._internal.backend.native.WindowEventInfo.clone","lime/_internal/backend/native/NativeApplication.hx",938,0xc1eba895)
namespace lime{
namespace _internal{
namespace backend{
namespace native{
void WindowEventInfo_obj::__construct( ::Dynamic type,hx::Null< int > __o_windowID,hx::Null< int > __o_width,hx::Null< int > __o_height,hx::Null< int > __o_x,hx::Null< int > __o_y){
int windowID = __o_windowID.Default(0);
int width = __o_width.Default(0);
int height = __o_height.Default(0);
int x = __o_x.Default(0);
int y = __o_y.Default(0);
HX_STACKFRAME(&_hx_pos_d8a53269ce4a50a3_927_new)
HXLINE( 928) this->type = ( (int)(type) );
HXLINE( 929) this->windowID = windowID;
HXLINE( 930) this->width = width;
HXLINE( 931) this->height = height;
HXLINE( 932) this->x = x;
HXLINE( 933) this->y = y;
}
Dynamic WindowEventInfo_obj::__CreateEmpty() { return new WindowEventInfo_obj; }
void *WindowEventInfo_obj::_hx_vtable = 0;
Dynamic WindowEventInfo_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< WindowEventInfo_obj > _hx_result = new WindowEventInfo_obj();
_hx_result->__construct(inArgs[0],inArgs[1],inArgs[2],inArgs[3],inArgs[4],inArgs[5]);
return _hx_result;
}
bool WindowEventInfo_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x26906954;
}
::lime::_internal::backend::native::WindowEventInfo WindowEventInfo_obj::clone(){
HX_GC_STACKFRAME(&_hx_pos_d8a53269ce4a50a3_938_clone)
HXDLIN( 938) return ::lime::_internal::backend::native::WindowEventInfo_obj::__alloc( HX_CTX ,this->type,this->windowID,this->width,this->height,this->x,this->y);
}
HX_DEFINE_DYNAMIC_FUNC0(WindowEventInfo_obj,clone,return )
WindowEventInfo_obj::WindowEventInfo_obj()
{
}
hx::Val WindowEventInfo_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"x") ) { return hx::Val( x ); }
if (HX_FIELD_EQ(inName,"y") ) { return hx::Val( y ); }
break;
case 4:
if (HX_FIELD_EQ(inName,"type") ) { return hx::Val( type ); }
break;
case 5:
if (HX_FIELD_EQ(inName,"width") ) { return hx::Val( width ); }
if (HX_FIELD_EQ(inName,"clone") ) { return hx::Val( clone_dyn() ); }
break;
case 6:
if (HX_FIELD_EQ(inName,"height") ) { return hx::Val( height ); }
break;
case 8:
if (HX_FIELD_EQ(inName,"windowID") ) { return hx::Val( windowID ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val WindowEventInfo_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"x") ) { x=inValue.Cast< int >(); return inValue; }
if (HX_FIELD_EQ(inName,"y") ) { y=inValue.Cast< int >(); return inValue; }
break;
case 4:
if (HX_FIELD_EQ(inName,"type") ) { type=inValue.Cast< int >(); return inValue; }
break;
case 5:
if (HX_FIELD_EQ(inName,"width") ) { width=inValue.Cast< int >(); return inValue; }
break;
case 6:
if (HX_FIELD_EQ(inName,"height") ) { height=inValue.Cast< int >(); return inValue; }
break;
case 8:
if (HX_FIELD_EQ(inName,"windowID") ) { windowID=inValue.Cast< int >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void WindowEventInfo_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("height",e7,07,4c,02));
outFields->push(HX_("type",ba,f2,08,4d));
outFields->push(HX_("width",06,b6,62,ca));
outFields->push(HX_("windowID",cb,af,cd,7d));
outFields->push(HX_("x",78,00,00,00));
outFields->push(HX_("y",79,00,00,00));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo WindowEventInfo_obj_sMemberStorageInfo[] = {
{hx::fsInt,(int)offsetof(WindowEventInfo_obj,height),HX_("height",e7,07,4c,02)},
{hx::fsInt,(int)offsetof(WindowEventInfo_obj,type),HX_("type",ba,f2,08,4d)},
{hx::fsInt,(int)offsetof(WindowEventInfo_obj,width),HX_("width",06,b6,62,ca)},
{hx::fsInt,(int)offsetof(WindowEventInfo_obj,windowID),HX_("windowID",cb,af,cd,7d)},
{hx::fsInt,(int)offsetof(WindowEventInfo_obj,x),HX_("x",78,00,00,00)},
{hx::fsInt,(int)offsetof(WindowEventInfo_obj,y),HX_("y",79,00,00,00)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *WindowEventInfo_obj_sStaticStorageInfo = 0;
#endif
static ::String WindowEventInfo_obj_sMemberFields[] = {
HX_("height",e7,07,4c,02),
HX_("type",ba,f2,08,4d),
HX_("width",06,b6,62,ca),
HX_("windowID",cb,af,cd,7d),
HX_("x",78,00,00,00),
HX_("y",79,00,00,00),
HX_("clone",5d,13,63,48),
::String(null()) };
hx::Class WindowEventInfo_obj::__mClass;
void WindowEventInfo_obj::__register()
{
WindowEventInfo_obj _hx_dummy;
WindowEventInfo_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("lime._internal.backend.native.WindowEventInfo",c6,25,cd,6e);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(WindowEventInfo_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< WindowEventInfo_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = WindowEventInfo_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = WindowEventInfo_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace lime
} // end namespace _internal
} // end namespace backend
} // end namespace native

View File

@@ -0,0 +1,479 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_lime__internal_format_BMP
#include <lime/_internal/format/BMP.h>
#endif
#ifndef INCLUDED_lime__internal_format_BMPType
#include <lime/_internal/format/BMPType.h>
#endif
#ifndef INCLUDED_lime_graphics_Image
#include <lime/graphics/Image.h>
#endif
#ifndef INCLUDED_lime_math_Rectangle
#include <lime/math/Rectangle.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_b7d25674645dcbd1_14_encode,"lime._internal.format.BMP","encode",0xed49c7eb,"lime._internal.format.BMP.encode","lime/_internal/format/BMP.hx",14,0x5d470ca4)
namespace lime{
namespace _internal{
namespace format{
void BMP_obj::__construct() { }
Dynamic BMP_obj::__CreateEmpty() { return new BMP_obj; }
void *BMP_obj::_hx_vtable = 0;
Dynamic BMP_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< BMP_obj > _hx_result = new BMP_obj();
_hx_result->__construct();
return _hx_result;
}
bool BMP_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x21416cc7;
}
::haxe::io::Bytes BMP_obj::encode( ::lime::graphics::Image image, ::lime::_internal::format::BMPType type){
HX_GC_STACKFRAME(&_hx_pos_b7d25674645dcbd1_14_encode)
HXLINE( 15) bool _hx_tmp;
HXDLIN( 15) if (!(image->get_premultiplied())) {
HXLINE( 15) _hx_tmp = (image->get_format() != 0);
}
else {
HXLINE( 15) _hx_tmp = true;
}
HXDLIN( 15) if (_hx_tmp) {
HXLINE( 19) image = image->clone();
HXLINE( 20) image->set_premultiplied(false);
HXLINE( 21) image->set_format(0);
}
HXLINE( 24) if (hx::IsNull( type )) {
HXLINE( 26) type = ::lime::_internal::format::BMPType_obj::RGB_dyn();
}
HXLINE( 29) int fileHeaderLength = 14;
HXLINE( 30) int infoHeaderLength = 40;
HXLINE( 31) int pixelValuesLength = ((image->width * image->height) * 4);
HXLINE( 33) if (hx::IsNotNull( type )) {
HXLINE( 33) switch((int)(type->_hx_getIndex())){
case (int)0: {
HXLINE( 43) pixelValuesLength = (((image->width * 3) + hx::Mod((image->width * 3),4)) * image->height);
}
break;
case (int)1: {
HXLINE( 36) infoHeaderLength = 108;
}
break;
case (int)2: {
HXLINE( 39) fileHeaderLength = 0;
HXLINE( 40) pixelValuesLength = (pixelValuesLength + (image->width * image->height));
}
break;
}
}
HXLINE( 48) ::haxe::io::Bytes data = ::haxe::io::Bytes_obj::alloc(((fileHeaderLength + infoHeaderLength) + pixelValuesLength));
HXLINE( 49) int position = 0;
HXLINE( 51) if ((fileHeaderLength > 0)) {
HXLINE( 53) {
HXLINE( 53) position = (position + 1);
HXDLIN( 53) data->b[(position - 1)] = ( (unsigned char)(66) );
}
HXLINE( 54) {
HXLINE( 54) position = (position + 1);
HXDLIN( 54) data->b[(position - 1)] = ( (unsigned char)(77) );
}
HXLINE( 55) {
HXLINE( 55) int v = data->length;
HXDLIN( 55) data->b[position] = ( (unsigned char)((v & 255)) );
HXDLIN( 55) data->b[(position + 1)] = ( (unsigned char)(((v >> 8) & 255)) );
HXDLIN( 55) data->b[(position + 2)] = ( (unsigned char)(((v >> 16) & 255)) );
HXDLIN( 55) data->b[(position + 3)] = ( (unsigned char)((hx::UShr(v,24) & 255)) );
}
HXLINE( 56) position = (position + 4);
HXLINE( 57) {
HXLINE( 57) data->b[position] = ( (unsigned char)(0) );
HXDLIN( 57) data->b[(position + 1)] = ( (unsigned char)(0) );
}
HXLINE( 58) position = (position + 2);
HXLINE( 59) {
HXLINE( 59) data->b[position] = ( (unsigned char)(0) );
HXDLIN( 59) data->b[(position + 1)] = ( (unsigned char)(0) );
}
HXLINE( 60) position = (position + 2);
HXLINE( 61) {
HXLINE( 61) int v1 = (fileHeaderLength + infoHeaderLength);
HXDLIN( 61) data->b[position] = ( (unsigned char)((v1 & 255)) );
HXDLIN( 61) data->b[(position + 1)] = ( (unsigned char)(((v1 >> 8) & 255)) );
HXDLIN( 61) data->b[(position + 2)] = ( (unsigned char)(((v1 >> 16) & 255)) );
HXDLIN( 61) data->b[(position + 3)] = ( (unsigned char)((hx::UShr(v1,24) & 255)) );
}
HXLINE( 62) position = (position + 4);
}
HXLINE( 65) {
HXLINE( 65) data->b[position] = ( (unsigned char)((infoHeaderLength & 255)) );
HXDLIN( 65) data->b[(position + 1)] = ( (unsigned char)(((infoHeaderLength >> 8) & 255)) );
HXDLIN( 65) data->b[(position + 2)] = ( (unsigned char)(((infoHeaderLength >> 16) & 255)) );
HXDLIN( 65) data->b[(position + 3)] = ( (unsigned char)((hx::UShr(infoHeaderLength,24) & 255)) );
}
HXLINE( 66) position = (position + 4);
HXLINE( 67) {
HXLINE( 67) int v2 = image->width;
HXDLIN( 67) data->b[position] = ( (unsigned char)((v2 & 255)) );
HXDLIN( 67) data->b[(position + 1)] = ( (unsigned char)(((v2 >> 8) & 255)) );
HXDLIN( 67) data->b[(position + 2)] = ( (unsigned char)(((v2 >> 16) & 255)) );
HXDLIN( 67) data->b[(position + 3)] = ( (unsigned char)((hx::UShr(v2,24) & 255)) );
}
HXLINE( 68) position = (position + 4);
HXLINE( 69) {
HXLINE( 69) int v3;
HXDLIN( 69) if (hx::IsEq( type,::lime::_internal::format::BMPType_obj::ICO_dyn() )) {
HXLINE( 69) v3 = (image->height * 2);
}
else {
HXLINE( 69) v3 = image->height;
}
HXDLIN( 69) data->b[position] = ( (unsigned char)((v3 & 255)) );
HXDLIN( 69) data->b[(position + 1)] = ( (unsigned char)(((v3 >> 8) & 255)) );
HXDLIN( 69) data->b[(position + 2)] = ( (unsigned char)(((v3 >> 16) & 255)) );
HXDLIN( 69) data->b[(position + 3)] = ( (unsigned char)((hx::UShr(v3,24) & 255)) );
}
HXLINE( 70) position = (position + 4);
HXLINE( 71) {
HXLINE( 71) data->b[position] = ( (unsigned char)(1) );
HXDLIN( 71) data->b[(position + 1)] = ( (unsigned char)(0) );
}
HXLINE( 72) position = (position + 2);
HXLINE( 73) {
HXLINE( 73) int v4;
HXDLIN( 73) if (hx::IsEq( type,::lime::_internal::format::BMPType_obj::RGB_dyn() )) {
HXLINE( 73) v4 = 24;
}
else {
HXLINE( 73) v4 = 32;
}
HXDLIN( 73) data->b[position] = ( (unsigned char)(v4) );
HXDLIN( 73) data->b[(position + 1)] = ( (unsigned char)((v4 >> 8)) );
}
HXLINE( 74) position = (position + 2);
HXLINE( 75) {
HXLINE( 75) int v5;
HXDLIN( 75) if (hx::IsEq( type,::lime::_internal::format::BMPType_obj::BITFIELD_dyn() )) {
HXLINE( 75) v5 = 3;
}
else {
HXLINE( 75) v5 = 0;
}
HXDLIN( 75) data->b[position] = ( (unsigned char)((v5 & 255)) );
HXDLIN( 75) data->b[(position + 1)] = ( (unsigned char)(((v5 >> 8) & 255)) );
HXDLIN( 75) data->b[(position + 2)] = ( (unsigned char)(((v5 >> 16) & 255)) );
HXDLIN( 75) data->b[(position + 3)] = ( (unsigned char)((hx::UShr(v5,24) & 255)) );
}
HXLINE( 76) position = (position + 4);
HXLINE( 77) {
HXLINE( 77) data->b[position] = ( (unsigned char)((pixelValuesLength & 255)) );
HXDLIN( 77) data->b[(position + 1)] = ( (unsigned char)(((pixelValuesLength >> 8) & 255)) );
HXDLIN( 77) data->b[(position + 2)] = ( (unsigned char)(((pixelValuesLength >> 16) & 255)) );
HXDLIN( 77) data->b[(position + 3)] = ( (unsigned char)((hx::UShr(pixelValuesLength,24) & 255)) );
}
HXLINE( 78) position = (position + 4);
HXLINE( 79) {
HXLINE( 79) data->b[position] = ( (unsigned char)(48) );
HXDLIN( 79) data->b[(position + 1)] = ( (unsigned char)(46) );
HXDLIN( 79) data->b[(position + 2)] = ( (unsigned char)(0) );
HXDLIN( 79) data->b[(position + 3)] = ( (unsigned char)(0) );
}
HXLINE( 80) position = (position + 4);
HXLINE( 81) {
HXLINE( 81) data->b[position] = ( (unsigned char)(48) );
HXDLIN( 81) data->b[(position + 1)] = ( (unsigned char)(46) );
HXDLIN( 81) data->b[(position + 2)] = ( (unsigned char)(0) );
HXDLIN( 81) data->b[(position + 3)] = ( (unsigned char)(0) );
}
HXLINE( 82) position = (position + 4);
HXLINE( 83) {
HXLINE( 83) data->b[position] = ( (unsigned char)(0) );
HXDLIN( 83) data->b[(position + 1)] = ( (unsigned char)(0) );
HXDLIN( 83) data->b[(position + 2)] = ( (unsigned char)(0) );
HXDLIN( 83) data->b[(position + 3)] = ( (unsigned char)(0) );
}
HXLINE( 84) position = (position + 4);
HXLINE( 85) {
HXLINE( 85) data->b[position] = ( (unsigned char)(0) );
HXDLIN( 85) data->b[(position + 1)] = ( (unsigned char)(0) );
HXDLIN( 85) data->b[(position + 2)] = ( (unsigned char)(0) );
HXDLIN( 85) data->b[(position + 3)] = ( (unsigned char)(0) );
}
HXLINE( 86) position = (position + 4);
HXLINE( 88) if (hx::IsEq( type,::lime::_internal::format::BMPType_obj::BITFIELD_dyn() )) {
HXLINE( 90) {
HXLINE( 90) data->b[position] = ( (unsigned char)(0) );
HXDLIN( 90) data->b[(position + 1)] = ( (unsigned char)(0) );
HXDLIN( 90) data->b[(position + 2)] = ( (unsigned char)(255) );
HXDLIN( 90) data->b[(position + 3)] = ( (unsigned char)(0) );
}
HXLINE( 91) position = (position + 4);
HXLINE( 92) {
HXLINE( 92) data->b[position] = ( (unsigned char)(0) );
HXDLIN( 92) data->b[(position + 1)] = ( (unsigned char)(255) );
HXDLIN( 92) data->b[(position + 2)] = ( (unsigned char)(0) );
HXDLIN( 92) data->b[(position + 3)] = ( (unsigned char)(0) );
}
HXLINE( 93) position = (position + 4);
HXLINE( 94) {
HXLINE( 94) data->b[position] = ( (unsigned char)(255) );
HXDLIN( 94) data->b[(position + 1)] = ( (unsigned char)(0) );
HXDLIN( 94) data->b[(position + 2)] = ( (unsigned char)(0) );
HXDLIN( 94) data->b[(position + 3)] = ( (unsigned char)(0) );
}
HXLINE( 95) position = (position + 4);
HXLINE( 96) {
HXLINE( 96) data->b[position] = ( (unsigned char)(0) );
HXDLIN( 96) data->b[(position + 1)] = ( (unsigned char)(0) );
HXDLIN( 96) data->b[(position + 2)] = ( (unsigned char)(0) );
HXDLIN( 96) data->b[(position + 3)] = ( (unsigned char)(255) );
}
HXLINE( 97) position = (position + 4);
HXLINE( 99) {
HXLINE( 99) position = (position + 1);
HXDLIN( 99) data->b[(position - 1)] = ( (unsigned char)(32) );
}
HXLINE( 100) {
HXLINE( 100) position = (position + 1);
HXDLIN( 100) data->b[(position - 1)] = ( (unsigned char)(110) );
}
HXLINE( 101) {
HXLINE( 101) position = (position + 1);
HXDLIN( 101) data->b[(position - 1)] = ( (unsigned char)(105) );
}
HXLINE( 102) {
HXLINE( 102) position = (position + 1);
HXDLIN( 102) data->b[(position - 1)] = ( (unsigned char)(87) );
}
HXLINE( 104) {
HXLINE( 104) int _g = 0;
HXDLIN( 104) while((_g < 48)){
HXLINE( 104) _g = (_g + 1);
HXDLIN( 104) int i = (_g - 1);
HXLINE( 106) {
HXLINE( 106) position = (position + 1);
HXDLIN( 106) data->b[(position - 1)] = ( (unsigned char)(0) );
}
}
}
}
HXLINE( 110) ::haxe::io::Bytes pixels = image->getPixels( ::lime::math::Rectangle_obj::__alloc( HX_CTX ,0,0,image->width,image->height),1);
HXLINE( 111) int readPosition = 0;
HXLINE( 112) int a;
HXDLIN( 112) int r;
HXDLIN( 112) int g;
HXDLIN( 112) int b;
HXLINE( 114) if (hx::IsNotNull( type )) {
HXLINE( 114) switch((int)(type->_hx_getIndex())){
case (int)0: {
HXLINE( 170) int _g1 = 0;
HXDLIN( 170) int _g11 = image->height;
HXDLIN( 170) while((_g1 < _g11)){
HXLINE( 170) _g1 = (_g1 + 1);
HXDLIN( 170) int y = (_g1 - 1);
HXLINE( 172) readPosition = ((((image->height - 1) - y) * 4) * image->width);
HXLINE( 174) {
HXLINE( 174) int _g2 = 0;
HXDLIN( 174) int _g12 = image->width;
HXDLIN( 174) while((_g2 < _g12)){
HXLINE( 174) _g2 = (_g2 + 1);
HXDLIN( 174) int x = (_g2 - 1);
HXLINE( 176) readPosition = (readPosition + 1);
HXDLIN( 176) a = ( (int)(pixels->b->__get((readPosition - 1))) );
HXLINE( 177) readPosition = (readPosition + 1);
HXDLIN( 177) r = ( (int)(pixels->b->__get((readPosition - 1))) );
HXLINE( 178) readPosition = (readPosition + 1);
HXDLIN( 178) g = ( (int)(pixels->b->__get((readPosition - 1))) );
HXLINE( 179) readPosition = (readPosition + 1);
HXDLIN( 179) b = ( (int)(pixels->b->__get((readPosition - 1))) );
HXLINE( 181) {
HXLINE( 181) position = (position + 1);
HXDLIN( 181) data->b[(position - 1)] = ( (unsigned char)(b) );
}
HXLINE( 182) {
HXLINE( 182) position = (position + 1);
HXDLIN( 182) data->b[(position - 1)] = ( (unsigned char)(g) );
}
HXLINE( 183) {
HXLINE( 183) position = (position + 1);
HXDLIN( 183) data->b[(position - 1)] = ( (unsigned char)(r) );
}
}
}
HXLINE( 186) {
HXLINE( 186) int _g21 = 0;
HXDLIN( 186) int _g3 = hx::Mod((image->width * 3),4);
HXDLIN( 186) while((_g21 < _g3)){
HXLINE( 186) _g21 = (_g21 + 1);
HXDLIN( 186) int i1 = (_g21 - 1);
HXLINE( 188) {
HXLINE( 188) position = (position + 1);
HXDLIN( 188) data->b[(position - 1)] = ( (unsigned char)(0) );
}
}
}
}
}
break;
case (int)1: {
HXLINE( 117) int _g4 = 0;
HXDLIN( 117) int _g13 = image->height;
HXDLIN( 117) while((_g4 < _g13)){
HXLINE( 117) _g4 = (_g4 + 1);
HXDLIN( 117) int y1 = (_g4 - 1);
HXLINE( 119) readPosition = ((((image->height - 1) - y1) * 4) * image->width);
HXLINE( 121) {
HXLINE( 121) int _g5 = 0;
HXDLIN( 121) int _g14 = image->width;
HXDLIN( 121) while((_g5 < _g14)){
HXLINE( 121) _g5 = (_g5 + 1);
HXDLIN( 121) int x1 = (_g5 - 1);
HXLINE( 123) readPosition = (readPosition + 1);
HXDLIN( 123) a = ( (int)(pixels->b->__get((readPosition - 1))) );
HXLINE( 124) readPosition = (readPosition + 1);
HXDLIN( 124) r = ( (int)(pixels->b->__get((readPosition - 1))) );
HXLINE( 125) readPosition = (readPosition + 1);
HXDLIN( 125) g = ( (int)(pixels->b->__get((readPosition - 1))) );
HXLINE( 126) readPosition = (readPosition + 1);
HXDLIN( 126) b = ( (int)(pixels->b->__get((readPosition - 1))) );
HXLINE( 128) {
HXLINE( 128) position = (position + 1);
HXDLIN( 128) data->b[(position - 1)] = ( (unsigned char)(b) );
}
HXLINE( 129) {
HXLINE( 129) position = (position + 1);
HXDLIN( 129) data->b[(position - 1)] = ( (unsigned char)(g) );
}
HXLINE( 130) {
HXLINE( 130) position = (position + 1);
HXDLIN( 130) data->b[(position - 1)] = ( (unsigned char)(r) );
}
HXLINE( 131) {
HXLINE( 131) position = (position + 1);
HXDLIN( 131) data->b[(position - 1)] = ( (unsigned char)(a) );
}
}
}
}
}
break;
case (int)2: {
HXLINE( 136) ::haxe::io::Bytes andMask = ::haxe::io::Bytes_obj::alloc((image->width * image->height));
HXLINE( 137) int maskPosition = 0;
HXLINE( 139) {
HXLINE( 139) int _g6 = 0;
HXDLIN( 139) int _g15 = image->height;
HXDLIN( 139) while((_g6 < _g15)){
HXLINE( 139) _g6 = (_g6 + 1);
HXDLIN( 139) int y2 = (_g6 - 1);
HXLINE( 141) readPosition = ((((image->height - 1) - y2) * 4) * image->width);
HXLINE( 143) {
HXLINE( 143) int _g7 = 0;
HXDLIN( 143) int _g16 = image->width;
HXDLIN( 143) while((_g7 < _g16)){
HXLINE( 143) _g7 = (_g7 + 1);
HXDLIN( 143) int x2 = (_g7 - 1);
HXLINE( 145) readPosition = (readPosition + 1);
HXDLIN( 145) a = ( (int)(pixels->b->__get((readPosition - 1))) );
HXLINE( 146) readPosition = (readPosition + 1);
HXDLIN( 146) r = ( (int)(pixels->b->__get((readPosition - 1))) );
HXLINE( 147) readPosition = (readPosition + 1);
HXDLIN( 147) g = ( (int)(pixels->b->__get((readPosition - 1))) );
HXLINE( 148) readPosition = (readPosition + 1);
HXDLIN( 148) b = ( (int)(pixels->b->__get((readPosition - 1))) );
HXLINE( 150) {
HXLINE( 150) position = (position + 1);
HXDLIN( 150) data->b[(position - 1)] = ( (unsigned char)(b) );
}
HXLINE( 151) {
HXLINE( 151) position = (position + 1);
HXDLIN( 151) data->b[(position - 1)] = ( (unsigned char)(g) );
}
HXLINE( 152) {
HXLINE( 152) position = (position + 1);
HXDLIN( 152) data->b[(position - 1)] = ( (unsigned char)(r) );
}
HXLINE( 153) {
HXLINE( 153) position = (position + 1);
HXDLIN( 153) data->b[(position - 1)] = ( (unsigned char)(a) );
}
HXLINE( 161) {
HXLINE( 161) maskPosition = (maskPosition + 1);
HXDLIN( 161) andMask->b[(maskPosition - 1)] = ( (unsigned char)(0) );
}
}
}
}
}
HXLINE( 167) data->blit(position,andMask,0,(image->width * image->height));
}
break;
}
}
HXLINE( 195) return data;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(BMP_obj,encode,return )
BMP_obj::BMP_obj()
{
}
bool BMP_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 6:
if (HX_FIELD_EQ(inName,"encode") ) { outValue = encode_dyn(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *BMP_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *BMP_obj_sStaticStorageInfo = 0;
#endif
hx::Class BMP_obj::__mClass;
static ::String BMP_obj_sStaticFields[] = {
HX_("encode",16,f2,e3,f9),
::String(null())
};
void BMP_obj::__register()
{
BMP_obj _hx_dummy;
BMP_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("lime._internal.format.BMP",f9,a1,cc,12);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &BMP_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(BMP_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< BMP_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = BMP_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = BMP_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace lime
} // end namespace _internal
} // end namespace format

View File

@@ -0,0 +1,88 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_lime__internal_format_BMPType
#include <lime/_internal/format/BMPType.h>
#endif
namespace lime{
namespace _internal{
namespace format{
::lime::_internal::format::BMPType BMPType_obj::BITFIELD;
::lime::_internal::format::BMPType BMPType_obj::ICO;
::lime::_internal::format::BMPType BMPType_obj::RGB;
bool BMPType_obj::__GetStatic(const ::String &inName, ::Dynamic &outValue, hx::PropertyAccess inCallProp)
{
if (inName==HX_("BITFIELD",cd,64,1c,af)) { outValue = BMPType_obj::BITFIELD; return true; }
if (inName==HX_("ICO",35,9f,37,00)) { outValue = BMPType_obj::ICO; return true; }
if (inName==HX_("RGB",ed,76,3e,00)) { outValue = BMPType_obj::RGB; return true; }
return super::__GetStatic(inName, outValue, inCallProp);
}
HX_DEFINE_CREATE_ENUM(BMPType_obj)
int BMPType_obj::__FindIndex(::String inName)
{
if (inName==HX_("BITFIELD",cd,64,1c,af)) return 1;
if (inName==HX_("ICO",35,9f,37,00)) return 2;
if (inName==HX_("RGB",ed,76,3e,00)) return 0;
return super::__FindIndex(inName);
}
int BMPType_obj::__FindArgCount(::String inName)
{
if (inName==HX_("BITFIELD",cd,64,1c,af)) return 0;
if (inName==HX_("ICO",35,9f,37,00)) return 0;
if (inName==HX_("RGB",ed,76,3e,00)) return 0;
return super::__FindArgCount(inName);
}
hx::Val BMPType_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
if (inName==HX_("BITFIELD",cd,64,1c,af)) return BITFIELD;
if (inName==HX_("ICO",35,9f,37,00)) return ICO;
if (inName==HX_("RGB",ed,76,3e,00)) return RGB;
return super::__Field(inName,inCallProp);
}
static ::String BMPType_obj_sStaticFields[] = {
HX_("RGB",ed,76,3e,00),
HX_("BITFIELD",cd,64,1c,af),
HX_("ICO",35,9f,37,00),
::String(null())
};
hx::Class BMPType_obj::__mClass;
Dynamic __Create_BMPType_obj() { return new BMPType_obj; }
void BMPType_obj::__register()
{
hx::Static(__mClass) = hx::_hx_RegisterClass(HX_("lime._internal.format.BMPType",53,b1,d9,82), hx::TCanCast< BMPType_obj >,BMPType_obj_sStaticFields,0,
&__Create_BMPType_obj, &__Create,
&super::__SGetClass(), &CreateBMPType_obj, 0
#ifdef HXCPP_VISIT_ALLOCS
, 0
#endif
#ifdef HXCPP_SCRIPTABLE
, 0
#endif
);
__mClass->mGetStaticField = &BMPType_obj::__GetStatic;
}
void BMPType_obj::__boot()
{
BITFIELD = hx::CreateConstEnum< BMPType_obj >(HX_("BITFIELD",cd,64,1c,af),1);
ICO = hx::CreateConstEnum< BMPType_obj >(HX_("ICO",35,9f,37,00),2);
RGB = hx::CreateConstEnum< BMPType_obj >(HX_("RGB",ed,76,3e,00),0);
}
} // end namespace lime
} // end namespace _internal
} // end namespace format

View File

@@ -0,0 +1,227 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_95f339a1d026d52c
#define INCLUDED_95f339a1d026d52c
#include "hxMath.h"
#endif
#ifndef INCLUDED_haxe_crypto_Base64
#include <haxe/crypto/Base64.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_lime__internal_format_Base64
#include <lime/_internal/format/Base64.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_26b81c39c19229fa_24_decode,"lime._internal.format.Base64","decode",0xdd48c0e1,"lime._internal.format.Base64.decode","lime/_internal/format/Base64.hx",24,0x72383064)
HX_LOCAL_STACK_FRAME(_hx_pos_26b81c39c19229fa_28_encode,"lime._internal.format.Base64","encode",0x723f55c9,"lime._internal.format.Base64.encode","lime/_internal/format/Base64.hx",28,0x72383064)
HX_LOCAL_STACK_FRAME(_hx_pos_26b81c39c19229fa_8_boot,"lime._internal.format.Base64","boot",0x79fe8525,"lime._internal.format.Base64.boot","lime/_internal/format/Base64.hx",8,0x72383064)
HX_LOCAL_STACK_FRAME(_hx_pos_26b81c39c19229fa_10_boot,"lime._internal.format.Base64","boot",0x79fe8525,"lime._internal.format.Base64.boot","lime/_internal/format/Base64.hx",10,0x72383064)
namespace lime{
namespace _internal{
namespace format{
void Base64_obj::__construct() { }
Dynamic Base64_obj::__CreateEmpty() { return new Base64_obj; }
void *Base64_obj::_hx_vtable = 0;
Dynamic Base64_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Base64_obj > _hx_result = new Base64_obj();
_hx_result->__construct();
return _hx_result;
}
bool Base64_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x7f2f9dd9;
}
::Array< ::String > Base64_obj::DICTIONARY;
::Array< ::String > Base64_obj::EXTENDED_DICTIONARY;
::haxe::io::Bytes Base64_obj::decode(::String source){
HX_STACKFRAME(&_hx_pos_26b81c39c19229fa_24_decode)
HXDLIN( 24) return ::haxe::crypto::Base64_obj::decode(source,null());
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Base64_obj,decode,return )
::String Base64_obj::encode( ::haxe::io::Bytes source){
HX_STACKFRAME(&_hx_pos_26b81c39c19229fa_28_encode)
HXLINE( 29) ::Array< ::String > result = ::Array_obj< ::String >::__new();
HXLINE( 31) ::Array< ::String > dictionary = ::lime::_internal::format::Base64_obj::DICTIONARY;
HXLINE( 32) ::Array< ::String > extendedDictionary = ::lime::_internal::format::Base64_obj::EXTENDED_DICTIONARY;
HXLINE( 34) int numBytes = source->length;
HXLINE( 35) int numInputTriplets = ::Math_obj::floor((( (Float)(numBytes) ) / ( (Float)(3) )));
HXLINE( 36) int numChunksToWrite = (numInputTriplets * 2);
HXLINE( 39) _hx_array_set_size_exact(result,(::Math_obj::ceil((( (Float)(numBytes) ) / ( (Float)(3) ))) * 2));
HXLINE( 44) int numBytesRead = 0;
HXLINE( 45) int numChunksWritten = 0;
HXLINE( 46) int inputTriplet;
HXLINE( 48) while((numChunksWritten < numChunksToWrite)){
HXLINE( 50) inputTriplet = (((( (int)(source->b->__get(numBytesRead)) ) << 16) | (( (int)(source->b->__get((numBytesRead + 1))) ) << 8)) | ( (int)(source->b->__get((numBytesRead + 2))) ));
HXLINE( 51) result[numChunksWritten] = extendedDictionary->__get(((inputTriplet >> 12) & 4095));
HXLINE( 52) result[(numChunksWritten + 1)] = extendedDictionary->__get((inputTriplet & 4095));
HXLINE( 54) numBytesRead = (numBytesRead + 3);
HXLINE( 55) numChunksWritten = (numChunksWritten + 2);
}
HXLINE( 58) switch((int)((numBytes - (numInputTriplets * 3)))){
case (int)1: {
HXLINE( 61) inputTriplet = (( (int)(source->b->__get(numBytesRead)) ) << 16);
HXLINE( 62) result[numChunksWritten] = extendedDictionary->__get(((inputTriplet >> 12) & 4095));
HXLINE( 63) result[(numChunksWritten + 1)] = HX_("==",60,35,00,00);
}
break;
case (int)2: {
HXLINE( 65) inputTriplet = ((( (int)(source->b->__get(numBytesRead)) ) << 16) | (( (int)(source->b->__get((numBytesRead + 1))) ) << 8));
HXLINE( 66) result[numChunksWritten] = extendedDictionary->__get(((inputTriplet >> 12) & 4095));
HXLINE( 67) result[(numChunksWritten + 1)] = (dictionary->__get(((inputTriplet >> 6) & 63)) + HX_("=",3d,00,00,00));
}
break;
default:{
}
}
HXLINE( 71) return result->join(HX_("",00,00,00,00));
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Base64_obj,encode,return )
Base64_obj::Base64_obj()
{
}
bool Base64_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 6:
if (HX_FIELD_EQ(inName,"decode") ) { outValue = decode_dyn(); return true; }
if (HX_FIELD_EQ(inName,"encode") ) { outValue = encode_dyn(); return true; }
break;
case 10:
if (HX_FIELD_EQ(inName,"DICTIONARY") ) { outValue = ( DICTIONARY ); return true; }
break;
case 19:
if (HX_FIELD_EQ(inName,"EXTENDED_DICTIONARY") ) { outValue = ( EXTENDED_DICTIONARY ); return true; }
}
return false;
}
bool Base64_obj::__SetStatic(const ::String &inName,Dynamic &ioValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 10:
if (HX_FIELD_EQ(inName,"DICTIONARY") ) { DICTIONARY=ioValue.Cast< ::Array< ::String > >(); return true; }
break;
case 19:
if (HX_FIELD_EQ(inName,"EXTENDED_DICTIONARY") ) { EXTENDED_DICTIONARY=ioValue.Cast< ::Array< ::String > >(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *Base64_obj_sMemberStorageInfo = 0;
static hx::StaticInfo Base64_obj_sStaticStorageInfo[] = {
{hx::fsObject /* ::Array< ::String > */ ,(void *) &Base64_obj::DICTIONARY,HX_("DICTIONARY",96,07,53,b8)},
{hx::fsObject /* ::Array< ::String > */ ,(void *) &Base64_obj::EXTENDED_DICTIONARY,HX_("EXTENDED_DICTIONARY",9c,28,29,40)},
{ hx::fsUnknown, 0, null()}
};
#endif
static void Base64_obj_sMarkStatics(HX_MARK_PARAMS) {
HX_MARK_MEMBER_NAME(Base64_obj::DICTIONARY,"DICTIONARY");
HX_MARK_MEMBER_NAME(Base64_obj::EXTENDED_DICTIONARY,"EXTENDED_DICTIONARY");
};
#ifdef HXCPP_VISIT_ALLOCS
static void Base64_obj_sVisitStatics(HX_VISIT_PARAMS) {
HX_VISIT_MEMBER_NAME(Base64_obj::DICTIONARY,"DICTIONARY");
HX_VISIT_MEMBER_NAME(Base64_obj::EXTENDED_DICTIONARY,"EXTENDED_DICTIONARY");
};
#endif
hx::Class Base64_obj::__mClass;
static ::String Base64_obj_sStaticFields[] = {
HX_("DICTIONARY",96,07,53,b8),
HX_("EXTENDED_DICTIONARY",9c,28,29,40),
HX_("decode",2e,5d,ed,64),
HX_("encode",16,f2,e3,f9),
::String(null())
};
void Base64_obj::__register()
{
Base64_obj _hx_dummy;
Base64_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("lime._internal.format.Base64",5b,04,17,60);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &Base64_obj::__GetStatic;
__mClass->mSetStaticField = &Base64_obj::__SetStatic;
__mClass->mMarkFunc = Base64_obj_sMarkStatics;
__mClass->mStatics = hx::Class_obj::dupFunctions(Base64_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< Base64_obj >;
#ifdef HXCPP_VISIT_ALLOCS
__mClass->mVisitFunc = Base64_obj_sVisitStatics;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Base64_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Base64_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
void Base64_obj::__boot()
{
{
HX_STACKFRAME(&_hx_pos_26b81c39c19229fa_8_boot)
HXDLIN( 8) DICTIONARY = HX_("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",03,41,03,7f).split(HX_("",00,00,00,00));
}
{
HX_BEGIN_LOCAL_FUNC_S0(hx::LocalFunc,_hx_Closure_0) HXARGC(0)
::Array< ::String > _hx_run(){
HX_STACKFRAME(&_hx_pos_26b81c39c19229fa_10_boot)
HXLINE( 11) ::Array< ::String > result = ::Array_obj< ::String >::__new();
HXLINE( 12) {
HXLINE( 12) int _g = 0;
HXDLIN( 12) ::Array< ::String > _g1 = ::lime::_internal::format::Base64_obj::DICTIONARY;
HXDLIN( 12) while((_g < _g1->length)){
HXLINE( 12) ::String a = _g1->__get(_g);
HXDLIN( 12) _g = (_g + 1);
HXLINE( 14) {
HXLINE( 14) int _g2 = 0;
HXDLIN( 14) ::Array< ::String > _g11 = ::lime::_internal::format::Base64_obj::DICTIONARY;
HXDLIN( 14) while((_g2 < _g11->length)){
HXLINE( 14) ::String b = _g11->__get(_g2);
HXDLIN( 14) _g2 = (_g2 + 1);
HXLINE( 16) result->push((a + b));
}
}
}
}
HXLINE( 19) return result;
}
HX_END_LOCAL_FUNC0(return)
HX_STACKFRAME(&_hx_pos_26b81c39c19229fa_10_boot)
HXDLIN( 10) EXTENDED_DICTIONARY = ( (::Array< ::String >)( ::Dynamic(new _hx_Closure_0())()) );
}
}
} // end namespace lime
} // end namespace _internal
} // end namespace format

View File

@@ -0,0 +1,110 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_lime__internal_backend_native_NativeCFFI
#include <lime/_internal/backend/native/NativeCFFI.h>
#endif
#ifndef INCLUDED_lime__internal_format_Deflate
#include <lime/_internal/format/Deflate.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_eb00e02a6b98bd42_20_compress,"lime._internal.format.Deflate","compress",0xbe9cd2d1,"lime._internal.format.Deflate.compress","lime/_internal/format/Deflate.hx",20,0xb5ff7ebe)
HX_LOCAL_STACK_FRAME(_hx_pos_eb00e02a6b98bd42_50_decompress,"lime._internal.format.Deflate","decompress",0xafce7d12,"lime._internal.format.Deflate.decompress","lime/_internal/format/Deflate.hx",50,0xb5ff7ebe)
namespace lime{
namespace _internal{
namespace format{
void Deflate_obj::__construct() { }
Dynamic Deflate_obj::__CreateEmpty() { return new Deflate_obj; }
void *Deflate_obj::_hx_vtable = 0;
Dynamic Deflate_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Deflate_obj > _hx_result = new Deflate_obj();
_hx_result->__construct();
return _hx_result;
}
bool Deflate_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x0f5e40ed;
}
::haxe::io::Bytes Deflate_obj::compress( ::haxe::io::Bytes bytes){
HX_STACKFRAME(&_hx_pos_eb00e02a6b98bd42_20_compress)
HXDLIN( 20) ::haxe::io::Bytes _hx_tmp = ::haxe::io::Bytes_obj::alloc(0);
HXDLIN( 20) return ( ( ::Dynamic)(::lime::_internal::backend::native::NativeCFFI_obj::lime_deflate_compress(hx::DynamicPtr(bytes),hx::DynamicPtr(_hx_tmp))) );
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Deflate_obj,compress,return )
::haxe::io::Bytes Deflate_obj::decompress( ::haxe::io::Bytes bytes){
HX_STACKFRAME(&_hx_pos_eb00e02a6b98bd42_50_decompress)
HXDLIN( 50) ::haxe::io::Bytes _hx_tmp = ::haxe::io::Bytes_obj::alloc(0);
HXDLIN( 50) return ( ( ::Dynamic)(::lime::_internal::backend::native::NativeCFFI_obj::lime_deflate_decompress(hx::DynamicPtr(bytes),hx::DynamicPtr(_hx_tmp))) );
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Deflate_obj,decompress,return )
Deflate_obj::Deflate_obj()
{
}
bool Deflate_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 8:
if (HX_FIELD_EQ(inName,"compress") ) { outValue = compress_dyn(); return true; }
break;
case 10:
if (HX_FIELD_EQ(inName,"decompress") ) { outValue = decompress_dyn(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *Deflate_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *Deflate_obj_sStaticStorageInfo = 0;
#endif
hx::Class Deflate_obj::__mClass;
static ::String Deflate_obj_sStaticFields[] = {
HX_("compress",a2,47,bf,83),
HX_("decompress",23,88,14,da),
::String(null())
};
void Deflate_obj::__register()
{
Deflate_obj _hx_dummy;
Deflate_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("lime._internal.format.Deflate",1f,f7,30,29);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &Deflate_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(Deflate_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< Deflate_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Deflate_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Deflate_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace lime
} // end namespace _internal
} // end namespace format

View File

@@ -0,0 +1,110 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_lime__internal_backend_native_NativeCFFI
#include <lime/_internal/backend/native/NativeCFFI.h>
#endif
#ifndef INCLUDED_lime__internal_format_GZip
#include <lime/_internal/format/GZip.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_d82d32e5304980fb_17_compress,"lime._internal.format.GZip","compress",0x187e488a,"lime._internal.format.GZip.compress","lime/_internal/format/GZip.hx",17,0xd3eb8ad9)
HX_LOCAL_STACK_FRAME(_hx_pos_d82d32e5304980fb_39_decompress,"lime._internal.format.GZip","decompress",0x5d43930b,"lime._internal.format.GZip.decompress","lime/_internal/format/GZip.hx",39,0xd3eb8ad9)
namespace lime{
namespace _internal{
namespace format{
void GZip_obj::__construct() { }
Dynamic GZip_obj::__CreateEmpty() { return new GZip_obj; }
void *GZip_obj::_hx_vtable = 0;
Dynamic GZip_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< GZip_obj > _hx_result = new GZip_obj();
_hx_result->__construct();
return _hx_result;
}
bool GZip_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x1ba74f14;
}
::haxe::io::Bytes GZip_obj::compress( ::haxe::io::Bytes bytes){
HX_STACKFRAME(&_hx_pos_d82d32e5304980fb_17_compress)
HXDLIN( 17) ::haxe::io::Bytes _hx_tmp = ::haxe::io::Bytes_obj::alloc(0);
HXDLIN( 17) return ( ( ::Dynamic)(::lime::_internal::backend::native::NativeCFFI_obj::lime_gzip_compress(hx::DynamicPtr(bytes),hx::DynamicPtr(_hx_tmp))) );
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(GZip_obj,compress,return )
::haxe::io::Bytes GZip_obj::decompress( ::haxe::io::Bytes bytes){
HX_STACKFRAME(&_hx_pos_d82d32e5304980fb_39_decompress)
HXDLIN( 39) ::haxe::io::Bytes _hx_tmp = ::haxe::io::Bytes_obj::alloc(0);
HXDLIN( 39) return ( ( ::Dynamic)(::lime::_internal::backend::native::NativeCFFI_obj::lime_gzip_decompress(hx::DynamicPtr(bytes),hx::DynamicPtr(_hx_tmp))) );
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(GZip_obj,decompress,return )
GZip_obj::GZip_obj()
{
}
bool GZip_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 8:
if (HX_FIELD_EQ(inName,"compress") ) { outValue = compress_dyn(); return true; }
break;
case 10:
if (HX_FIELD_EQ(inName,"decompress") ) { outValue = decompress_dyn(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *GZip_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *GZip_obj_sStaticStorageInfo = 0;
#endif
hx::Class GZip_obj::__mClass;
static ::String GZip_obj_sStaticFields[] = {
HX_("compress",a2,47,bf,83),
HX_("decompress",23,88,14,da),
::String(null())
};
void GZip_obj::__register()
{
GZip_obj _hx_dummy;
GZip_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("lime._internal.format.GZip",86,1c,99,63);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &GZip_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(GZip_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< GZip_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = GZip_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = GZip_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace lime
} // end namespace _internal
} // end namespace format

View File

@@ -0,0 +1,371 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_lime__internal_backend_native_NativeCFFI
#include <lime/_internal/backend/native/NativeCFFI.h>
#endif
#ifndef INCLUDED_lime__internal_format_JPEG
#include <lime/_internal/format/JPEG.h>
#endif
#ifndef INCLUDED_lime_graphics_Image
#include <lime/graphics/Image.h>
#endif
#ifndef INCLUDED_lime_graphics_ImageBuffer
#include <lime/graphics/ImageBuffer.h>
#endif
#ifndef INCLUDED_lime_graphics_ImageType
#include <lime/graphics/ImageType.h>
#endif
#ifndef INCLUDED_lime_system_CFFI
#include <lime/system/CFFI.h>
#endif
#ifndef INCLUDED_lime_utils_ArrayBufferView
#include <lime/utils/ArrayBufferView.h>
#endif
#ifndef INCLUDED_lime_utils_TAError
#include <lime/utils/TAError.h>
#endif
#ifndef INCLUDED_openfl__Vector_IVector
#include <openfl/_Vector/IVector.h>
#endif
#ifndef INCLUDED_openfl__Vector_IntVector
#include <openfl/_Vector/IntVector.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_4ccd4a1491a42735_30_decodeBytes,"lime._internal.format.JPEG","decodeBytes",0xc3347f43,"lime._internal.format.JPEG.decodeBytes","lime/_internal/format/JPEG.hx",30,0x7b93b1cb)
HX_LOCAL_STACK_FRAME(_hx_pos_4ccd4a1491a42735_55_decodeFile,"lime._internal.format.JPEG","decodeFile",0x1f05faa4,"lime._internal.format.JPEG.decodeFile","lime/_internal/format/JPEG.hx",55,0x7b93b1cb)
HX_LOCAL_STACK_FRAME(_hx_pos_4ccd4a1491a42735_80_encode,"lime._internal.format.JPEG","encode",0x45d4f0f0,"lime._internal.format.JPEG.encode","lime/_internal/format/JPEG.hx",80,0x7b93b1cb)
namespace lime{
namespace _internal{
namespace format{
void JPEG_obj::__construct() { }
Dynamic JPEG_obj::__CreateEmpty() { return new JPEG_obj; }
void *JPEG_obj::_hx_vtable = 0;
Dynamic JPEG_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< JPEG_obj > _hx_result = new JPEG_obj();
_hx_result->__construct();
return _hx_result;
}
bool JPEG_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x1d9b3ce2;
}
::lime::graphics::Image JPEG_obj::decodeBytes( ::haxe::io::Bytes bytes,hx::Null< bool > __o_decodeData){
bool decodeData = __o_decodeData.Default(true);
HX_GC_STACKFRAME(&_hx_pos_4ccd4a1491a42735_30_decodeBytes)
HXLINE( 33) ::Dynamic elements = null();
HXDLIN( 33) ::haxe::io::Bytes buffer = ::haxe::io::Bytes_obj::alloc(0);
HXDLIN( 33) ::cpp::VirtualArray array = null();
HXDLIN( 33) ::openfl::_Vector::IntVector vector = null();
HXDLIN( 33) ::lime::utils::ArrayBufferView view = null();
HXDLIN( 33) ::Dynamic len = null();
HXDLIN( 33) ::lime::utils::ArrayBufferView this1;
HXDLIN( 33) if (hx::IsNotNull( elements )) {
HXLINE( 33) this1 = ::lime::utils::ArrayBufferView_obj::__alloc( HX_CTX ,elements,4);
}
else {
HXLINE( 33) if (hx::IsNotNull( array )) {
HXLINE( 33) ::lime::utils::ArrayBufferView _this = ::lime::utils::ArrayBufferView_obj::__alloc( HX_CTX ,0,4);
HXDLIN( 33) _this->byteOffset = 0;
HXDLIN( 33) _this->length = array->get_length();
HXDLIN( 33) _this->byteLength = (_this->length * _this->bytesPerElement);
HXDLIN( 33) ::haxe::io::Bytes this2 = ::haxe::io::Bytes_obj::alloc(_this->byteLength);
HXDLIN( 33) _this->buffer = this2;
HXDLIN( 33) _this->copyFromArray(array,null());
HXDLIN( 33) this1 = _this;
}
else {
HXLINE( 33) if (hx::IsNotNull( vector )) {
HXLINE( 33) ::lime::utils::ArrayBufferView _this1 = ::lime::utils::ArrayBufferView_obj::__alloc( HX_CTX ,0,4);
HXDLIN( 33) ::cpp::VirtualArray array1 = ( (::cpp::VirtualArray)(vector->__Field(HX_("__array",79,c6,ed,8f),hx::paccDynamic)) );
HXDLIN( 33) _this1->byteOffset = 0;
HXDLIN( 33) _this1->length = array1->get_length();
HXDLIN( 33) _this1->byteLength = (_this1->length * _this1->bytesPerElement);
HXDLIN( 33) ::haxe::io::Bytes this3 = ::haxe::io::Bytes_obj::alloc(_this1->byteLength);
HXDLIN( 33) _this1->buffer = this3;
HXDLIN( 33) _this1->copyFromArray(array1,null());
HXDLIN( 33) this1 = _this1;
}
else {
HXLINE( 33) if (hx::IsNotNull( view )) {
HXLINE( 33) ::lime::utils::ArrayBufferView _this2 = ::lime::utils::ArrayBufferView_obj::__alloc( HX_CTX ,0,4);
HXDLIN( 33) ::haxe::io::Bytes srcData = view->buffer;
HXDLIN( 33) int srcLength = view->length;
HXDLIN( 33) int srcByteOffset = view->byteOffset;
HXDLIN( 33) int srcElementSize = view->bytesPerElement;
HXDLIN( 33) int elementSize = _this2->bytesPerElement;
HXDLIN( 33) if ((view->type == _this2->type)) {
HXLINE( 33) int srcLength1 = srcData->length;
HXDLIN( 33) int cloneLength = (srcLength1 - srcByteOffset);
HXDLIN( 33) ::haxe::io::Bytes this4 = ::haxe::io::Bytes_obj::alloc(cloneLength);
HXDLIN( 33) _this2->buffer = this4;
HXDLIN( 33) _this2->buffer->blit(0,srcData,srcByteOffset,cloneLength);
}
else {
HXLINE( 33) HX_STACK_DO_THROW(HX_("unimplemented",09,2f,74,b4));
}
HXDLIN( 33) _this2->byteLength = (_this2->bytesPerElement * srcLength);
HXDLIN( 33) _this2->byteOffset = 0;
HXDLIN( 33) _this2->length = srcLength;
HXDLIN( 33) this1 = _this2;
}
else {
HXLINE( 33) if (hx::IsNotNull( buffer )) {
HXLINE( 33) ::lime::utils::ArrayBufferView _this3 = ::lime::utils::ArrayBufferView_obj::__alloc( HX_CTX ,0,4);
HXDLIN( 33) int in_byteOffset = 0;
HXDLIN( 33) if ((in_byteOffset < 0)) {
HXLINE( 33) HX_STACK_DO_THROW(::lime::utils::TAError_obj::RangeError_dyn());
}
HXDLIN( 33) if ((hx::Mod(in_byteOffset,_this3->bytesPerElement) != 0)) {
HXLINE( 33) HX_STACK_DO_THROW(::lime::utils::TAError_obj::RangeError_dyn());
}
HXDLIN( 33) int bufferByteLength = buffer->length;
HXDLIN( 33) int elementSize1 = _this3->bytesPerElement;
HXDLIN( 33) int newByteLength = bufferByteLength;
HXDLIN( 33) if (hx::IsNull( len )) {
HXLINE( 33) newByteLength = (bufferByteLength - in_byteOffset);
HXDLIN( 33) if ((hx::Mod(bufferByteLength,_this3->bytesPerElement) != 0)) {
HXLINE( 33) HX_STACK_DO_THROW(::lime::utils::TAError_obj::RangeError_dyn());
}
HXDLIN( 33) if ((newByteLength < 0)) {
HXLINE( 33) HX_STACK_DO_THROW(::lime::utils::TAError_obj::RangeError_dyn());
}
}
else {
HXLINE( 33) newByteLength = (( (int)(len) ) * _this3->bytesPerElement);
HXDLIN( 33) int newRange = (in_byteOffset + newByteLength);
HXDLIN( 33) if ((newRange > bufferByteLength)) {
HXLINE( 33) HX_STACK_DO_THROW(::lime::utils::TAError_obj::RangeError_dyn());
}
}
HXDLIN( 33) _this3->buffer = buffer;
HXDLIN( 33) _this3->byteOffset = in_byteOffset;
HXDLIN( 33) _this3->byteLength = newByteLength;
HXDLIN( 33) _this3->length = ::Std_obj::_hx_int((( (Float)(newByteLength) ) / ( (Float)(_this3->bytesPerElement) )));
HXDLIN( 33) this1 = _this3;
}
else {
HXLINE( 33) HX_STACK_DO_THROW(HX_("Invalid constructor arguments for UInt8Array",6b,44,d5,85));
}
}
}
}
}
HXDLIN( 33) ::hx::Object * buffer1 = ::lime::_internal::backend::native::NativeCFFI_obj::lime_jpeg_decode_bytes(hx::DynamicPtr(bytes),decodeData,hx::DynamicPtr( ::lime::graphics::ImageBuffer_obj::__alloc( HX_CTX ,this1,null(),null(),null(),null())));
HXLINE( 35) if (hx::IsNotNull( buffer1 )) {
HXLINE( 37) return ::lime::graphics::Image_obj::__alloc( HX_CTX ,( ( ::Dynamic)(buffer1) ),null(),null(),null(),null(),null(),null());
}
HXLINE( 51) return null();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(JPEG_obj,decodeBytes,return )
::lime::graphics::Image JPEG_obj::decodeFile(::String path,hx::Null< bool > __o_decodeData){
bool decodeData = __o_decodeData.Default(true);
HX_GC_STACKFRAME(&_hx_pos_4ccd4a1491a42735_55_decodeFile)
HXLINE( 58) ::Dynamic elements = null();
HXDLIN( 58) ::haxe::io::Bytes buffer = ::haxe::io::Bytes_obj::alloc(0);
HXDLIN( 58) ::cpp::VirtualArray array = null();
HXDLIN( 58) ::openfl::_Vector::IntVector vector = null();
HXDLIN( 58) ::lime::utils::ArrayBufferView view = null();
HXDLIN( 58) ::Dynamic len = null();
HXDLIN( 58) ::lime::utils::ArrayBufferView this1;
HXDLIN( 58) if (hx::IsNotNull( elements )) {
HXLINE( 58) this1 = ::lime::utils::ArrayBufferView_obj::__alloc( HX_CTX ,elements,4);
}
else {
HXLINE( 58) if (hx::IsNotNull( array )) {
HXLINE( 58) ::lime::utils::ArrayBufferView _this = ::lime::utils::ArrayBufferView_obj::__alloc( HX_CTX ,0,4);
HXDLIN( 58) _this->byteOffset = 0;
HXDLIN( 58) _this->length = array->get_length();
HXDLIN( 58) _this->byteLength = (_this->length * _this->bytesPerElement);
HXDLIN( 58) ::haxe::io::Bytes this2 = ::haxe::io::Bytes_obj::alloc(_this->byteLength);
HXDLIN( 58) _this->buffer = this2;
HXDLIN( 58) _this->copyFromArray(array,null());
HXDLIN( 58) this1 = _this;
}
else {
HXLINE( 58) if (hx::IsNotNull( vector )) {
HXLINE( 58) ::lime::utils::ArrayBufferView _this1 = ::lime::utils::ArrayBufferView_obj::__alloc( HX_CTX ,0,4);
HXDLIN( 58) ::cpp::VirtualArray array1 = ( (::cpp::VirtualArray)(vector->__Field(HX_("__array",79,c6,ed,8f),hx::paccDynamic)) );
HXDLIN( 58) _this1->byteOffset = 0;
HXDLIN( 58) _this1->length = array1->get_length();
HXDLIN( 58) _this1->byteLength = (_this1->length * _this1->bytesPerElement);
HXDLIN( 58) ::haxe::io::Bytes this3 = ::haxe::io::Bytes_obj::alloc(_this1->byteLength);
HXDLIN( 58) _this1->buffer = this3;
HXDLIN( 58) _this1->copyFromArray(array1,null());
HXDLIN( 58) this1 = _this1;
}
else {
HXLINE( 58) if (hx::IsNotNull( view )) {
HXLINE( 58) ::lime::utils::ArrayBufferView _this2 = ::lime::utils::ArrayBufferView_obj::__alloc( HX_CTX ,0,4);
HXDLIN( 58) ::haxe::io::Bytes srcData = view->buffer;
HXDLIN( 58) int srcLength = view->length;
HXDLIN( 58) int srcByteOffset = view->byteOffset;
HXDLIN( 58) int srcElementSize = view->bytesPerElement;
HXDLIN( 58) int elementSize = _this2->bytesPerElement;
HXDLIN( 58) if ((view->type == _this2->type)) {
HXLINE( 58) int srcLength1 = srcData->length;
HXDLIN( 58) int cloneLength = (srcLength1 - srcByteOffset);
HXDLIN( 58) ::haxe::io::Bytes this4 = ::haxe::io::Bytes_obj::alloc(cloneLength);
HXDLIN( 58) _this2->buffer = this4;
HXDLIN( 58) _this2->buffer->blit(0,srcData,srcByteOffset,cloneLength);
}
else {
HXLINE( 58) HX_STACK_DO_THROW(HX_("unimplemented",09,2f,74,b4));
}
HXDLIN( 58) _this2->byteLength = (_this2->bytesPerElement * srcLength);
HXDLIN( 58) _this2->byteOffset = 0;
HXDLIN( 58) _this2->length = srcLength;
HXDLIN( 58) this1 = _this2;
}
else {
HXLINE( 58) if (hx::IsNotNull( buffer )) {
HXLINE( 58) ::lime::utils::ArrayBufferView _this3 = ::lime::utils::ArrayBufferView_obj::__alloc( HX_CTX ,0,4);
HXDLIN( 58) int in_byteOffset = 0;
HXDLIN( 58) if ((in_byteOffset < 0)) {
HXLINE( 58) HX_STACK_DO_THROW(::lime::utils::TAError_obj::RangeError_dyn());
}
HXDLIN( 58) if ((hx::Mod(in_byteOffset,_this3->bytesPerElement) != 0)) {
HXLINE( 58) HX_STACK_DO_THROW(::lime::utils::TAError_obj::RangeError_dyn());
}
HXDLIN( 58) int bufferByteLength = buffer->length;
HXDLIN( 58) int elementSize1 = _this3->bytesPerElement;
HXDLIN( 58) int newByteLength = bufferByteLength;
HXDLIN( 58) if (hx::IsNull( len )) {
HXLINE( 58) newByteLength = (bufferByteLength - in_byteOffset);
HXDLIN( 58) if ((hx::Mod(bufferByteLength,_this3->bytesPerElement) != 0)) {
HXLINE( 58) HX_STACK_DO_THROW(::lime::utils::TAError_obj::RangeError_dyn());
}
HXDLIN( 58) if ((newByteLength < 0)) {
HXLINE( 58) HX_STACK_DO_THROW(::lime::utils::TAError_obj::RangeError_dyn());
}
}
else {
HXLINE( 58) newByteLength = (( (int)(len) ) * _this3->bytesPerElement);
HXDLIN( 58) int newRange = (in_byteOffset + newByteLength);
HXDLIN( 58) if ((newRange > bufferByteLength)) {
HXLINE( 58) HX_STACK_DO_THROW(::lime::utils::TAError_obj::RangeError_dyn());
}
}
HXDLIN( 58) _this3->buffer = buffer;
HXDLIN( 58) _this3->byteOffset = in_byteOffset;
HXDLIN( 58) _this3->byteLength = newByteLength;
HXDLIN( 58) _this3->length = ::Std_obj::_hx_int((( (Float)(newByteLength) ) / ( (Float)(_this3->bytesPerElement) )));
HXDLIN( 58) this1 = _this3;
}
else {
HXLINE( 58) HX_STACK_DO_THROW(HX_("Invalid constructor arguments for UInt8Array",6b,44,d5,85));
}
}
}
}
}
HXDLIN( 58) ::hx::Object * buffer1 = ::lime::_internal::backend::native::NativeCFFI_obj::lime_jpeg_decode_file(path,decodeData,hx::DynamicPtr( ::lime::graphics::ImageBuffer_obj::__alloc( HX_CTX ,this1,null(),null(),null(),null())));
HXLINE( 60) if (hx::IsNotNull( buffer1 )) {
HXLINE( 62) return ::lime::graphics::Image_obj::__alloc( HX_CTX ,( ( ::Dynamic)(buffer1) ),null(),null(),null(),null(),null(),null());
}
HXLINE( 76) return null();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(JPEG_obj,decodeFile,return )
::haxe::io::Bytes JPEG_obj::encode( ::lime::graphics::Image image,int quality){
HX_STACKFRAME(&_hx_pos_4ccd4a1491a42735_80_encode)
HXLINE( 81) bool _hx_tmp;
HXDLIN( 81) if (!(image->get_premultiplied())) {
HXLINE( 81) _hx_tmp = (image->get_format() != 0);
}
else {
HXLINE( 81) _hx_tmp = true;
}
HXDLIN( 81) if (_hx_tmp) {
HXLINE( 85) image = image->clone();
HXLINE( 86) image->set_premultiplied(false);
HXLINE( 87) image->set_format(0);
}
HXLINE( 92) if (::lime::_hx_system::CFFI_obj::enabled) {
HXLINE( 95) ::lime::graphics::ImageBuffer image1 = image->buffer;
HXDLIN( 95) ::haxe::io::Bytes _hx_tmp1 = ::haxe::io::Bytes_obj::alloc(0);
HXDLIN( 95) return ( ( ::Dynamic)(::lime::_internal::backend::native::NativeCFFI_obj::lime_image_encode(hx::DynamicPtr(image1),1,quality,hx::DynamicPtr(_hx_tmp1))) );
}
HXLINE( 150) return null();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(JPEG_obj,encode,return )
JPEG_obj::JPEG_obj()
{
}
bool JPEG_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 6:
if (HX_FIELD_EQ(inName,"encode") ) { outValue = encode_dyn(); return true; }
break;
case 10:
if (HX_FIELD_EQ(inName,"decodeFile") ) { outValue = decodeFile_dyn(); return true; }
break;
case 11:
if (HX_FIELD_EQ(inName,"decodeBytes") ) { outValue = decodeBytes_dyn(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *JPEG_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *JPEG_obj_sStaticStorageInfo = 0;
#endif
hx::Class JPEG_obj::__mClass;
static ::String JPEG_obj_sStaticFields[] = {
HX_("decodeBytes",5d,94,b1,85),
HX_("decodeFile",ca,86,63,ce),
HX_("encode",16,f2,e3,f9),
::String(null())
};
void JPEG_obj::__register()
{
JPEG_obj _hx_dummy;
JPEG_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("lime._internal.format.JPEG",54,0a,8d,65);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &JPEG_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(JPEG_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< JPEG_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = JPEG_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = JPEG_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace lime
} // end namespace _internal
} // end namespace format

View File

@@ -0,0 +1,110 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_lime__internal_backend_native_NativeCFFI
#include <lime/_internal/backend/native/NativeCFFI.h>
#endif
#ifndef INCLUDED_lime__internal_format_LZMA
#include <lime/_internal/format/LZMA.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_335285a16ed3a766_21_compress,"lime._internal.format.LZMA","compress",0x0f40ff02,"lime._internal.format.LZMA.compress","lime/_internal/format/LZMA.hx",21,0x658d9751)
HX_LOCAL_STACK_FRAME(_hx_pos_335285a16ed3a766_44_decompress,"lime._internal.format.LZMA","decompress",0x92fad783,"lime._internal.format.LZMA.decompress","lime/_internal/format/LZMA.hx",44,0x658d9751)
namespace lime{
namespace _internal{
namespace format{
void LZMA_obj::__construct() { }
Dynamic LZMA_obj::__CreateEmpty() { return new LZMA_obj; }
void *LZMA_obj::_hx_vtable = 0;
Dynamic LZMA_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< LZMA_obj > _hx_result = new LZMA_obj();
_hx_result->__construct();
return _hx_result;
}
bool LZMA_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x1ef5479c;
}
::haxe::io::Bytes LZMA_obj::compress( ::haxe::io::Bytes bytes){
HX_STACKFRAME(&_hx_pos_335285a16ed3a766_21_compress)
HXDLIN( 21) ::haxe::io::Bytes _hx_tmp = ::haxe::io::Bytes_obj::alloc(0);
HXDLIN( 21) return ( ( ::Dynamic)(::lime::_internal::backend::native::NativeCFFI_obj::lime_lzma_compress(hx::DynamicPtr(bytes),hx::DynamicPtr(_hx_tmp))) );
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(LZMA_obj,compress,return )
::haxe::io::Bytes LZMA_obj::decompress( ::haxe::io::Bytes bytes){
HX_STACKFRAME(&_hx_pos_335285a16ed3a766_44_decompress)
HXDLIN( 44) ::haxe::io::Bytes _hx_tmp = ::haxe::io::Bytes_obj::alloc(0);
HXDLIN( 44) return ( ( ::Dynamic)(::lime::_internal::backend::native::NativeCFFI_obj::lime_lzma_decompress(hx::DynamicPtr(bytes),hx::DynamicPtr(_hx_tmp))) );
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(LZMA_obj,decompress,return )
LZMA_obj::LZMA_obj()
{
}
bool LZMA_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 8:
if (HX_FIELD_EQ(inName,"compress") ) { outValue = compress_dyn(); return true; }
break;
case 10:
if (HX_FIELD_EQ(inName,"decompress") ) { outValue = decompress_dyn(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *LZMA_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *LZMA_obj_sStaticStorageInfo = 0;
#endif
hx::Class LZMA_obj::__mClass;
static ::String LZMA_obj_sStaticFields[] = {
HX_("compress",a2,47,bf,83),
HX_("decompress",23,88,14,da),
::String(null())
};
void LZMA_obj::__register()
{
LZMA_obj _hx_dummy;
LZMA_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("lime._internal.format.LZMA",0e,15,e7,66);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &LZMA_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(LZMA_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< LZMA_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = LZMA_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = LZMA_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace lime
} // end namespace _internal
} // end namespace format

View File

@@ -0,0 +1,371 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_lime__internal_backend_native_NativeCFFI
#include <lime/_internal/backend/native/NativeCFFI.h>
#endif
#ifndef INCLUDED_lime__internal_format_PNG
#include <lime/_internal/format/PNG.h>
#endif
#ifndef INCLUDED_lime_graphics_Image
#include <lime/graphics/Image.h>
#endif
#ifndef INCLUDED_lime_graphics_ImageBuffer
#include <lime/graphics/ImageBuffer.h>
#endif
#ifndef INCLUDED_lime_graphics_ImageType
#include <lime/graphics/ImageType.h>
#endif
#ifndef INCLUDED_lime_system_CFFI
#include <lime/system/CFFI.h>
#endif
#ifndef INCLUDED_lime_utils_ArrayBufferView
#include <lime/utils/ArrayBufferView.h>
#endif
#ifndef INCLUDED_lime_utils_TAError
#include <lime/utils/TAError.h>
#endif
#ifndef INCLUDED_openfl__Vector_IVector
#include <openfl/_Vector/IVector.h>
#endif
#ifndef INCLUDED_openfl__Vector_IntVector
#include <openfl/_Vector/IntVector.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_4cd2471e08407622_30_decodeBytes,"lime._internal.format.PNG","decodeBytes",0xc6b720cc,"lime._internal.format.PNG.decodeBytes","lime/_internal/format/PNG.hx",30,0x83b9c2c0)
HX_LOCAL_STACK_FRAME(_hx_pos_4cd2471e08407622_55_decodeFile,"lime._internal.format.PNG","decodeFile",0x71b19d3b,"lime._internal.format.PNG.decodeFile","lime/_internal/format/PNG.hx",55,0x83b9c2c0)
HX_LOCAL_STACK_FRAME(_hx_pos_4cd2471e08407622_80_encode,"lime._internal.format.PNG","encode",0x4187bc07,"lime._internal.format.PNG.encode","lime/_internal/format/PNG.hx",80,0x83b9c2c0)
namespace lime{
namespace _internal{
namespace format{
void PNG_obj::__construct() { }
Dynamic PNG_obj::__CreateEmpty() { return new PNG_obj; }
void *PNG_obj::_hx_vtable = 0;
Dynamic PNG_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< PNG_obj > _hx_result = new PNG_obj();
_hx_result->__construct();
return _hx_result;
}
bool PNG_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x214c0d2b;
}
::lime::graphics::Image PNG_obj::decodeBytes( ::haxe::io::Bytes bytes,hx::Null< bool > __o_decodeData){
bool decodeData = __o_decodeData.Default(true);
HX_GC_STACKFRAME(&_hx_pos_4cd2471e08407622_30_decodeBytes)
HXLINE( 33) ::Dynamic elements = null();
HXDLIN( 33) ::haxe::io::Bytes buffer = ::haxe::io::Bytes_obj::alloc(0);
HXDLIN( 33) ::cpp::VirtualArray array = null();
HXDLIN( 33) ::openfl::_Vector::IntVector vector = null();
HXDLIN( 33) ::lime::utils::ArrayBufferView view = null();
HXDLIN( 33) ::Dynamic len = null();
HXDLIN( 33) ::lime::utils::ArrayBufferView this1;
HXDLIN( 33) if (hx::IsNotNull( elements )) {
HXLINE( 33) this1 = ::lime::utils::ArrayBufferView_obj::__alloc( HX_CTX ,elements,4);
}
else {
HXLINE( 33) if (hx::IsNotNull( array )) {
HXLINE( 33) ::lime::utils::ArrayBufferView _this = ::lime::utils::ArrayBufferView_obj::__alloc( HX_CTX ,0,4);
HXDLIN( 33) _this->byteOffset = 0;
HXDLIN( 33) _this->length = array->get_length();
HXDLIN( 33) _this->byteLength = (_this->length * _this->bytesPerElement);
HXDLIN( 33) ::haxe::io::Bytes this2 = ::haxe::io::Bytes_obj::alloc(_this->byteLength);
HXDLIN( 33) _this->buffer = this2;
HXDLIN( 33) _this->copyFromArray(array,null());
HXDLIN( 33) this1 = _this;
}
else {
HXLINE( 33) if (hx::IsNotNull( vector )) {
HXLINE( 33) ::lime::utils::ArrayBufferView _this1 = ::lime::utils::ArrayBufferView_obj::__alloc( HX_CTX ,0,4);
HXDLIN( 33) ::cpp::VirtualArray array1 = ( (::cpp::VirtualArray)(vector->__Field(HX_("__array",79,c6,ed,8f),hx::paccDynamic)) );
HXDLIN( 33) _this1->byteOffset = 0;
HXDLIN( 33) _this1->length = array1->get_length();
HXDLIN( 33) _this1->byteLength = (_this1->length * _this1->bytesPerElement);
HXDLIN( 33) ::haxe::io::Bytes this3 = ::haxe::io::Bytes_obj::alloc(_this1->byteLength);
HXDLIN( 33) _this1->buffer = this3;
HXDLIN( 33) _this1->copyFromArray(array1,null());
HXDLIN( 33) this1 = _this1;
}
else {
HXLINE( 33) if (hx::IsNotNull( view )) {
HXLINE( 33) ::lime::utils::ArrayBufferView _this2 = ::lime::utils::ArrayBufferView_obj::__alloc( HX_CTX ,0,4);
HXDLIN( 33) ::haxe::io::Bytes srcData = view->buffer;
HXDLIN( 33) int srcLength = view->length;
HXDLIN( 33) int srcByteOffset = view->byteOffset;
HXDLIN( 33) int srcElementSize = view->bytesPerElement;
HXDLIN( 33) int elementSize = _this2->bytesPerElement;
HXDLIN( 33) if ((view->type == _this2->type)) {
HXLINE( 33) int srcLength1 = srcData->length;
HXDLIN( 33) int cloneLength = (srcLength1 - srcByteOffset);
HXDLIN( 33) ::haxe::io::Bytes this4 = ::haxe::io::Bytes_obj::alloc(cloneLength);
HXDLIN( 33) _this2->buffer = this4;
HXDLIN( 33) _this2->buffer->blit(0,srcData,srcByteOffset,cloneLength);
}
else {
HXLINE( 33) HX_STACK_DO_THROW(HX_("unimplemented",09,2f,74,b4));
}
HXDLIN( 33) _this2->byteLength = (_this2->bytesPerElement * srcLength);
HXDLIN( 33) _this2->byteOffset = 0;
HXDLIN( 33) _this2->length = srcLength;
HXDLIN( 33) this1 = _this2;
}
else {
HXLINE( 33) if (hx::IsNotNull( buffer )) {
HXLINE( 33) ::lime::utils::ArrayBufferView _this3 = ::lime::utils::ArrayBufferView_obj::__alloc( HX_CTX ,0,4);
HXDLIN( 33) int in_byteOffset = 0;
HXDLIN( 33) if ((in_byteOffset < 0)) {
HXLINE( 33) HX_STACK_DO_THROW(::lime::utils::TAError_obj::RangeError_dyn());
}
HXDLIN( 33) if ((hx::Mod(in_byteOffset,_this3->bytesPerElement) != 0)) {
HXLINE( 33) HX_STACK_DO_THROW(::lime::utils::TAError_obj::RangeError_dyn());
}
HXDLIN( 33) int bufferByteLength = buffer->length;
HXDLIN( 33) int elementSize1 = _this3->bytesPerElement;
HXDLIN( 33) int newByteLength = bufferByteLength;
HXDLIN( 33) if (hx::IsNull( len )) {
HXLINE( 33) newByteLength = (bufferByteLength - in_byteOffset);
HXDLIN( 33) if ((hx::Mod(bufferByteLength,_this3->bytesPerElement) != 0)) {
HXLINE( 33) HX_STACK_DO_THROW(::lime::utils::TAError_obj::RangeError_dyn());
}
HXDLIN( 33) if ((newByteLength < 0)) {
HXLINE( 33) HX_STACK_DO_THROW(::lime::utils::TAError_obj::RangeError_dyn());
}
}
else {
HXLINE( 33) newByteLength = (( (int)(len) ) * _this3->bytesPerElement);
HXDLIN( 33) int newRange = (in_byteOffset + newByteLength);
HXDLIN( 33) if ((newRange > bufferByteLength)) {
HXLINE( 33) HX_STACK_DO_THROW(::lime::utils::TAError_obj::RangeError_dyn());
}
}
HXDLIN( 33) _this3->buffer = buffer;
HXDLIN( 33) _this3->byteOffset = in_byteOffset;
HXDLIN( 33) _this3->byteLength = newByteLength;
HXDLIN( 33) _this3->length = ::Std_obj::_hx_int((( (Float)(newByteLength) ) / ( (Float)(_this3->bytesPerElement) )));
HXDLIN( 33) this1 = _this3;
}
else {
HXLINE( 33) HX_STACK_DO_THROW(HX_("Invalid constructor arguments for UInt8Array",6b,44,d5,85));
}
}
}
}
}
HXDLIN( 33) ::hx::Object * buffer1 = ::lime::_internal::backend::native::NativeCFFI_obj::lime_png_decode_bytes(hx::DynamicPtr(bytes),decodeData,hx::DynamicPtr( ::lime::graphics::ImageBuffer_obj::__alloc( HX_CTX ,this1,null(),null(),null(),null())));
HXLINE( 35) if (hx::IsNotNull( buffer1 )) {
HXLINE( 37) return ::lime::graphics::Image_obj::__alloc( HX_CTX ,( ( ::Dynamic)(buffer1) ),null(),null(),null(),null(),null(),null());
}
HXLINE( 51) return null();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(PNG_obj,decodeBytes,return )
::lime::graphics::Image PNG_obj::decodeFile(::String path,hx::Null< bool > __o_decodeData){
bool decodeData = __o_decodeData.Default(true);
HX_GC_STACKFRAME(&_hx_pos_4cd2471e08407622_55_decodeFile)
HXLINE( 58) ::Dynamic elements = null();
HXDLIN( 58) ::haxe::io::Bytes buffer = ::haxe::io::Bytes_obj::alloc(0);
HXDLIN( 58) ::cpp::VirtualArray array = null();
HXDLIN( 58) ::openfl::_Vector::IntVector vector = null();
HXDLIN( 58) ::lime::utils::ArrayBufferView view = null();
HXDLIN( 58) ::Dynamic len = null();
HXDLIN( 58) ::lime::utils::ArrayBufferView this1;
HXDLIN( 58) if (hx::IsNotNull( elements )) {
HXLINE( 58) this1 = ::lime::utils::ArrayBufferView_obj::__alloc( HX_CTX ,elements,4);
}
else {
HXLINE( 58) if (hx::IsNotNull( array )) {
HXLINE( 58) ::lime::utils::ArrayBufferView _this = ::lime::utils::ArrayBufferView_obj::__alloc( HX_CTX ,0,4);
HXDLIN( 58) _this->byteOffset = 0;
HXDLIN( 58) _this->length = array->get_length();
HXDLIN( 58) _this->byteLength = (_this->length * _this->bytesPerElement);
HXDLIN( 58) ::haxe::io::Bytes this2 = ::haxe::io::Bytes_obj::alloc(_this->byteLength);
HXDLIN( 58) _this->buffer = this2;
HXDLIN( 58) _this->copyFromArray(array,null());
HXDLIN( 58) this1 = _this;
}
else {
HXLINE( 58) if (hx::IsNotNull( vector )) {
HXLINE( 58) ::lime::utils::ArrayBufferView _this1 = ::lime::utils::ArrayBufferView_obj::__alloc( HX_CTX ,0,4);
HXDLIN( 58) ::cpp::VirtualArray array1 = ( (::cpp::VirtualArray)(vector->__Field(HX_("__array",79,c6,ed,8f),hx::paccDynamic)) );
HXDLIN( 58) _this1->byteOffset = 0;
HXDLIN( 58) _this1->length = array1->get_length();
HXDLIN( 58) _this1->byteLength = (_this1->length * _this1->bytesPerElement);
HXDLIN( 58) ::haxe::io::Bytes this3 = ::haxe::io::Bytes_obj::alloc(_this1->byteLength);
HXDLIN( 58) _this1->buffer = this3;
HXDLIN( 58) _this1->copyFromArray(array1,null());
HXDLIN( 58) this1 = _this1;
}
else {
HXLINE( 58) if (hx::IsNotNull( view )) {
HXLINE( 58) ::lime::utils::ArrayBufferView _this2 = ::lime::utils::ArrayBufferView_obj::__alloc( HX_CTX ,0,4);
HXDLIN( 58) ::haxe::io::Bytes srcData = view->buffer;
HXDLIN( 58) int srcLength = view->length;
HXDLIN( 58) int srcByteOffset = view->byteOffset;
HXDLIN( 58) int srcElementSize = view->bytesPerElement;
HXDLIN( 58) int elementSize = _this2->bytesPerElement;
HXDLIN( 58) if ((view->type == _this2->type)) {
HXLINE( 58) int srcLength1 = srcData->length;
HXDLIN( 58) int cloneLength = (srcLength1 - srcByteOffset);
HXDLIN( 58) ::haxe::io::Bytes this4 = ::haxe::io::Bytes_obj::alloc(cloneLength);
HXDLIN( 58) _this2->buffer = this4;
HXDLIN( 58) _this2->buffer->blit(0,srcData,srcByteOffset,cloneLength);
}
else {
HXLINE( 58) HX_STACK_DO_THROW(HX_("unimplemented",09,2f,74,b4));
}
HXDLIN( 58) _this2->byteLength = (_this2->bytesPerElement * srcLength);
HXDLIN( 58) _this2->byteOffset = 0;
HXDLIN( 58) _this2->length = srcLength;
HXDLIN( 58) this1 = _this2;
}
else {
HXLINE( 58) if (hx::IsNotNull( buffer )) {
HXLINE( 58) ::lime::utils::ArrayBufferView _this3 = ::lime::utils::ArrayBufferView_obj::__alloc( HX_CTX ,0,4);
HXDLIN( 58) int in_byteOffset = 0;
HXDLIN( 58) if ((in_byteOffset < 0)) {
HXLINE( 58) HX_STACK_DO_THROW(::lime::utils::TAError_obj::RangeError_dyn());
}
HXDLIN( 58) if ((hx::Mod(in_byteOffset,_this3->bytesPerElement) != 0)) {
HXLINE( 58) HX_STACK_DO_THROW(::lime::utils::TAError_obj::RangeError_dyn());
}
HXDLIN( 58) int bufferByteLength = buffer->length;
HXDLIN( 58) int elementSize1 = _this3->bytesPerElement;
HXDLIN( 58) int newByteLength = bufferByteLength;
HXDLIN( 58) if (hx::IsNull( len )) {
HXLINE( 58) newByteLength = (bufferByteLength - in_byteOffset);
HXDLIN( 58) if ((hx::Mod(bufferByteLength,_this3->bytesPerElement) != 0)) {
HXLINE( 58) HX_STACK_DO_THROW(::lime::utils::TAError_obj::RangeError_dyn());
}
HXDLIN( 58) if ((newByteLength < 0)) {
HXLINE( 58) HX_STACK_DO_THROW(::lime::utils::TAError_obj::RangeError_dyn());
}
}
else {
HXLINE( 58) newByteLength = (( (int)(len) ) * _this3->bytesPerElement);
HXDLIN( 58) int newRange = (in_byteOffset + newByteLength);
HXDLIN( 58) if ((newRange > bufferByteLength)) {
HXLINE( 58) HX_STACK_DO_THROW(::lime::utils::TAError_obj::RangeError_dyn());
}
}
HXDLIN( 58) _this3->buffer = buffer;
HXDLIN( 58) _this3->byteOffset = in_byteOffset;
HXDLIN( 58) _this3->byteLength = newByteLength;
HXDLIN( 58) _this3->length = ::Std_obj::_hx_int((( (Float)(newByteLength) ) / ( (Float)(_this3->bytesPerElement) )));
HXDLIN( 58) this1 = _this3;
}
else {
HXLINE( 58) HX_STACK_DO_THROW(HX_("Invalid constructor arguments for UInt8Array",6b,44,d5,85));
}
}
}
}
}
HXDLIN( 58) ::hx::Object * buffer1 = ::lime::_internal::backend::native::NativeCFFI_obj::lime_png_decode_file(path,decodeData,hx::DynamicPtr( ::lime::graphics::ImageBuffer_obj::__alloc( HX_CTX ,this1,null(),null(),null(),null())));
HXLINE( 60) if (hx::IsNotNull( buffer1 )) {
HXLINE( 62) return ::lime::graphics::Image_obj::__alloc( HX_CTX ,( ( ::Dynamic)(buffer1) ),null(),null(),null(),null(),null(),null());
}
HXLINE( 76) return null();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(PNG_obj,decodeFile,return )
::haxe::io::Bytes PNG_obj::encode( ::lime::graphics::Image image){
HX_STACKFRAME(&_hx_pos_4cd2471e08407622_80_encode)
HXLINE( 81) bool _hx_tmp;
HXDLIN( 81) if (!(image->get_premultiplied())) {
HXLINE( 81) _hx_tmp = (image->get_format() != 0);
}
else {
HXLINE( 81) _hx_tmp = true;
}
HXDLIN( 81) if (_hx_tmp) {
HXLINE( 85) image = image->clone();
HXLINE( 86) image->set_premultiplied(false);
HXLINE( 87) image->set_format(0);
}
HXLINE( 92) if (::lime::_hx_system::CFFI_obj::enabled) {
HXLINE( 95) ::lime::graphics::ImageBuffer image1 = image->buffer;
HXDLIN( 95) ::haxe::io::Bytes _hx_tmp1 = ::haxe::io::Bytes_obj::alloc(0);
HXDLIN( 95) return ( ( ::Dynamic)(::lime::_internal::backend::native::NativeCFFI_obj::lime_image_encode(hx::DynamicPtr(image1),0,0,hx::DynamicPtr(_hx_tmp1))) );
}
HXLINE( 166) return null();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(PNG_obj,encode,return )
PNG_obj::PNG_obj()
{
}
bool PNG_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 6:
if (HX_FIELD_EQ(inName,"encode") ) { outValue = encode_dyn(); return true; }
break;
case 10:
if (HX_FIELD_EQ(inName,"decodeFile") ) { outValue = decodeFile_dyn(); return true; }
break;
case 11:
if (HX_FIELD_EQ(inName,"decodeBytes") ) { outValue = decodeBytes_dyn(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *PNG_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *PNG_obj_sStaticStorageInfo = 0;
#endif
hx::Class PNG_obj::__mClass;
static ::String PNG_obj_sStaticFields[] = {
HX_("decodeBytes",5d,94,b1,85),
HX_("decodeFile",ca,86,63,ce),
HX_("encode",16,f2,e3,f9),
::String(null())
};
void PNG_obj::__register()
{
PNG_obj _hx_dummy;
PNG_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("lime._internal.format.PNG",5d,42,d7,12);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &PNG_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(PNG_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< PNG_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = PNG_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = PNG_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace lime
} // end namespace _internal
} // end namespace format

View File

@@ -0,0 +1,110 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_lime__internal_backend_native_NativeCFFI
#include <lime/_internal/backend/native/NativeCFFI.h>
#endif
#ifndef INCLUDED_lime__internal_format_Zlib
#include <lime/_internal/format/Zlib.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_1e53264516846038_20_compress,"lime._internal.format.Zlib","compress",0x612ac019,"lime._internal.format.Zlib.compress","lime/_internal/format/Zlib.hx",20,0x132edd28)
HX_LOCAL_STACK_FRAME(_hx_pos_1e53264516846038_50_decompress,"lime._internal.format.Zlib","decompress",0x83a84c5a,"lime._internal.format.Zlib.decompress","lime/_internal/format/Zlib.hx",50,0x132edd28)
namespace lime{
namespace _internal{
namespace format{
void Zlib_obj::__construct() { }
Dynamic Zlib_obj::__CreateEmpty() { return new Zlib_obj; }
void *Zlib_obj::_hx_vtable = 0;
Dynamic Zlib_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< Zlib_obj > _hx_result = new Zlib_obj();
_hx_result->__construct();
return _hx_result;
}
bool Zlib_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x07f27c49;
}
::haxe::io::Bytes Zlib_obj::compress( ::haxe::io::Bytes bytes){
HX_STACKFRAME(&_hx_pos_1e53264516846038_20_compress)
HXDLIN( 20) ::haxe::io::Bytes _hx_tmp = ::haxe::io::Bytes_obj::alloc(0);
HXDLIN( 20) return ( ( ::Dynamic)(::lime::_internal::backend::native::NativeCFFI_obj::lime_zlib_compress(hx::DynamicPtr(bytes),hx::DynamicPtr(_hx_tmp))) );
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Zlib_obj,compress,return )
::haxe::io::Bytes Zlib_obj::decompress( ::haxe::io::Bytes bytes){
HX_STACKFRAME(&_hx_pos_1e53264516846038_50_decompress)
HXDLIN( 50) ::haxe::io::Bytes _hx_tmp = ::haxe::io::Bytes_obj::alloc(0);
HXDLIN( 50) return ( ( ::Dynamic)(::lime::_internal::backend::native::NativeCFFI_obj::lime_zlib_decompress(hx::DynamicPtr(bytes),hx::DynamicPtr(_hx_tmp))) );
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(Zlib_obj,decompress,return )
Zlib_obj::Zlib_obj()
{
}
bool Zlib_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 8:
if (HX_FIELD_EQ(inName,"compress") ) { outValue = compress_dyn(); return true; }
break;
case 10:
if (HX_FIELD_EQ(inName,"decompress") ) { outValue = decompress_dyn(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *Zlib_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *Zlib_obj_sStaticStorageInfo = 0;
#endif
hx::Class Zlib_obj::__mClass;
static ::String Zlib_obj_sStaticFields[] = {
HX_("compress",a2,47,bf,83),
HX_("decompress",23,88,14,da),
::String(null())
};
void Zlib_obj::__register()
{
Zlib_obj _hx_dummy;
Zlib_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("lime._internal.format.Zlib",d7,d2,35,70);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &Zlib_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(Zlib_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< Zlib_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = Zlib_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = Zlib_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace lime
} // end namespace _internal
} // end namespace format

View File

@@ -0,0 +1,145 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_lime__internal_graphics_BlurStack
#include <lime/_internal/graphics/BlurStack.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_03d4cd0e01152a25_248_new,"lime._internal.graphics.BlurStack","new",0xf9e2749b,"lime._internal.graphics.BlurStack.new","lime/_internal/graphics/StackBlur.hx",248,0x80163c06)
namespace lime{
namespace _internal{
namespace graphics{
void BlurStack_obj::__construct(){
HX_STACKFRAME(&_hx_pos_03d4cd0e01152a25_248_new)
HXLINE( 249) this->r = 0;
HXLINE( 250) this->g = 0;
HXLINE( 251) this->b = 0;
HXLINE( 252) this->a = 0;
HXLINE( 253) this->n = null();
}
Dynamic BlurStack_obj::__CreateEmpty() { return new BlurStack_obj; }
void *BlurStack_obj::_hx_vtable = 0;
Dynamic BlurStack_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< BlurStack_obj > _hx_result = new BlurStack_obj();
_hx_result->__construct();
return _hx_result;
}
bool BlurStack_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x35e83ab3;
}
BlurStack_obj::BlurStack_obj()
{
}
void BlurStack_obj::__Mark(HX_MARK_PARAMS)
{
HX_MARK_BEGIN_CLASS(BlurStack);
HX_MARK_MEMBER_NAME(r,"r");
HX_MARK_MEMBER_NAME(g,"g");
HX_MARK_MEMBER_NAME(b,"b");
HX_MARK_MEMBER_NAME(a,"a");
HX_MARK_MEMBER_NAME(n,"n");
HX_MARK_END_CLASS();
}
void BlurStack_obj::__Visit(HX_VISIT_PARAMS)
{
HX_VISIT_MEMBER_NAME(r,"r");
HX_VISIT_MEMBER_NAME(g,"g");
HX_VISIT_MEMBER_NAME(b,"b");
HX_VISIT_MEMBER_NAME(a,"a");
HX_VISIT_MEMBER_NAME(n,"n");
}
hx::Val BlurStack_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"r") ) { return hx::Val( r ); }
if (HX_FIELD_EQ(inName,"g") ) { return hx::Val( g ); }
if (HX_FIELD_EQ(inName,"b") ) { return hx::Val( b ); }
if (HX_FIELD_EQ(inName,"a") ) { return hx::Val( a ); }
if (HX_FIELD_EQ(inName,"n") ) { return hx::Val( n ); }
}
return super::__Field(inName,inCallProp);
}
hx::Val BlurStack_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 1:
if (HX_FIELD_EQ(inName,"r") ) { r=inValue.Cast< int >(); return inValue; }
if (HX_FIELD_EQ(inName,"g") ) { g=inValue.Cast< int >(); return inValue; }
if (HX_FIELD_EQ(inName,"b") ) { b=inValue.Cast< int >(); return inValue; }
if (HX_FIELD_EQ(inName,"a") ) { a=inValue.Cast< int >(); return inValue; }
if (HX_FIELD_EQ(inName,"n") ) { n=inValue.Cast< ::lime::_internal::graphics::BlurStack >(); return inValue; }
}
return super::__SetField(inName,inValue,inCallProp);
}
void BlurStack_obj::__GetFields(Array< ::String> &outFields)
{
outFields->push(HX_("r",72,00,00,00));
outFields->push(HX_("g",67,00,00,00));
outFields->push(HX_("b",62,00,00,00));
outFields->push(HX_("a",61,00,00,00));
outFields->push(HX_("n",6e,00,00,00));
super::__GetFields(outFields);
};
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo BlurStack_obj_sMemberStorageInfo[] = {
{hx::fsInt,(int)offsetof(BlurStack_obj,r),HX_("r",72,00,00,00)},
{hx::fsInt,(int)offsetof(BlurStack_obj,g),HX_("g",67,00,00,00)},
{hx::fsInt,(int)offsetof(BlurStack_obj,b),HX_("b",62,00,00,00)},
{hx::fsInt,(int)offsetof(BlurStack_obj,a),HX_("a",61,00,00,00)},
{hx::fsObject /* ::lime::_internal::graphics::BlurStack */ ,(int)offsetof(BlurStack_obj,n),HX_("n",6e,00,00,00)},
{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo *BlurStack_obj_sStaticStorageInfo = 0;
#endif
static ::String BlurStack_obj_sMemberFields[] = {
HX_("r",72,00,00,00),
HX_("g",67,00,00,00),
HX_("b",62,00,00,00),
HX_("a",61,00,00,00),
HX_("n",6e,00,00,00),
::String(null()) };
hx::Class BlurStack_obj::__mClass;
void BlurStack_obj::__register()
{
BlurStack_obj _hx_dummy;
BlurStack_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("lime._internal.graphics.BlurStack",29,8b,97,75);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
__mClass->mMembers = hx::Class_obj::dupFunctions(BlurStack_obj_sMemberFields);
__mClass->mCanCast = hx::TCanCast< BlurStack_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = BlurStack_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = BlurStack_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace lime
} // end namespace _internal
} // end namespace graphics

View File

@@ -0,0 +1,542 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_lime__internal_graphics_ImageCanvasUtil
#include <lime/_internal/graphics/ImageCanvasUtil.h>
#endif
#ifndef INCLUDED_lime__internal_graphics_ImageDataUtil
#include <lime/_internal/graphics/ImageDataUtil.h>
#endif
#ifndef INCLUDED_lime_graphics_Image
#include <lime/graphics/Image.h>
#endif
#ifndef INCLUDED_lime_graphics_ImageBuffer
#include <lime/graphics/ImageBuffer.h>
#endif
#ifndef INCLUDED_lime_graphics_ImageChannel
#include <lime/graphics/ImageChannel.h>
#endif
#ifndef INCLUDED_lime_graphics_ImageType
#include <lime/graphics/ImageType.h>
#endif
#ifndef INCLUDED_lime_math_Rectangle
#include <lime/math/Rectangle.h>
#endif
#ifndef INCLUDED_lime_math_Vector2
#include <lime/math/Vector2.h>
#endif
#ifndef INCLUDED_lime_system_Endian
#include <lime/system/Endian.h>
#endif
#ifndef INCLUDED_lime_utils_ArrayBufferView
#include <lime/utils/ArrayBufferView.h>
#endif
#ifndef INCLUDED_lime_utils_BytePointerData
#include <lime/utils/BytePointerData.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_c961afc6e6a20fc0_23_colorTransform,"lime._internal.graphics.ImageCanvasUtil","colorTransform",0xe9ebc69a,"lime._internal.graphics.ImageCanvasUtil.colorTransform","lime/_internal/graphics/ImageCanvasUtil.hx",23,0x04a6dce0)
HX_LOCAL_STACK_FRAME(_hx_pos_c961afc6e6a20fc0_75_convertToCanvas,"lime._internal.graphics.ImageCanvasUtil","convertToCanvas",0xeeada195,"lime._internal.graphics.ImageCanvasUtil.convertToCanvas","lime/_internal/graphics/ImageCanvasUtil.hx",75,0x04a6dce0)
HX_LOCAL_STACK_FRAME(_hx_pos_c961afc6e6a20fc0_79_convertToData,"lime._internal.graphics.ImageCanvasUtil","convertToData",0xc05d09a7,"lime._internal.graphics.ImageCanvasUtil.convertToData","lime/_internal/graphics/ImageCanvasUtil.hx",79,0x04a6dce0)
HX_LOCAL_STACK_FRAME(_hx_pos_c961afc6e6a20fc0_120_copyChannel,"lime._internal.graphics.ImageCanvasUtil","copyChannel",0xf1dde9dd,"lime._internal.graphics.ImageCanvasUtil.copyChannel","lime/_internal/graphics/ImageCanvasUtil.hx",120,0x04a6dce0)
HX_LOCAL_STACK_FRAME(_hx_pos_c961afc6e6a20fc0_129_copyPixels,"lime._internal.graphics.ImageCanvasUtil","copyPixels",0xfc2f2753,"lime._internal.graphics.ImageCanvasUtil.copyPixels","lime/_internal/graphics/ImageCanvasUtil.hx",129,0x04a6dce0)
HX_LOCAL_STACK_FRAME(_hx_pos_c961afc6e6a20fc0_180_createCanvas,"lime._internal.graphics.ImageCanvasUtil","createCanvas",0x241eedc5,"lime._internal.graphics.ImageCanvasUtil.createCanvas","lime/_internal/graphics/ImageCanvasUtil.hx",180,0x04a6dce0)
HX_LOCAL_STACK_FRAME(_hx_pos_c961afc6e6a20fc0_204_createImageData,"lime._internal.graphics.ImageCanvasUtil","createImageData",0x9f51e458,"lime._internal.graphics.ImageCanvasUtil.createImageData","lime/_internal/graphics/ImageCanvasUtil.hx",204,0x04a6dce0)
HX_LOCAL_STACK_FRAME(_hx_pos_c961afc6e6a20fc0_226_fillRect,"lime._internal.graphics.ImageCanvasUtil","fillRect",0xcb6da198,"lime._internal.graphics.ImageCanvasUtil.fillRect","lime/_internal/graphics/ImageCanvasUtil.hx",226,0x04a6dce0)
HX_LOCAL_STACK_FRAME(_hx_pos_c961afc6e6a20fc0_271_floodFill,"lime._internal.graphics.ImageCanvasUtil","floodFill",0xd8a6edf0,"lime._internal.graphics.ImageCanvasUtil.floodFill","lime/_internal/graphics/ImageCanvasUtil.hx",271,0x04a6dce0)
HX_LOCAL_STACK_FRAME(_hx_pos_c961afc6e6a20fc0_278_getPixel,"lime._internal.graphics.ImageCanvasUtil","getPixel",0x812f3261,"lime._internal.graphics.ImageCanvasUtil.getPixel","lime/_internal/graphics/ImageCanvasUtil.hx",278,0x04a6dce0)
HX_LOCAL_STACK_FRAME(_hx_pos_c961afc6e6a20fc0_285_getPixel32,"lime._internal.graphics.ImageCanvasUtil","getPixel32",0x91297940,"lime._internal.graphics.ImageCanvasUtil.getPixel32","lime/_internal/graphics/ImageCanvasUtil.hx",285,0x04a6dce0)
HX_LOCAL_STACK_FRAME(_hx_pos_c961afc6e6a20fc0_292_getPixels,"lime._internal.graphics.ImageCanvasUtil","getPixels",0x881ce2f2,"lime._internal.graphics.ImageCanvasUtil.getPixels","lime/_internal/graphics/ImageCanvasUtil.hx",292,0x04a6dce0)
HX_LOCAL_STACK_FRAME(_hx_pos_c961afc6e6a20fc0_300_merge,"lime._internal.graphics.ImageCanvasUtil","merge",0x56f8d9c7,"lime._internal.graphics.ImageCanvasUtil.merge","lime/_internal/graphics/ImageCanvasUtil.hx",300,0x04a6dce0)
HX_LOCAL_STACK_FRAME(_hx_pos_c961afc6e6a20fc0_308_resize,"lime._internal.graphics.ImageCanvasUtil","resize",0xc3395005,"lime._internal.graphics.ImageCanvasUtil.resize","lime/_internal/graphics/ImageCanvasUtil.hx",308,0x04a6dce0)
HX_LOCAL_STACK_FRAME(_hx_pos_c961afc6e6a20fc0_333_scroll,"lime._internal.graphics.ImageCanvasUtil","scroll",0x0222ce1e,"lime._internal.graphics.ImageCanvasUtil.scroll","lime/_internal/graphics/ImageCanvasUtil.hx",333,0x04a6dce0)
HX_LOCAL_STACK_FRAME(_hx_pos_c961afc6e6a20fc0_348_setPixel,"lime._internal.graphics.ImageCanvasUtil","setPixel",0x2f8c8bd5,"lime._internal.graphics.ImageCanvasUtil.setPixel","lime/_internal/graphics/ImageCanvasUtil.hx",348,0x04a6dce0)
HX_LOCAL_STACK_FRAME(_hx_pos_c961afc6e6a20fc0_355_setPixel32,"lime._internal.graphics.ImageCanvasUtil","setPixel32",0x94a717b4,"lime._internal.graphics.ImageCanvasUtil.setPixel32","lime/_internal/graphics/ImageCanvasUtil.hx",355,0x04a6dce0)
HX_LOCAL_STACK_FRAME(_hx_pos_c961afc6e6a20fc0_362_setPixels,"lime._internal.graphics.ImageCanvasUtil","setPixels",0x6b6dcefe,"lime._internal.graphics.ImageCanvasUtil.setPixels","lime/_internal/graphics/ImageCanvasUtil.hx",362,0x04a6dce0)
HX_LOCAL_STACK_FRAME(_hx_pos_c961afc6e6a20fc0_370_sync,"lime._internal.graphics.ImageCanvasUtil","sync",0x0d995a2c,"lime._internal.graphics.ImageCanvasUtil.sync","lime/_internal/graphics/ImageCanvasUtil.hx",370,0x04a6dce0)
namespace lime{
namespace _internal{
namespace graphics{
void ImageCanvasUtil_obj::__construct() { }
Dynamic ImageCanvasUtil_obj::__CreateEmpty() { return new ImageCanvasUtil_obj; }
void *ImageCanvasUtil_obj::_hx_vtable = 0;
Dynamic ImageCanvasUtil_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< ImageCanvasUtil_obj > _hx_result = new ImageCanvasUtil_obj();
_hx_result->__construct();
return _hx_result;
}
bool ImageCanvasUtil_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x7e2ecfe3;
}
void ImageCanvasUtil_obj::colorTransform( ::lime::graphics::Image image, ::lime::math::Rectangle rect, ::lime::utils::ArrayBufferView colorMatrix){
HX_STACKFRAME(&_hx_pos_c961afc6e6a20fc0_23_colorTransform)
HXLINE( 24) ::lime::_internal::graphics::ImageCanvasUtil_obj::convertToData(image,null());
HXLINE( 26) ::lime::_internal::graphics::ImageDataUtil_obj::colorTransform(image,rect,colorMatrix);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC3(ImageCanvasUtil_obj,colorTransform,(void))
void ImageCanvasUtil_obj::convertToCanvas( ::lime::graphics::Image image,hx::Null< bool > __o_clear){
bool clear = __o_clear.Default(false);
HX_STACKFRAME(&_hx_pos_c961afc6e6a20fc0_75_convertToCanvas)
HXDLIN( 75) image->type = ::lime::graphics::ImageType_obj::CANVAS_dyn();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(ImageCanvasUtil_obj,convertToCanvas,(void))
void ImageCanvasUtil_obj::convertToData( ::lime::graphics::Image image,hx::Null< bool > __o_clear){
bool clear = __o_clear.Default(false);
HX_STACKFRAME(&_hx_pos_c961afc6e6a20fc0_79_convertToData)
HXLINE( 80) ::lime::graphics::ImageBuffer buffer = image->buffer;
HXLINE( 115) image->type = ::lime::graphics::ImageType_obj::DATA_dyn();
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(ImageCanvasUtil_obj,convertToData,(void))
void ImageCanvasUtil_obj::copyChannel( ::lime::graphics::Image image, ::lime::graphics::Image sourceImage, ::lime::math::Rectangle sourceRect, ::lime::math::Vector2 destPoint, ::lime::graphics::ImageChannel sourceChannel, ::lime::graphics::ImageChannel destChannel){
HX_STACKFRAME(&_hx_pos_c961afc6e6a20fc0_120_copyChannel)
HXLINE( 121) ::lime::_internal::graphics::ImageCanvasUtil_obj::convertToData(sourceImage,null());
HXLINE( 122) ::lime::_internal::graphics::ImageCanvasUtil_obj::convertToData(image,null());
HXLINE( 124) ::lime::_internal::graphics::ImageDataUtil_obj::copyChannel(image,sourceImage,sourceRect,destPoint,sourceChannel,destChannel);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC6(ImageCanvasUtil_obj,copyChannel,(void))
void ImageCanvasUtil_obj::copyPixels( ::lime::graphics::Image image, ::lime::graphics::Image sourceImage, ::lime::math::Rectangle sourceRect, ::lime::math::Vector2 destPoint, ::lime::graphics::Image alphaImage, ::lime::math::Vector2 alphaPoint,hx::Null< bool > __o_mergeAlpha){
bool mergeAlpha = __o_mergeAlpha.Default(false);
HX_GC_STACKFRAME(&_hx_pos_c961afc6e6a20fc0_129_copyPixels)
HXLINE( 130) bool _hx_tmp;
HXDLIN( 130) bool _hx_tmp1;
HXDLIN( 130) bool _hx_tmp2;
HXDLIN( 130) bool _hx_tmp3;
HXDLIN( 130) bool _hx_tmp4;
HXDLIN( 130) if (hx::IsNotNull( destPoint )) {
HXLINE( 130) _hx_tmp4 = (destPoint->x >= image->width);
}
else {
HXLINE( 130) _hx_tmp4 = true;
}
HXDLIN( 130) if (!(_hx_tmp4)) {
HXLINE( 130) _hx_tmp3 = (destPoint->y >= image->height);
}
else {
HXLINE( 130) _hx_tmp3 = true;
}
HXDLIN( 130) if (!(_hx_tmp3)) {
HXLINE( 130) _hx_tmp2 = hx::IsNull( sourceRect );
}
else {
HXLINE( 130) _hx_tmp2 = true;
}
HXDLIN( 130) if (!(_hx_tmp2)) {
HXLINE( 130) _hx_tmp1 = (sourceRect->width < 1);
}
else {
HXLINE( 130) _hx_tmp1 = true;
}
HXDLIN( 130) if (!(_hx_tmp1)) {
HXLINE( 130) _hx_tmp = (sourceRect->height < 1);
}
else {
HXLINE( 130) _hx_tmp = true;
}
HXDLIN( 130) if (_hx_tmp) {
HXLINE( 133) return;
}
HXLINE( 136) bool _hx_tmp5;
HXDLIN( 136) if (hx::IsNotNull( alphaImage )) {
HXLINE( 136) _hx_tmp5 = alphaImage->get_transparent();
}
else {
HXLINE( 136) _hx_tmp5 = false;
}
HXDLIN( 136) if (_hx_tmp5) {
HXLINE( 138) if (hx::IsNull( alphaPoint )) {
HXLINE( 138) alphaPoint = ::lime::math::Vector2_obj::__alloc( HX_CTX ,null(),null());
}
HXLINE( 142) ::lime::graphics::Image tempData = sourceImage->clone();
HXLINE( 143) ::lime::math::Rectangle _hx_tmp6 = ::lime::math::Rectangle_obj::__alloc( HX_CTX ,(sourceRect->x + alphaPoint->x),(sourceRect->y + alphaPoint->y),sourceRect->width,sourceRect->height);
HXDLIN( 143) tempData->copyChannel(alphaImage,_hx_tmp6, ::lime::math::Vector2_obj::__alloc( HX_CTX ,sourceRect->x,sourceRect->y),::lime::graphics::ImageChannel_obj::ALPHA_dyn(),::lime::graphics::ImageChannel_obj::ALPHA_dyn());
HXLINE( 145) sourceImage = tempData;
}
HXLINE( 148) ::lime::_internal::graphics::ImageCanvasUtil_obj::convertToCanvas(image,true);
HXLINE( 150) if (!(mergeAlpha)) {
HXLINE( 152) bool _hx_tmp7;
HXDLIN( 152) if (image->get_transparent()) {
HXLINE( 152) _hx_tmp7 = sourceImage->get_transparent();
}
else {
HXLINE( 152) _hx_tmp7 = false;
}
HXDLIN( 152) if (_hx_tmp7) {
HXLINE( 154) image->buffer->_hx___srcContext->__Field(HX_("clearRect",51,35,68,bf),hx::paccDynamic)((destPoint->x + image->offsetX),(destPoint->y + image->offsetY),(sourceRect->width + image->offsetX),(sourceRect->height + image->offsetY));
}
}
HXLINE( 163) ::lime::_internal::graphics::ImageCanvasUtil_obj::convertToCanvas(sourceImage,null());
HXLINE( 165) if (hx::IsNotNull( sourceImage->buffer->get_src() )) {
HXLINE( 168) image->buffer->_hx___srcContext->__SetField(HX_("globalCompositeOperation",63,05,f9,c0),HX_("source-over",46,01,99,ce),hx::paccDynamic);
HXLINE( 170) ::Dynamic image1 = ::Dynamic(image->buffer->_hx___srcContext->__Field(HX_("drawImage",b7,54,74,85),hx::paccDynamic));
HXDLIN( 170) ::Dynamic _hx_tmp8 = sourceImage->buffer->get_src();
HXDLIN( 170) int _hx_tmp9 = ::Std_obj::_hx_int((sourceRect->x + sourceImage->offsetX));
HXLINE( 171) int _hx_tmp10 = ::Std_obj::_hx_int((sourceRect->y + sourceImage->offsetY));
HXDLIN( 171) int _hx_tmp11 = ::Std_obj::_hx_int(sourceRect->width);
HXDLIN( 171) int _hx_tmp12 = ::Std_obj::_hx_int(sourceRect->height);
HXDLIN( 171) int _hx_tmp13 = ::Std_obj::_hx_int((destPoint->x + image->offsetX));
HXLINE( 172) int _hx_tmp14 = ::Std_obj::_hx_int((destPoint->y + image->offsetY));
HXDLIN( 172) int _hx_tmp15 = ::Std_obj::_hx_int(sourceRect->width);
HXLINE( 170) image1(_hx_tmp8,_hx_tmp9,_hx_tmp10,_hx_tmp11,_hx_tmp12,_hx_tmp13,_hx_tmp14,_hx_tmp15,::Std_obj::_hx_int(sourceRect->height));
}
HXLINE( 175) image->dirty = true;
HXLINE( 176) image->version++;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC7(ImageCanvasUtil_obj,copyPixels,(void))
void ImageCanvasUtil_obj::createCanvas( ::lime::graphics::Image image,int width,int height){
HX_STACKFRAME(&_hx_pos_c961afc6e6a20fc0_180_createCanvas)
}
STATIC_HX_DEFINE_DYNAMIC_FUNC3(ImageCanvasUtil_obj,createCanvas,(void))
void ImageCanvasUtil_obj::createImageData( ::lime::graphics::Image image){
HX_STACKFRAME(&_hx_pos_c961afc6e6a20fc0_204_createImageData)
}
STATIC_HX_DEFINE_DYNAMIC_FUNC1(ImageCanvasUtil_obj,createImageData,(void))
void ImageCanvasUtil_obj::fillRect( ::lime::graphics::Image image, ::lime::math::Rectangle rect,int color,int format){
HX_STACKFRAME(&_hx_pos_c961afc6e6a20fc0_226_fillRect)
HXLINE( 227) ::lime::_internal::graphics::ImageCanvasUtil_obj::convertToCanvas(image,null());
HXLINE( 229) int r;
HXDLIN( 229) int g;
HXDLIN( 229) int b;
HXDLIN( 229) int a;
HXLINE( 231) if ((format == 1)) {
HXLINE( 233) r = ((color >> 16) & 255);
HXLINE( 234) g = ((color >> 8) & 255);
HXLINE( 235) b = (color & 255);
HXLINE( 236) if (image->get_transparent()) {
HXLINE( 236) a = ((color >> 24) & 255);
}
else {
HXLINE( 236) a = 255;
}
}
else {
HXLINE( 240) r = ((color >> 24) & 255);
HXLINE( 241) g = ((color >> 16) & 255);
HXLINE( 242) b = ((color >> 8) & 255);
HXLINE( 243) if (image->get_transparent()) {
HXLINE( 243) a = (color & 255);
}
else {
HXLINE( 243) a = 255;
}
}
HXLINE( 246) bool _hx_tmp;
HXDLIN( 246) bool _hx_tmp1;
HXDLIN( 246) bool _hx_tmp2;
HXDLIN( 246) if ((rect->x == 0)) {
HXLINE( 246) _hx_tmp2 = (rect->y == 0);
}
else {
HXLINE( 246) _hx_tmp2 = false;
}
HXDLIN( 246) if (_hx_tmp2) {
HXLINE( 246) _hx_tmp1 = (rect->width == image->width);
}
else {
HXLINE( 246) _hx_tmp1 = false;
}
HXDLIN( 246) if (_hx_tmp1) {
HXLINE( 246) _hx_tmp = (rect->height == image->height);
}
else {
HXLINE( 246) _hx_tmp = false;
}
HXDLIN( 246) if (_hx_tmp) {
HXLINE( 248) bool _hx_tmp3;
HXDLIN( 248) if (image->get_transparent()) {
HXLINE( 248) _hx_tmp3 = (a == 0);
}
else {
HXLINE( 248) _hx_tmp3 = false;
}
HXDLIN( 248) if (_hx_tmp3) {
HXLINE( 250) image->buffer->_hx___srcCanvas->__SetField(HX_("width",06,b6,62,ca),image->buffer->width,hx::paccDynamic);
HXLINE( 251) return;
}
}
HXLINE( 255) if ((a < 255)) {
HXLINE( 257) image->buffer->_hx___srcContext->__Field(HX_("clearRect",51,35,68,bf),hx::paccDynamic)((rect->x + image->offsetX),(rect->y + image->offsetY),(rect->width + image->offsetX),(rect->height + image->offsetY));
}
HXLINE( 260) if ((a > 0)) {
HXLINE( 262) image->buffer->_hx___srcContext->__SetField(HX_("fillStyle",ae,cb,c4,52),((((((((HX_("rgba(",f4,cc,0d,e8) + r) + HX_(", ",74,26,00,00)) + g) + HX_(", ",74,26,00,00)) + b) + HX_(", ",74,26,00,00)) + (( (Float)(a) ) / ( (Float)(255) ))) + HX_(")",29,00,00,00)),hx::paccDynamic);
HXLINE( 263) image->buffer->_hx___srcContext->__Field(HX_("fillRect",47,45,b9,6c),hx::paccDynamic)((rect->x + image->offsetX),(rect->y + image->offsetY),(rect->width + image->offsetX),(rect->height + image->offsetY));
}
HXLINE( 266) image->dirty = true;
HXLINE( 267) image->version++;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC4(ImageCanvasUtil_obj,fillRect,(void))
void ImageCanvasUtil_obj::floodFill( ::lime::graphics::Image image,int x,int y,int color,int format){
HX_STACKFRAME(&_hx_pos_c961afc6e6a20fc0_271_floodFill)
HXLINE( 272) ::lime::_internal::graphics::ImageCanvasUtil_obj::convertToData(image,null());
HXLINE( 274) ::lime::_internal::graphics::ImageDataUtil_obj::floodFill(image,x,y,color,format);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC5(ImageCanvasUtil_obj,floodFill,(void))
int ImageCanvasUtil_obj::getPixel( ::lime::graphics::Image image,int x,int y,int format){
HX_STACKFRAME(&_hx_pos_c961afc6e6a20fc0_278_getPixel)
HXLINE( 279) ::lime::_internal::graphics::ImageCanvasUtil_obj::convertToData(image,null());
HXLINE( 281) return ::lime::_internal::graphics::ImageDataUtil_obj::getPixel(image,x,y,format);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC4(ImageCanvasUtil_obj,getPixel,return )
int ImageCanvasUtil_obj::getPixel32( ::lime::graphics::Image image,int x,int y,int format){
HX_STACKFRAME(&_hx_pos_c961afc6e6a20fc0_285_getPixel32)
HXLINE( 286) ::lime::_internal::graphics::ImageCanvasUtil_obj::convertToData(image,null());
HXLINE( 288) return ::lime::_internal::graphics::ImageDataUtil_obj::getPixel32(image,x,y,format);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC4(ImageCanvasUtil_obj,getPixel32,return )
::haxe::io::Bytes ImageCanvasUtil_obj::getPixels( ::lime::graphics::Image image, ::lime::math::Rectangle rect,int format){
HX_STACKFRAME(&_hx_pos_c961afc6e6a20fc0_292_getPixels)
HXLINE( 293) ::lime::_internal::graphics::ImageCanvasUtil_obj::convertToData(image,null());
HXLINE( 295) return ::lime::_internal::graphics::ImageDataUtil_obj::getPixels(image,rect,format);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC3(ImageCanvasUtil_obj,getPixels,return )
void ImageCanvasUtil_obj::merge( ::lime::graphics::Image image, ::lime::graphics::Image sourceImage, ::lime::math::Rectangle sourceRect, ::lime::math::Vector2 destPoint,int redMultiplier,int greenMultiplier,int blueMultiplier,int alphaMultiplier){
HX_STACKFRAME(&_hx_pos_c961afc6e6a20fc0_300_merge)
HXLINE( 301) ::lime::_internal::graphics::ImageCanvasUtil_obj::convertToData(sourceImage,null());
HXLINE( 302) ::lime::_internal::graphics::ImageCanvasUtil_obj::convertToData(image,null());
HXLINE( 304) ::lime::_internal::graphics::ImageDataUtil_obj::merge(image,sourceImage,sourceRect,destPoint,redMultiplier,greenMultiplier,blueMultiplier,alphaMultiplier);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC8(ImageCanvasUtil_obj,merge,(void))
void ImageCanvasUtil_obj::resize( ::lime::graphics::Image image,int newWidth,int newHeight){
HX_STACKFRAME(&_hx_pos_c961afc6e6a20fc0_308_resize)
HXLINE( 309) ::lime::graphics::ImageBuffer buffer = image->buffer;
HXLINE( 311) if (hx::IsNull( buffer->_hx___srcCanvas )) {
HXLINE( 313) ::lime::_internal::graphics::ImageCanvasUtil_obj::createCanvas(image,newWidth,newHeight);
HXLINE( 314) ::Dynamic buffer1 = ::Dynamic(buffer->_hx___srcContext->__Field(HX_("drawImage",b7,54,74,85),hx::paccDynamic));
HXDLIN( 314) buffer1(buffer->get_src(),0,0,newWidth,newHeight);
}
else {
HXLINE( 318) ::lime::_internal::graphics::ImageCanvasUtil_obj::convertToCanvas(image,true);
HXLINE( 319) ::Dynamic sourceCanvas = buffer->_hx___srcCanvas;
HXLINE( 320) buffer->_hx___srcCanvas = null();
HXLINE( 321) ::lime::_internal::graphics::ImageCanvasUtil_obj::createCanvas(image,newWidth,newHeight);
HXLINE( 322) buffer->_hx___srcContext->__Field(HX_("drawImage",b7,54,74,85),hx::paccDynamic)(sourceCanvas,0,0,newWidth,newHeight);
}
HXLINE( 325) buffer->_hx___srcImageData = null();
HXLINE( 326) buffer->data = null();
HXLINE( 328) image->dirty = true;
HXLINE( 329) image->version++;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC3(ImageCanvasUtil_obj,resize,(void))
void ImageCanvasUtil_obj::scroll( ::lime::graphics::Image image,int x,int y){
HX_STACKFRAME(&_hx_pos_c961afc6e6a20fc0_333_scroll)
HXLINE( 334) bool _hx_tmp;
HXDLIN( 334) if ((hx::Mod(x,image->width) == 0)) {
HXLINE( 334) _hx_tmp = (hx::Mod(y,image->height) == 0);
}
else {
HXLINE( 334) _hx_tmp = false;
}
HXDLIN( 334) if (_hx_tmp) {
HXLINE( 334) return;
}
HXLINE( 336) ::lime::graphics::Image copy = image->clone();
HXLINE( 338) ::lime::_internal::graphics::ImageCanvasUtil_obj::convertToCanvas(image,true);
HXLINE( 340) image->buffer->_hx___srcContext->__Field(HX_("clearRect",51,35,68,bf),hx::paccDynamic)(x,y,image->width,image->height);
HXLINE( 341) ::Dynamic image1 = ::Dynamic(image->buffer->_hx___srcContext->__Field(HX_("drawImage",b7,54,74,85),hx::paccDynamic));
HXDLIN( 341) image1(copy->get_src(),x,y);
HXLINE( 343) image->dirty = true;
HXLINE( 344) image->version++;
}
STATIC_HX_DEFINE_DYNAMIC_FUNC3(ImageCanvasUtil_obj,scroll,(void))
void ImageCanvasUtil_obj::setPixel( ::lime::graphics::Image image,int x,int y,int color,int format){
HX_STACKFRAME(&_hx_pos_c961afc6e6a20fc0_348_setPixel)
HXLINE( 349) ::lime::_internal::graphics::ImageCanvasUtil_obj::convertToData(image,null());
HXLINE( 351) ::lime::_internal::graphics::ImageDataUtil_obj::setPixel(image,x,y,color,format);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC5(ImageCanvasUtil_obj,setPixel,(void))
void ImageCanvasUtil_obj::setPixel32( ::lime::graphics::Image image,int x,int y,int color,int format){
HX_STACKFRAME(&_hx_pos_c961afc6e6a20fc0_355_setPixel32)
HXLINE( 356) ::lime::_internal::graphics::ImageCanvasUtil_obj::convertToData(image,null());
HXLINE( 358) ::lime::_internal::graphics::ImageDataUtil_obj::setPixel32(image,x,y,color,format);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC5(ImageCanvasUtil_obj,setPixel32,(void))
void ImageCanvasUtil_obj::setPixels( ::lime::graphics::Image image, ::lime::math::Rectangle rect, ::lime::utils::BytePointerData bytePointer,int format, ::lime::_hx_system::Endian endian){
HX_STACKFRAME(&_hx_pos_c961afc6e6a20fc0_362_setPixels)
HXLINE( 363) ::lime::_internal::graphics::ImageCanvasUtil_obj::convertToData(image,null());
HXLINE( 365) ::lime::_internal::graphics::ImageDataUtil_obj::setPixels(image,rect,bytePointer,format,endian);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC5(ImageCanvasUtil_obj,setPixels,(void))
void ImageCanvasUtil_obj::sync( ::lime::graphics::Image image,bool clear){
HX_STACKFRAME(&_hx_pos_c961afc6e6a20fc0_370_sync)
HXDLIN( 370) if (hx::IsNull( image )) {
HXDLIN( 370) return;
}
}
STATIC_HX_DEFINE_DYNAMIC_FUNC2(ImageCanvasUtil_obj,sync,(void))
ImageCanvasUtil_obj::ImageCanvasUtil_obj()
{
}
bool ImageCanvasUtil_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"sync") ) { outValue = sync_dyn(); return true; }
break;
case 5:
if (HX_FIELD_EQ(inName,"merge") ) { outValue = merge_dyn(); return true; }
break;
case 6:
if (HX_FIELD_EQ(inName,"resize") ) { outValue = resize_dyn(); return true; }
if (HX_FIELD_EQ(inName,"scroll") ) { outValue = scroll_dyn(); return true; }
break;
case 8:
if (HX_FIELD_EQ(inName,"fillRect") ) { outValue = fillRect_dyn(); return true; }
if (HX_FIELD_EQ(inName,"getPixel") ) { outValue = getPixel_dyn(); return true; }
if (HX_FIELD_EQ(inName,"setPixel") ) { outValue = setPixel_dyn(); return true; }
break;
case 9:
if (HX_FIELD_EQ(inName,"floodFill") ) { outValue = floodFill_dyn(); return true; }
if (HX_FIELD_EQ(inName,"getPixels") ) { outValue = getPixels_dyn(); return true; }
if (HX_FIELD_EQ(inName,"setPixels") ) { outValue = setPixels_dyn(); return true; }
break;
case 10:
if (HX_FIELD_EQ(inName,"copyPixels") ) { outValue = copyPixels_dyn(); return true; }
if (HX_FIELD_EQ(inName,"getPixel32") ) { outValue = getPixel32_dyn(); return true; }
if (HX_FIELD_EQ(inName,"setPixel32") ) { outValue = setPixel32_dyn(); return true; }
break;
case 11:
if (HX_FIELD_EQ(inName,"copyChannel") ) { outValue = copyChannel_dyn(); return true; }
break;
case 12:
if (HX_FIELD_EQ(inName,"createCanvas") ) { outValue = createCanvas_dyn(); return true; }
break;
case 13:
if (HX_FIELD_EQ(inName,"convertToData") ) { outValue = convertToData_dyn(); return true; }
break;
case 14:
if (HX_FIELD_EQ(inName,"colorTransform") ) { outValue = colorTransform_dyn(); return true; }
break;
case 15:
if (HX_FIELD_EQ(inName,"convertToCanvas") ) { outValue = convertToCanvas_dyn(); return true; }
if (HX_FIELD_EQ(inName,"createImageData") ) { outValue = createImageData_dyn(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *ImageCanvasUtil_obj_sMemberStorageInfo = 0;
static hx::StaticInfo *ImageCanvasUtil_obj_sStaticStorageInfo = 0;
#endif
hx::Class ImageCanvasUtil_obj::__mClass;
static ::String ImageCanvasUtil_obj_sStaticFields[] = {
HX_("colorTransform",89,d7,3f,ad),
HX_("convertToCanvas",c6,61,e8,14),
HX_("convertToData",98,ab,76,b3),
HX_("copyChannel",8e,7d,e6,22),
HX_("copyPixels",c2,54,6e,42),
HX_("createCanvas",f4,94,97,da),
HX_("createImageData",89,a4,8c,c5),
HX_("fillRect",47,45,b9,6c),
HX_("floodFill",61,83,8a,59),
HX_("getPixel",10,d6,7a,22),
HX_("getPixel32",af,a6,68,d7),
HX_("getPixels",63,78,00,09),
HX_("merge",b8,a2,c6,05),
HX_("resize",f4,59,7b,08),
HX_("scroll",0d,d8,64,47),
HX_("setPixel",84,2f,d8,d0),
HX_("setPixel32",23,45,e6,da),
HX_("setPixels",6f,64,51,ec),
HX_("sync",5b,ba,5f,4c),
::String(null())
};
void ImageCanvasUtil_obj::__register()
{
ImageCanvasUtil_obj _hx_dummy;
ImageCanvasUtil_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("lime._internal.graphics.ImageCanvasUtil",3d,d2,c0,58);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &ImageCanvasUtil_obj::__GetStatic;
__mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
__mClass->mStatics = hx::Class_obj::dupFunctions(ImageCanvasUtil_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< ImageCanvasUtil_obj >;
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = ImageCanvasUtil_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = ImageCanvasUtil_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
} // end namespace lime
} // end namespace _internal
} // end namespace graphics

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,560 @@
// Generated by Haxe 4.0.5
#include <hxcpp.h>
#ifndef INCLUDED_95f339a1d026d52c
#define INCLUDED_95f339a1d026d52c
#include "hxMath.h"
#endif
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_lime__internal_graphics_BlurStack
#include <lime/_internal/graphics/BlurStack.h>
#endif
#ifndef INCLUDED_lime__internal_graphics_StackBlur
#include <lime/_internal/graphics/StackBlur.h>
#endif
#ifndef INCLUDED_lime_graphics_Image
#include <lime/graphics/Image.h>
#endif
#ifndef INCLUDED_lime_math_Rectangle
#include <lime/math/Rectangle.h>
#endif
#ifndef INCLUDED_lime_math_Vector2
#include <lime/math/Vector2.h>
#endif
#ifndef INCLUDED_lime_utils_ArrayBufferView
#include <lime/utils/ArrayBufferView.h>
#endif
HX_LOCAL_STACK_FRAME(_hx_pos_0876aa6d3697a386_32_blur,"lime._internal.graphics.StackBlur","blur",0x11e5705e,"lime._internal.graphics.StackBlur.blur","lime/_internal/graphics/StackBlur.hx",32,0x80163c06)
HX_LOCAL_STACK_FRAME(_hx_pos_0876aa6d3697a386_38___stackBlurCanvasRGBA,"lime._internal.graphics.StackBlur","__stackBlurCanvasRGBA",0x767d35c4,"lime._internal.graphics.StackBlur.__stackBlurCanvasRGBA","lime/_internal/graphics/StackBlur.hx",38,0x80163c06)
HX_LOCAL_STACK_FRAME(_hx_pos_0876aa6d3697a386_10_boot,"lime._internal.graphics.StackBlur","boot",0x11e7b1e9,"lime._internal.graphics.StackBlur.boot","lime/_internal/graphics/StackBlur.hx",10,0x80163c06)
static const int _hx_array_data_b2c50e17_15[] = {
(int)1,(int)171,(int)205,(int)293,(int)57,(int)373,(int)79,(int)137,(int)241,(int)27,(int)391,(int)357,(int)41,(int)19,(int)283,(int)265,(int)497,(int)469,(int)443,(int)421,(int)25,(int)191,(int)365,(int)349,(int)335,(int)161,(int)155,(int)149,(int)9,(int)278,(int)269,(int)261,(int)505,(int)245,(int)475,(int)231,(int)449,(int)437,(int)213,(int)415,(int)405,(int)395,(int)193,(int)377,(int)369,(int)361,(int)353,(int)345,(int)169,(int)331,(int)325,(int)319,(int)313,(int)307,(int)301,(int)37,(int)145,(int)285,(int)281,(int)69,(int)271,(int)267,(int)263,(int)259,(int)509,(int)501,(int)493,(int)243,(int)479,(int)118,(int)465,(int)459,(int)113,(int)446,(int)55,(int)435,(int)429,(int)423,(int)209,(int)413,(int)51,(int)403,(int)199,(int)393,(int)97,(int)3,(int)379,(int)375,(int)371,(int)367,(int)363,(int)359,(int)355,(int)351,(int)347,(int)43,(int)85,(int)337,(int)333,(int)165,(int)327,(int)323,(int)5,(int)317,(int)157,(int)311,(int)77,(int)305,(int)303,(int)75,(int)297,(int)294,(int)73,(int)289,(int)287,(int)71,(int)141,(int)279,(int)277,(int)275,(int)68,(int)135,(int)67,(int)133,(int)33,(int)262,(int)260,(int)129,(int)511,(int)507,(int)503,(int)499,(int)495,(int)491,(int)61,(int)121,(int)481,(int)477,(int)237,(int)235,(int)467,(int)232,(int)115,(int)457,(int)227,(int)451,(int)7,(int)445,(int)221,(int)439,(int)218,(int)433,(int)215,(int)427,(int)425,(int)211,(int)419,(int)417,(int)207,(int)411,(int)409,(int)203,(int)202,(int)401,(int)399,(int)396,(int)197,(int)49,(int)389,(int)387,(int)385,(int)383,(int)95,(int)189,(int)47,(int)187,(int)93,(int)185,(int)23,(int)183,(int)91,(int)181,(int)45,(int)179,(int)89,(int)177,(int)11,(int)175,(int)87,(int)173,(int)345,(int)343,(int)341,(int)339,(int)337,(int)21,(int)167,(int)83,(int)331,(int)329,(int)327,(int)163,(int)81,(int)323,(int)321,(int)319,(int)159,(int)79,(int)315,(int)313,(int)39,(int)155,(int)309,(int)307,(int)153,(int)305,(int)303,(int)151,(int)75,(int)299,(int)149,(int)37,(int)295,(int)147,(int)73,(int)291,(int)145,(int)289,(int)287,(int)143,(int)285,(int)71,(int)141,(int)281,(int)35,(int)279,(int)139,(int)69,(int)275,(int)137,(int)273,(int)17,(int)271,(int)135,(int)269,(int)267,(int)133,(int)265,(int)33,(int)263,(int)131,(int)261,(int)130,(int)259,(int)129,(int)257,(int)1,
};
HX_LOCAL_STACK_FRAME(_hx_pos_0876aa6d3697a386_21_boot,"lime._internal.graphics.StackBlur","boot",0x11e7b1e9,"lime._internal.graphics.StackBlur.boot","lime/_internal/graphics/StackBlur.hx",21,0x80163c06)
static const int _hx_array_data_b2c50e17_17[] = {
(int)0,(int)9,(int)10,(int)11,(int)9,(int)12,(int)10,(int)11,(int)12,(int)9,(int)13,(int)13,(int)10,(int)9,(int)13,(int)13,(int)14,(int)14,(int)14,(int)14,(int)10,(int)13,(int)14,(int)14,(int)14,(int)13,(int)13,(int)13,(int)9,(int)14,(int)14,(int)14,(int)15,(int)14,(int)15,(int)14,(int)15,(int)15,(int)14,(int)15,(int)15,(int)15,(int)14,(int)15,(int)15,(int)15,(int)15,(int)15,(int)14,(int)15,(int)15,(int)15,(int)15,(int)15,(int)15,(int)12,(int)14,(int)15,(int)15,(int)13,(int)15,(int)15,(int)15,(int)15,(int)16,(int)16,(int)16,(int)15,(int)16,(int)14,(int)16,(int)16,(int)14,(int)16,(int)13,(int)16,(int)16,(int)16,(int)15,(int)16,(int)13,(int)16,(int)15,(int)16,(int)14,(int)9,(int)16,(int)16,(int)16,(int)16,(int)16,(int)16,(int)16,(int)16,(int)16,(int)13,(int)14,(int)16,(int)16,(int)15,(int)16,(int)16,(int)10,(int)16,(int)15,(int)16,(int)14,(int)16,(int)16,(int)14,(int)16,(int)16,(int)14,(int)16,(int)16,(int)14,(int)15,(int)16,(int)16,(int)16,(int)14,(int)15,(int)14,(int)15,(int)13,(int)16,(int)16,(int)15,(int)17,(int)17,(int)17,(int)17,(int)17,(int)17,(int)14,(int)15,(int)17,(int)17,(int)16,(int)16,(int)17,(int)16,(int)15,(int)17,(int)16,(int)17,(int)11,(int)17,(int)16,(int)17,(int)16,(int)17,(int)16,(int)17,(int)17,(int)16,(int)17,(int)17,(int)16,(int)17,(int)17,(int)16,(int)16,(int)17,(int)17,(int)17,(int)16,(int)14,(int)17,(int)17,(int)17,(int)17,(int)15,(int)16,(int)14,(int)16,(int)15,(int)16,(int)13,(int)16,(int)15,(int)16,(int)14,(int)16,(int)15,(int)16,(int)12,(int)16,(int)15,(int)16,(int)17,(int)17,(int)17,(int)17,(int)17,(int)13,(int)16,(int)15,(int)17,(int)17,(int)17,(int)16,(int)15,(int)17,(int)17,(int)17,(int)16,(int)15,(int)17,(int)17,(int)14,(int)16,(int)17,(int)17,(int)16,(int)17,(int)17,(int)16,(int)15,(int)17,(int)16,(int)14,(int)17,(int)16,(int)15,(int)17,(int)16,(int)17,(int)17,(int)16,(int)17,(int)15,(int)16,(int)17,(int)14,(int)17,(int)16,(int)15,(int)17,(int)16,(int)17,(int)13,(int)17,(int)16,(int)17,(int)17,(int)16,(int)17,(int)14,(int)17,(int)16,(int)17,(int)16,(int)17,(int)16,(int)17,(int)9,
};
namespace lime{
namespace _internal{
namespace graphics{
void StackBlur_obj::__construct() { }
Dynamic StackBlur_obj::__CreateEmpty() { return new StackBlur_obj; }
void *StackBlur_obj::_hx_vtable = 0;
Dynamic StackBlur_obj::__Create(hx::DynamicArray inArgs)
{
hx::ObjectPtr< StackBlur_obj > _hx_result = new StackBlur_obj();
_hx_result->__construct();
return _hx_result;
}
bool StackBlur_obj::_hx_isInstanceOf(int inClassId) {
return inClassId==(int)0x00000001 || inClassId==(int)0x36afab3d;
}
::Array< int > StackBlur_obj::MUL_TABLE;
::Array< int > StackBlur_obj::SHG_TABLE;
void StackBlur_obj::blur( ::lime::graphics::Image dest, ::lime::graphics::Image source, ::lime::math::Rectangle sourceRect, ::lime::math::Vector2 destPoint,Float blurX,Float blurY,int quality){
HX_STACKFRAME(&_hx_pos_0876aa6d3697a386_32_blur)
HXLINE( 33) dest->copyPixels(source,sourceRect,destPoint,null(),null(),null());
HXLINE( 34) int _hx_tmp = ::Std_obj::_hx_int(sourceRect->width);
HXDLIN( 34) ::lime::_internal::graphics::StackBlur_obj::_hx___stackBlurCanvasRGBA(dest,_hx_tmp,::Std_obj::_hx_int(sourceRect->height),blurX,blurY,quality);
}
STATIC_HX_DEFINE_DYNAMIC_FUNC7(StackBlur_obj,blur,(void))
void StackBlur_obj::_hx___stackBlurCanvasRGBA( ::lime::graphics::Image image,int width,int height,Float blurX,Float blurY,int quality){
HX_GC_STACKFRAME(&_hx_pos_0876aa6d3697a386_38___stackBlurCanvasRGBA)
HXLINE( 42) int radiusX = (::Math_obj::round(blurX) >> 1);
HXLINE( 43) int radiusY = (::Math_obj::round(blurY) >> 1);
HXLINE( 45) if (hx::IsNull( ::lime::_internal::graphics::StackBlur_obj::MUL_TABLE )) {
HXLINE( 45) return;
}
HXLINE( 46) if ((radiusX >= ::lime::_internal::graphics::StackBlur_obj::MUL_TABLE->length)) {
HXLINE( 46) radiusX = (::lime::_internal::graphics::StackBlur_obj::MUL_TABLE->length - 1);
}
HXLINE( 47) if ((radiusY >= ::lime::_internal::graphics::StackBlur_obj::MUL_TABLE->length)) {
HXLINE( 47) radiusY = (::lime::_internal::graphics::StackBlur_obj::MUL_TABLE->length - 1);
}
HXLINE( 48) bool _hx_tmp;
HXDLIN( 48) if ((radiusX >= 0)) {
HXLINE( 48) _hx_tmp = (radiusY < 0);
}
else {
HXLINE( 48) _hx_tmp = true;
}
HXDLIN( 48) if (_hx_tmp) {
HXLINE( 48) return;
}
HXLINE( 50) int iterations = quality;
HXLINE( 51) if ((iterations < 1)) {
HXLINE( 51) iterations = 1;
}
HXLINE( 52) if ((iterations > 3)) {
HXLINE( 52) iterations = 3;
}
HXLINE( 54) ::lime::utils::ArrayBufferView px = image->get_data();
HXLINE( 55) int x;
HXDLIN( 55) int y;
HXDLIN( 55) int i;
HXDLIN( 55) int p;
HXDLIN( 55) int yp;
HXDLIN( 55) int yi;
HXDLIN( 55) int yw;
HXLINE( 56) int r;
HXDLIN( 56) int g;
HXDLIN( 56) int b;
HXDLIN( 56) int a;
HXDLIN( 56) int pr;
HXDLIN( 56) int pg;
HXDLIN( 56) int pb;
HXDLIN( 56) int pa;
HXLINE( 57) Float f;
HXLINE( 59) int divx = ((radiusX + radiusX) + 1);
HXLINE( 60) int divy = ((radiusY + radiusY) + 1);
HXLINE( 61) int w = width;
HXLINE( 62) int h = height;
HXLINE( 64) int w1 = (w - 1);
HXLINE( 65) int h1 = (h - 1);
HXLINE( 66) int rxp1 = (radiusX + 1);
HXLINE( 67) int ryp1 = (radiusY + 1);
HXLINE( 69) ::lime::_internal::graphics::BlurStack ssx = ::lime::_internal::graphics::BlurStack_obj::__alloc( HX_CTX );
HXLINE( 70) ::lime::_internal::graphics::BlurStack sx = ssx;
HXLINE( 71) {
HXLINE( 71) int _g = 1;
HXDLIN( 71) int _g1 = divx;
HXDLIN( 71) while((_g < _g1)){
HXLINE( 71) _g = (_g + 1);
HXDLIN( 71) int i1 = (_g - 1);
HXLINE( 73) sx = (sx->n = ::lime::_internal::graphics::BlurStack_obj::__alloc( HX_CTX ));
}
}
HXLINE( 75) sx->n = ssx;
HXLINE( 77) ::lime::_internal::graphics::BlurStack ssy = ::lime::_internal::graphics::BlurStack_obj::__alloc( HX_CTX );
HXLINE( 78) ::lime::_internal::graphics::BlurStack sy = ssy;
HXLINE( 79) {
HXLINE( 79) int _g2 = 1;
HXDLIN( 79) int _g3 = divy;
HXDLIN( 79) while((_g2 < _g3)){
HXLINE( 79) _g2 = (_g2 + 1);
HXDLIN( 79) int i2 = (_g2 - 1);
HXLINE( 81) sy = (sy->n = ::lime::_internal::graphics::BlurStack_obj::__alloc( HX_CTX ));
}
}
HXLINE( 83) sy->n = ssy;
HXLINE( 85) ::lime::_internal::graphics::BlurStack si = null();
HXLINE( 87) int mtx = ::lime::_internal::graphics::StackBlur_obj::MUL_TABLE->__get(radiusX);
HXLINE( 88) int stx = ::lime::_internal::graphics::StackBlur_obj::SHG_TABLE->__get(radiusX);
HXLINE( 89) int mty = ::lime::_internal::graphics::StackBlur_obj::MUL_TABLE->__get(radiusY);
HXLINE( 90) int sty = ::lime::_internal::graphics::StackBlur_obj::SHG_TABLE->__get(radiusY);
HXLINE( 92) while((iterations > 0)){
HXLINE( 94) iterations = (iterations - 1);
HXLINE( 95) yi = 0;
HXDLIN( 95) yw = yi;
HXLINE( 96) int ms = mtx;
HXLINE( 97) int ss = stx;
HXLINE( 98) y = h;
HXLINE( 99) while(true){
HXLINE( 101) pr = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + yi)) & 255)) );
HXDLIN( 101) r = (rxp1 * pr);
HXLINE( 102) pg = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + (yi + 1))) & 255)) );
HXDLIN( 102) g = (rxp1 * pg);
HXLINE( 103) pb = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + (yi + 2))) & 255)) );
HXDLIN( 103) b = (rxp1 * pb);
HXLINE( 104) pa = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + (yi + 3))) & 255)) );
HXDLIN( 104) a = (rxp1 * pa);
HXLINE( 105) sx = ssx;
HXLINE( 106) i = rxp1;
HXLINE( 107) while(true){
HXLINE( 109) sx->r = pr;
HXLINE( 110) sx->g = pg;
HXLINE( 111) sx->b = pb;
HXLINE( 112) sx->a = pa;
HXLINE( 113) sx = sx->n;
HXLINE( 115) i = (i - 1);
HXLINE( 107) if (!((i > -1))) {
HXLINE( 107) goto _hx_goto_5;
}
}
_hx_goto_5:;
HXLINE( 117) {
HXLINE( 117) int _g4 = 1;
HXDLIN( 117) int _g5 = rxp1;
HXDLIN( 117) while((_g4 < _g5)){
HXLINE( 117) _g4 = (_g4 + 1);
HXDLIN( 117) int i3 = (_g4 - 1);
HXLINE( 119) int p1;
HXDLIN( 119) if ((w1 < i3)) {
HXLINE( 119) p1 = w1;
}
else {
HXLINE( 119) p1 = i3;
}
HXDLIN( 119) p = (yi + (p1 << 2));
HXLINE( 120) r = (r + (sx->r = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + p)) & 255)) )));
HXLINE( 121) g = (g + (sx->g = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + (p + 1))) & 255)) )));
HXLINE( 122) b = (b + (sx->b = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + (p + 2))) & 255)) )));
HXLINE( 123) a = (a + (sx->a = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + (p + 3))) & 255)) )));
HXLINE( 124) sx = sx->n;
}
}
HXLINE( 127) si = ssx;
HXLINE( 128) {
HXLINE( 128) int _g6 = 0;
HXDLIN( 128) int _g7 = w;
HXDLIN( 128) while((_g6 < _g7)){
HXLINE( 128) _g6 = (_g6 + 1);
HXDLIN( 128) int x1 = (_g6 - 1);
HXLINE( 130) {
HXLINE( 130) yi = (yi + 1);
HXDLIN( 130) int val = hx::UShr((r * ms),ss);
HXDLIN( 130) ::__hxcpp_memory_set_byte(px->buffer->b,(px->byteOffset + (yi - 1)),val);
}
HXLINE( 131) {
HXLINE( 131) yi = (yi + 1);
HXDLIN( 131) int val1 = hx::UShr((g * ms),ss);
HXDLIN( 131) ::__hxcpp_memory_set_byte(px->buffer->b,(px->byteOffset + (yi - 1)),val1);
}
HXLINE( 132) {
HXLINE( 132) yi = (yi + 1);
HXDLIN( 132) int val2 = hx::UShr((b * ms),ss);
HXDLIN( 132) ::__hxcpp_memory_set_byte(px->buffer->b,(px->byteOffset + (yi - 1)),val2);
}
HXLINE( 133) {
HXLINE( 133) yi = (yi + 1);
HXDLIN( 133) int val3 = hx::UShr((a * ms),ss);
HXDLIN( 133) ::__hxcpp_memory_set_byte(px->buffer->b,(px->byteOffset + (yi - 1)),val3);
}
HXLINE( 134) int p2;
HXDLIN( 134) p = ((x1 + radiusX) + 1);
HXDLIN( 134) if ((p < w1)) {
HXLINE( 134) p2 = p;
}
else {
HXLINE( 134) p2 = w1;
}
HXDLIN( 134) p = ((yw + p2) << 2);
HXLINE( 135) int si1 = si->r;
HXDLIN( 135) r = (r - (si1 - (si->r = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + p)) & 255)) ))));
HXLINE( 136) int si2 = si->g;
HXDLIN( 136) g = (g - (si2 - (si->g = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + (p + 1))) & 255)) ))));
HXLINE( 137) int si3 = si->b;
HXDLIN( 137) b = (b - (si3 - (si->b = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + (p + 2))) & 255)) ))));
HXLINE( 138) int si4 = si->a;
HXDLIN( 138) a = (a - (si4 - (si->a = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + (p + 3))) & 255)) ))));
HXLINE( 139) si = si->n;
}
}
HXLINE( 141) yw = (yw + w);
HXLINE( 143) y = (y - 1);
HXLINE( 99) if (!((y > 0))) {
HXLINE( 99) goto _hx_goto_4;
}
}
_hx_goto_4:;
HXLINE( 145) ms = mty;
HXLINE( 146) ss = sty;
HXLINE( 147) {
HXLINE( 147) int _g41 = 0;
HXDLIN( 147) int _g51 = w;
HXDLIN( 147) while((_g41 < _g51)){
HXLINE( 147) _g41 = (_g41 + 1);
HXDLIN( 147) int x2 = (_g41 - 1);
HXLINE( 149) yi = (x2 << 2);
HXLINE( 150) pr = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + yi)) & 255)) );
HXDLIN( 150) r = (ryp1 * pr);
HXLINE( 151) pg = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + (yi + 1))) & 255)) );
HXDLIN( 151) g = (ryp1 * pg);
HXLINE( 152) pb = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + (yi + 2))) & 255)) );
HXDLIN( 152) b = (ryp1 * pb);
HXLINE( 153) pa = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + (yi + 3))) & 255)) );
HXDLIN( 153) a = (ryp1 * pa);
HXLINE( 154) sy = ssy;
HXLINE( 155) {
HXLINE( 155) int _g42 = 0;
HXDLIN( 155) int _g52 = ryp1;
HXDLIN( 155) while((_g42 < _g52)){
HXLINE( 155) _g42 = (_g42 + 1);
HXDLIN( 155) int i4 = (_g42 - 1);
HXLINE( 157) sy->r = pr;
HXLINE( 158) sy->g = pg;
HXLINE( 159) sy->b = pb;
HXLINE( 160) sy->a = pa;
HXLINE( 161) sy = sy->n;
}
}
HXLINE( 163) yp = w;
HXLINE( 164) {
HXLINE( 164) int _g61 = 1;
HXDLIN( 164) int _g71 = (radiusY + 1);
HXDLIN( 164) while((_g61 < _g71)){
HXLINE( 164) _g61 = (_g61 + 1);
HXDLIN( 164) int i5 = (_g61 - 1);
HXLINE( 166) yi = ((yp + x2) << 2);
HXLINE( 167) r = (r + (sy->r = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + yi)) & 255)) )));
HXLINE( 168) g = (g + (sy->g = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + (yi + 1))) & 255)) )));
HXLINE( 169) b = (b + (sy->b = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + (yi + 2))) & 255)) )));
HXLINE( 170) a = (a + (sy->a = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + (yi + 3))) & 255)) )));
HXLINE( 171) sy = sy->n;
HXLINE( 172) if ((i5 < h1)) {
HXLINE( 174) yp = (yp + w);
}
}
}
HXLINE( 177) yi = x2;
HXLINE( 178) si = ssy;
HXLINE( 180) if ((iterations > 0)) {
HXLINE( 182) int _g8 = 0;
HXDLIN( 182) int _g9 = h;
HXDLIN( 182) while((_g8 < _g9)){
HXLINE( 182) _g8 = (_g8 + 1);
HXDLIN( 182) int y1 = (_g8 - 1);
HXLINE( 184) p = (yi << 2);
HXLINE( 185) {
HXLINE( 185) pa = hx::UShr((a * ms),ss);
HXDLIN( 185) int val4 = pa;
HXDLIN( 185) ::__hxcpp_memory_set_byte(px->buffer->b,(px->byteOffset + (p + 3)),val4);
}
HXLINE( 186) if ((pa > 0)) {
HXLINE( 188) {
HXLINE( 188) int val5 = hx::UShr((r * ms),ss);
HXDLIN( 188) ::__hxcpp_memory_set_byte(px->buffer->b,(px->byteOffset + p),val5);
}
HXLINE( 189) {
HXLINE( 189) int val6 = hx::UShr((g * ms),ss);
HXDLIN( 189) ::__hxcpp_memory_set_byte(px->buffer->b,(px->byteOffset + (p + 1)),val6);
}
HXLINE( 190) {
HXLINE( 190) int val7 = hx::UShr((b * ms),ss);
HXDLIN( 190) ::__hxcpp_memory_set_byte(px->buffer->b,(px->byteOffset + (p + 2)),val7);
}
}
else {
HXLINE( 194) ::__hxcpp_memory_set_byte(px->buffer->b,(px->byteOffset + (p + 2)),0);
HXDLIN( 194) int val8 = 0;
HXDLIN( 194) ::__hxcpp_memory_set_byte(px->buffer->b,(px->byteOffset + (p + 1)),val8);
HXDLIN( 194) int val9 = val8;
HXDLIN( 194) ::__hxcpp_memory_set_byte(px->buffer->b,(px->byteOffset + p),val9);
}
HXLINE( 196) int p3;
HXDLIN( 196) p = (y1 + ryp1);
HXDLIN( 196) if ((p < h1)) {
HXLINE( 196) p3 = p;
}
else {
HXLINE( 196) p3 = h1;
}
HXDLIN( 196) p = ((x2 + (p3 * w)) << 2);
HXLINE( 197) int si5 = si->r;
HXDLIN( 197) r = (r - (si5 - (si->r = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + p)) & 255)) ))));
HXLINE( 198) int si6 = si->g;
HXDLIN( 198) g = (g - (si6 - (si->g = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + (p + 1))) & 255)) ))));
HXLINE( 199) int si7 = si->b;
HXDLIN( 199) b = (b - (si7 - (si->b = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + (p + 2))) & 255)) ))));
HXLINE( 200) int si8 = si->a;
HXDLIN( 200) a = (a - (si8 - (si->a = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + (p + 3))) & 255)) ))));
HXLINE( 201) si = si->n;
HXLINE( 202) yi = (yi + w);
}
}
else {
HXLINE( 207) int _g81 = 0;
HXDLIN( 207) int _g91 = h;
HXDLIN( 207) while((_g81 < _g91)){
HXLINE( 207) _g81 = (_g81 + 1);
HXDLIN( 207) int y2 = (_g81 - 1);
HXLINE( 209) p = (yi << 2);
HXLINE( 210) {
HXLINE( 210) pa = hx::UShr((a * ms),ss);
HXDLIN( 210) int val10 = pa;
HXDLIN( 210) ::__hxcpp_memory_set_byte(px->buffer->b,(px->byteOffset + (p + 3)),val10);
}
HXLINE( 211) if ((pa > 0)) {
HXLINE( 213) f = (( (Float)(255) ) / ( (Float)(pa) ));
HXLINE( 214) pr = ::Std_obj::_hx_int((( (Float)(hx::UShr((r * ms),ss)) ) * f));
HXLINE( 215) pg = ::Std_obj::_hx_int((( (Float)(hx::UShr((g * ms),ss)) ) * f));
HXLINE( 216) pb = ::Std_obj::_hx_int((( (Float)(hx::UShr((b * ms),ss)) ) * f));
HXLINE( 217) {
HXLINE( 217) int val11;
HXDLIN( 217) if ((pr > 255)) {
HXLINE( 217) val11 = 255;
}
else {
HXLINE( 217) val11 = pr;
}
HXDLIN( 217) ::__hxcpp_memory_set_byte(px->buffer->b,(px->byteOffset + p),val11);
}
HXLINE( 218) {
HXLINE( 218) int val12;
HXDLIN( 218) if ((pg > 255)) {
HXLINE( 218) val12 = 255;
}
else {
HXLINE( 218) val12 = pg;
}
HXDLIN( 218) ::__hxcpp_memory_set_byte(px->buffer->b,(px->byteOffset + (p + 1)),val12);
}
HXLINE( 219) {
HXLINE( 219) int val13;
HXDLIN( 219) if ((pb > 255)) {
HXLINE( 219) val13 = 255;
}
else {
HXLINE( 219) val13 = pb;
}
HXDLIN( 219) ::__hxcpp_memory_set_byte(px->buffer->b,(px->byteOffset + (p + 2)),val13);
}
}
else {
HXLINE( 223) ::__hxcpp_memory_set_byte(px->buffer->b,(px->byteOffset + (p + 2)),0);
HXDLIN( 223) int val14 = 0;
HXDLIN( 223) ::__hxcpp_memory_set_byte(px->buffer->b,(px->byteOffset + (p + 1)),val14);
HXDLIN( 223) int val15 = val14;
HXDLIN( 223) ::__hxcpp_memory_set_byte(px->buffer->b,(px->byteOffset + p),val15);
}
HXLINE( 225) int p4;
HXDLIN( 225) p = (y2 + ryp1);
HXDLIN( 225) if ((p < h1)) {
HXLINE( 225) p4 = p;
}
else {
HXLINE( 225) p4 = h1;
}
HXDLIN( 225) p = ((x2 + (p4 * w)) << 2);
HXLINE( 226) int si9 = si->r;
HXDLIN( 226) r = (r - (si9 - (si->r = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + p)) & 255)) ))));
HXLINE( 227) int si10 = si->g;
HXDLIN( 227) g = (g - (si10 - (si->g = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + (p + 1))) & 255)) ))));
HXLINE( 228) int si11 = si->b;
HXDLIN( 228) b = (b - (si11 - (si->b = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + (p + 2))) & 255)) ))));
HXLINE( 229) int si12 = si->a;
HXDLIN( 229) a = (a - (si12 - (si->a = ( (int)(( ::__hxcpp_memory_get_byte(px->buffer->b,(px->byteOffset + (p + 3))) & 255)) ))));
HXLINE( 230) si = si->n;
HXLINE( 231) yi = (yi + w);
}
}
}
}
}
}
STATIC_HX_DEFINE_DYNAMIC_FUNC6(StackBlur_obj,_hx___stackBlurCanvasRGBA,(void))
StackBlur_obj::StackBlur_obj()
{
}
bool StackBlur_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 4:
if (HX_FIELD_EQ(inName,"blur") ) { outValue = blur_dyn(); return true; }
break;
case 9:
if (HX_FIELD_EQ(inName,"MUL_TABLE") ) { outValue = ( MUL_TABLE ); return true; }
if (HX_FIELD_EQ(inName,"SHG_TABLE") ) { outValue = ( SHG_TABLE ); return true; }
break;
case 21:
if (HX_FIELD_EQ(inName,"__stackBlurCanvasRGBA") ) { outValue = _hx___stackBlurCanvasRGBA_dyn(); return true; }
}
return false;
}
bool StackBlur_obj::__SetStatic(const ::String &inName,Dynamic &ioValue,hx::PropertyAccess inCallProp)
{
switch(inName.length) {
case 9:
if (HX_FIELD_EQ(inName,"MUL_TABLE") ) { MUL_TABLE=ioValue.Cast< ::Array< int > >(); return true; }
if (HX_FIELD_EQ(inName,"SHG_TABLE") ) { SHG_TABLE=ioValue.Cast< ::Array< int > >(); return true; }
}
return false;
}
#ifdef HXCPP_SCRIPTABLE
static hx::StorageInfo *StackBlur_obj_sMemberStorageInfo = 0;
static hx::StaticInfo StackBlur_obj_sStaticStorageInfo[] = {
{hx::fsObject /* ::Array< int > */ ,(void *) &StackBlur_obj::MUL_TABLE,HX_("MUL_TABLE",13,f2,74,4d)},
{hx::fsObject /* ::Array< int > */ ,(void *) &StackBlur_obj::SHG_TABLE,HX_("SHG_TABLE",c1,4a,a2,87)},
{ hx::fsUnknown, 0, null()}
};
#endif
static void StackBlur_obj_sMarkStatics(HX_MARK_PARAMS) {
HX_MARK_MEMBER_NAME(StackBlur_obj::MUL_TABLE,"MUL_TABLE");
HX_MARK_MEMBER_NAME(StackBlur_obj::SHG_TABLE,"SHG_TABLE");
};
#ifdef HXCPP_VISIT_ALLOCS
static void StackBlur_obj_sVisitStatics(HX_VISIT_PARAMS) {
HX_VISIT_MEMBER_NAME(StackBlur_obj::MUL_TABLE,"MUL_TABLE");
HX_VISIT_MEMBER_NAME(StackBlur_obj::SHG_TABLE,"SHG_TABLE");
};
#endif
hx::Class StackBlur_obj::__mClass;
static ::String StackBlur_obj_sStaticFields[] = {
HX_("MUL_TABLE",13,f2,74,4d),
HX_("SHG_TABLE",c1,4a,a2,87),
HX_("blur",a7,42,19,41),
HX_("__stackBlurCanvasRGBA",5b,41,5c,36),
::String(null())
};
void StackBlur_obj::__register()
{
StackBlur_obj _hx_dummy;
StackBlur_obj::_hx_vtable = *(void **)&_hx_dummy;
hx::Static(__mClass) = new hx::Class_obj();
__mClass->mName = HX_("lime._internal.graphics.StackBlur",17,0e,c5,b2);
__mClass->mSuper = &super::__SGetClass();
__mClass->mConstructEmpty = &__CreateEmpty;
__mClass->mConstructArgs = &__Create;
__mClass->mGetStaticField = &StackBlur_obj::__GetStatic;
__mClass->mSetStaticField = &StackBlur_obj::__SetStatic;
__mClass->mMarkFunc = StackBlur_obj_sMarkStatics;
__mClass->mStatics = hx::Class_obj::dupFunctions(StackBlur_obj_sStaticFields);
__mClass->mMembers = hx::Class_obj::dupFunctions(0 /* sMemberFields */);
__mClass->mCanCast = hx::TCanCast< StackBlur_obj >;
#ifdef HXCPP_VISIT_ALLOCS
__mClass->mVisitFunc = StackBlur_obj_sVisitStatics;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mMemberStorageInfo = StackBlur_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
__mClass->mStaticStorageInfo = StackBlur_obj_sStaticStorageInfo;
#endif
hx::_hx_RegisterClass(__mClass->mName, __mClass);
}
void StackBlur_obj::__boot()
{
{
HX_STACKFRAME(&_hx_pos_0876aa6d3697a386_10_boot)
HXDLIN( 10) MUL_TABLE = ::Array_obj< int >::fromData( _hx_array_data_b2c50e17_15,257);
}
{
HX_STACKFRAME(&_hx_pos_0876aa6d3697a386_21_boot)
HXDLIN( 21) SHG_TABLE = ::Array_obj< int >::fromData( _hx_array_data_b2c50e17_17,257);
}
}
} // end namespace lime
} // end namespace _internal
} // end namespace graphics

Some files were not shown because too many files have changed in this diff Show More