Lib

class cs.LibAvailable in csPlatform-specific C# Library. Provides some platform-specific functions for the C# target, such as conversion from haxe types to native types and vice-versa. static inline function addressOf<T>( variable : T ) : Pointer<T> static function applyCultureChanges() : VoidChanges the current culture settings to allow a consistent cross-target behavior. Currently the only change made is in regard to the decimal separator, which is always set to "." static function array<T>( native : NativeArray<T> ) : Array<T>Returns a Haxe Array of a native Array. It won't copy the contents of the native array, so unless any operation triggers an array resize, all changes made to the Haxe array will affect the native array argument. static function arrayAlloc<T>( size : Int ) : Array<T>Allocates a new Haxe Array with a predetermined size static inline function as<T>( obj : Dynamic, cl : Class<T> ) : T static inline function checked<V>( block : V ) : Void static inline function fixed<V>( block : V ) : Void static inline function fromNativeType( t : Type ) : Class<Dynamic>Returns a Class<> equivalent to the native System.Type type.
Currently Haxe's Class<> is equivalent to System.Type, but this is an implementation detail. This may change in the future, so use this function whenever you need to perform such conversion.
static inline function lock<O, V>( obj : O, block : V ) : Void static function nativeArray<T>( arr : Array<T>, equalLengthRequired : Bool ) : NativeArray<T>Returns a native array from the supplied Array. This native array is unsafe to be written on, as it may or may not be linked to the actual Array implementation.
If equalLengthRequired is true, the result might be a copy of an array with the correct size.
static function nativeType( obj : Dynamic ) : TypeGets the native System.Type from the supplied object. Will throw an exception in case of null being passed. static inline function pointerOfArray<T>( array : NativeArray<T> ) : Pointer<T> static function revertDefaultCulture() : VoidReverts the culture changes to the default settings. static inline function sizeof( struct : Class<Dynamic> ) : Int static inline function toNativeType( cl : Class<Dynamic> ) : TypeReturns a System.Type equivalent to the Haxe Class<> type.
Currently Haxe's Class<> is equivalent to System.Type, but this is an implementation detail. This may change in the future, so use this function whenever you need to perform such conversion.
static inline function unsafe<V>( block : V ) : Void static inline function valueOf<T>( pointer : Pointer<T> ) : T
version #18421, modified 2013-05-08 10:42:52 by api
0 comment