ArcFM Engine Developer Guide
ToStruct<T>(Byte[],Int32) Method


The struct type to convert to.
An array of bytes.
The starting position within the buffer.
Returns a struct converted from the byte array.
Syntax
'Declaration
 
Public Overloads Shared Function ToStruct(Of T As {New, Struct})( _
   ByVal buffer() As Byte, _
   ByVal startIndex As Integer _
) As T
'Usage
 
Dim buffer() As Byte
Dim startIndex As Integer
Dim value As T
 
value = StructConverter.ToStruct(Of T)(buffer, startIndex)
public static T ToStruct<T>( 
   byte[] buffer,
   int startIndex
)
where T: new(), struct

Parameters

buffer
An array of bytes.
startIndex
The starting position within the buffer.

Type Parameters

T
The struct type to convert to.

Return Value

A struct represented by the contents of the byte array.
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

StructConverter Class
StructConverter Members
Overload List

 

 


Send Comment