Assets/EasyAR/Scripts/csapi.cs
///<summary>
///Wraps a raw memory block. When Buffer is released by all holders, deleter callback will be invoked to execute user-defined memory destruction. deleter must be thread-safe.
///</summary>
Wraps a raw memory block. When Buffer is released by all holders, deleter callback will be invoked to execute user-defined memory destruction. deleter must be thread-safe.
Wraps a raw memory block . When Buffer is released by all holders deleter callback will be invoked to execute user - defined memory destruction . deleter must be thread - safe .
public static Buffer wrap(IntPtr ptr, int size, Action deleter)
        {
            using (var ar = new Detail.AutoRelease())
            {
                var _return_value_ = default(IntPtr);
                Detail.easyar_Buffer_wrap(ptr, size, Detail.FunctorOfVoid_to_c(deleter), out _return_value_);
                return Detail.Object_from_c<Buffer>(_return_value_, Detail.easyar_Buffer__typeName);
            }
        }
public static Buffer wrap ( IntPtr ptr , int size , Action deleter ) { using ( var ar = new Detail . AutoRelease ( ) ) { var _return_value_ = default ( IntPtr ) ; Detail . easyar_Buffer_wrap ( ptr , size , Detail . FunctorOfVoid_to_c ( deleter ) , out _return_value_ ) ; return Detail . Object_from_c < Buffer > ( _return_value_ , Detail . easyar_Buffer__typeName ) ; } }
Wraps a raw memory block.
Wraps a raw memory block .
ptr
IntPtr
size
int
deleter
Action