public virtual void ReadArray(byte[] data, uint arrayLength)
 {
     global::System.Runtime.InteropServices.GCHandle pinHandle_data = global::System.Runtime.InteropServices.GCHandle.Alloc(data, global::System.Runtime.InteropServices.GCHandleType.Pinned); try {
         {
             SharingClientPINVOKE.NetworkInMessage_ReadArray(swigCPtr, (global::System.IntPtr)pinHandle_data.AddrOfPinnedObject(), arrayLength);
         }
     } finally { pinHandle_data.Free(); }
 }
Esempio n. 2
0
 public virtual void CopyImageData(byte[] data, int bufferSize, int bytesPerPixel)
 {
     global::System.Runtime.InteropServices.GCHandle pinHandle_data = global::System.Runtime.InteropServices.GCHandle.Alloc(data, global::System.Runtime.InteropServices.GCHandleType.Pinned); try {
         {
             SharingClientPINVOKE.TagImage_CopyImageData(swigCPtr, (global::System.IntPtr)pinHandle_data.AddrOfPinnedObject(), bufferSize, bytesPerPixel);
         }
     } finally { pinHandle_data.Free(); }
 }
Esempio n. 3
0
 public virtual bool UploadAnchor(Room room, XString anchorName, byte[] data, int dataSize)
 {
     global::System.Runtime.InteropServices.GCHandle pinHandle_data = global::System.Runtime.InteropServices.GCHandle.Alloc(data, global::System.Runtime.InteropServices.GCHandleType.Pinned); try {
         {
             bool ret = SharingClientPINVOKE.RoomManager_UploadAnchor(swigCPtr, Room.getCPtr(room), XString.getCPtr(anchorName), (global::System.IntPtr)pinHandle_data.AddrOfPinnedObject(), dataSize);
             return(ret);
         }
     } finally { pinHandle_data.Free(); }
 }
Esempio n. 4
0
 public virtual bool ProcessImage(byte[] image, int width, int height, int bytesPerPixel)
 {
     global::System.Runtime.InteropServices.GCHandle pinHandle_image = global::System.Runtime.InteropServices.GCHandle.Alloc(image, global::System.Runtime.InteropServices.GCHandleType.Pinned); try {
         {
             bool ret = SharingClientPINVOKE.VisualPairConnector_ProcessImage(swigCPtr, (global::System.IntPtr)pinHandle_image.AddrOfPinnedObject(), width, height, bytesPerPixel);
             return(ret);
         }
     } finally { pinHandle_image.Free(); }
 }
Esempio n. 5
0
 public virtual bool GetData(byte[] data, int dataSize)
 {
     global::System.Runtime.InteropServices.GCHandle pinHandle_data = global::System.Runtime.InteropServices.GCHandle.Alloc(data, global::System.Runtime.InteropServices.GCHandleType.Pinned); try {
         {
             bool ret = SharingClientPINVOKE.AnchorDownloadRequest_GetData(swigCPtr, (global::System.IntPtr)pinHandle_data.AddrOfPinnedObject(), dataSize);
             return(ret);
         }
     } finally { pinHandle_data.Free(); }
 }
Esempio n. 6
0
 // Token: 0x0600025F RID: 607 RVA: 0x0000F090 File Offset: 0x0000D290
 private static global::System.Collections.Generic.List <global::System.IntPtr> GetChildWindows(global::System.IntPtr parent)
 {
     global::System.Collections.Generic.List <global::System.IntPtr> list = new global::System.Collections.Generic.List <global::System.IntPtr>();
     global::System.Runtime.InteropServices.GCHandle gchandle             = global::System.Runtime.InteropServices.GCHandle.Alloc(list);
     try
     {
         global::VRGIN.Native.WindowsInterop.Win32Callback callback = new global::VRGIN.Native.WindowsInterop.Win32Callback(global::VRGIN.Native.WindowManager.EnumWindow);
         global::VRGIN.Native.WindowsInterop.EnumChildWindows(parent, callback, global::System.Runtime.InteropServices.GCHandle.ToIntPtr(gchandle));
     }
     finally
     {
         bool isAllocated = gchandle.IsAllocated;
         if (isAllocated)
         {
             gchandle.Free();
         }
     }
     return(list);
 }
Esempio n. 7
0
        public static void TexSubImage2D(GLTextureTarget target, int level, int xoffset, int yoffset, int width, int height, GLPixelFormat format, GLPixelType type, byte[] data)
        {
            if (data != null)
            {
                global::System.Runtime.InteropServices.GCHandle pin = global::System.Runtime.InteropServices.GCHandle.Alloc(data, global::System.Runtime.InteropServices.GCHandleType.Pinned);

                try
                {
                    GL._gl.TexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pin.AddrOfPinnedObject());
                }
                finally
                {
                    pin.Free();
                }
            }
            else
            {
                GL._gl.TexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, global::System.IntPtr.Zero);
            }
        }