DOFPacketcreate Method (Byte, Int32)OpenDOF Object Access Library
Constructs a DOFPacket instance from a portion of a source byte array starting at offset 0.

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 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 argument is ignored and an empty packet is created.
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: DOFPacket
a new instance of DOFPacket.
Remarks

Constructs a DOFPacket instance from a portion of a source byte array starting at offset 0.
See Also

Reference