Browse Source

[cpp] Add Pointer.fromHandle

Hugh 11 years ago
parent
commit
829bd6ca8a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      std/cpp/Pointer.hx

+ 2 - 0
std/cpp/Pointer.hx

@@ -5,6 +5,8 @@ extern class Pointer<T> extends ConstPointer<T> implements ArrayAccess<T>
 {
 {
 	public var ref(get,set):T;
 	public var ref(get,set):T;
 
 
+   public static function fromHandle<T>(inHandle:Dynamic,?inKind:String) : Pointer<T>;
+
    public static function fromPointer<T>(inNativePointer:Dynamic) : Pointer<T>;
    public static function fromPointer<T>(inNativePointer:Dynamic) : Pointer<T>;
 
 
    public static function addressOf<T>(inVariable:T) : Pointer<T>;
    public static function addressOf<T>(inVariable:T) : Pointer<T>;