Constructs a DOFPacket instance from a portion of a source byte array.
Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax
C#
public static DOFPacket create( byte[] array, int offset, int length )
Parameters
- array
- Type: SystemByte
The source byte array, from which bytes will be copied to the packet. This may be null, in which case the other arguments are ignored. - offset
- Type: SystemInt32
The offset into the array, at which to start copying bytes to the packet. If array is not null then this must not be negative and must lie within the array. - length
- Type: SystemInt32
The number of bytes to copy from array to the packet. If array is not null then this must not be negative and must lie within the array.
Return Value
Type: DOFPacketa new instance of DOFPacket.
Remarks
See Also