Name

ArrayWithOffset

Synopsis

This class converts an array of value type instances to an unmanaged array. Your unmanaged code accesses this array as a pointer that initially points to the first array element. Each time the pointer increments, it points to the next element in the array. The constructor takes a mandatory offset argument that specifies which element should be the first element in the unmanaged array. If you want to pass the whole array, specify an offset of zero.

Public Structure ArrayWithOffset
                  ' Public Constructors
   Public Sub New(ByVal array As Object, 
        ByVal offset As Integer) 
' Public Instance Methods
   Overrides Public Function Equals(
        ByVal obj As Object) As Boolean  
   Public Function GetArray() As Object  
   Overrides Public Function GetHashCode() As Integer  
   Public Function GetOffset() As Integer  
End Structure

Hierarchy

System.ObjectSystem.ValueType ArrayWithOffset

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.