UnmanagedArray<T> Class
              
              
              Namespace: Stride.Core
              Assembly: Stride.Core.dll
              
              
              
              
              
              
                 System.Object →  
                UnmanagedArray<T>
              
              
                 Derived from UnmanagedArray<T>: 
              
              
              
              
              
                public class UnmanagedArray<T> : IDisposable where T : struct
               
              
              Type Parameters
              
              
              
              
              
                  
              
                     
              
                
                  |
                  Improve this Doc
                
                
                  View Source
                
              
              
                Constructors
              
                
              
              
              
              
              
              UnmanagedArray(Int32)
              
              
              
              
              
                public UnmanagedArray(int length)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | System.Int32 | 
                    length | 
                     | 
                  
                
              
              
              
              
              
              
              UnmanagedArray(Int32, IntPtr)
              
              
              
              
              
                public UnmanagedArray(int length, IntPtr unmanagedDataPtr)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | System.Int32 | 
                    length | 
                     | 
                  
                  
                    | System.IntPtr | 
                    unmanagedDataPtr | 
                     | 
                  
                
              
                     
              
                
                  |
                  Improve this Doc
                
                
                  View Source
                
              
              
                Properties
              
                
              
              
              
              
              
              Item[Int32]
              
              
              
              
              
                public T this[int index] { get; set; }
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | System.Int32 | 
                    index | 
                     | 
                  
                
              
              Property Value
              
              
              
              
              
              
              Length
              
              
              
              
              
                public int Length { get; }
               
              
              Property Value
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.Int32 | 
                     | 
                  
                
              
              
              
              
              
              
              Pointer
              
              
              
              
              
                public IntPtr Pointer { get; }
               
              
              Property Value
              
                
                  
                    | Type | 
                    Description | 
                  
                
                
                  
                    | System.IntPtr | 
                     | 
                  
                
              
                     
              
                
                  |
                  Improve this Doc
                
                
                  View Source
                
              
              
                Methods
              
                
              
              
              
              
              
              Dispose()
              
              
              
              
              
              
              
              
              
              
              
              Read(T[], Int32)
              
              
              
              
              
                public void Read(T[] destination, int offset = 0)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | T[] | 
                    destination | 
                     | 
                  
                  
                    | System.Int32 | 
                    offset | 
                     | 
                  
                
              
              
              
              
              
              
              Read(T[], Int32, Int32, Int32)
              
              
              
              
              
                public void Read(T[] destination, int pointerByteOffset, int arrayOffset, int arrayLen)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | T[] | 
                    destination | 
                     | 
                  
                  
                    | System.Int32 | 
                    pointerByteOffset | 
                     | 
                  
                  
                    | System.Int32 | 
                    arrayOffset | 
                     | 
                  
                  
                    | System.Int32 | 
                    arrayLen | 
                     | 
                  
                
              
              
              
              
              
              
              Write(T[], Int32)
              
              
              
              
              
                public void Write(T[] source, int offset = 0)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | T[] | 
                    source | 
                     | 
                  
                  
                    | System.Int32 | 
                    offset | 
                     | 
                  
                
              
              
              
              
              
              
              Write(T[], Int32, Int32, Int32)
              
              
              
              
              
                public void Write(T[] source, int pointerByteOffset, int arrayOffset, int arrayLen)
               
              
              Parameters
              
                
                  
                    | Type | 
                    Name | 
                    Description | 
                  
                
                
                  
                    | T[] | 
                    source | 
                     | 
                  
                  
                    | System.Int32 | 
                    pointerByteOffset | 
                     | 
                  
                  
                    | System.Int32 | 
                    arrayOffset | 
                     | 
                  
                  
                    | System.Int32 | 
                    arrayLen | 
                     | 
                  
                
              
              
              
 
              
               
              
              
              
              
              Extension Methods