Platform-specific Neko Library. Provides some platform-specific functions for the Neko target, such as conversion from Haxe types to native types and vice-versa.

Static methods

@:has_untypedstaticinlinebytesReference(s:String):Bytes

Returns bytes referencing the content of a string.

@:has_untypedstaticgetClasses():Dynamic

Returns an object containing all compiled packages and classes.

@:has_untypedstatichaxeToNeko(v:Dynamic):Dynamic

Converts a Haxe value to its Neko equivalent. Used to unwrap String and Arrays Objects into raw Neko values.

@:has_untypedstaticload(lib:String, prim:String, nargs:Int):Dynamic

Load and return a Neko primitive from a NDLL library.

@:has_untypedstaticloadLazy(lib:String, prim:String, nargs:Int):Dynamic

@:has_untypedstaticlocalUnserialize(s:Bytes):Dynamic

Unserialize a string using native Neko serialization. See serialize. This function assume that all the serialized data was serialized with current module, even if the module name was different. This can happen if you are unserializing some data into mod_neko that was serialized on a different server using a different file path.

@:has_untypedstaticnekoToHaxe(v:Dynamic):Dynamic

Converts a Neko value to its Haxe equivalent. Used for wrapping String and Arrays raw values into Haxe Objects.

@:has_untypedstaticprint(v:Dynamic):Void

Print the specified value on the default output.

@:has_untypedstaticprintln(v:Dynamic):Void

Print the specified value on the default output followed by a newline character.

@:has_untypedstaticrethrow(e:Dynamic):Dynamic

Rethrow an exception. This is useful when manually filtering an exception in order to keep the previous exception stack.

staticserialize(v:Dynamic):Bytes

Serialize using native Neko serialization. This will return a Binary string that can be stored for long term usage. The serialized data is optimized for speed and not for size.

staticinlinestringReference(b:Bytes):String

Returns a string referencing the data contains in bytes.

@:has_untypedstaticunserialize(s:Bytes):Dynamic

Unserialize a string using native Neko serialization. See serialize.