Click or drag to resize

JCOBridgeDirectBufferTCopyTo(IntPtr, Int64, Int64, Int64) Method

Fills the destination with a copy of the memory this JCOBridgeDirectBufferT instance is holding from the underlying ByteBuffer. The number of bytes actually copied may be less than length if the remaining bytes from startPosition to the buffer limit or destinationSize are smaller.

Namespace: MASES.JCOBridge.C2JBridge
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.9.260611-9a148513a79c26cdd7f1dde468f4f9e06ef3bc7e
Syntax
public long CopyTo(
	IntPtr destination,
	long destinationSize,
	long startPosition,
	long length
)

Parameters

destination  IntPtr
The IntPtr describing the memory pointer data shall be written with the content of the ByteBuffer.
destinationSize  Int64
The available memory size in bytes of destination. Must be positive.
startPosition  Int64
The byte offset within the ByteBuffer where the copy shall start. Must be in the range [0, buffer limit).
length  Int64
The number of bytes to be copied from the ByteBuffer into destination. Must be positive.

Return Value

Int64
The bytes copied.
Exceptions
ExceptionCondition
ObjectDisposedException This instance has already been disposed.
ArgumentOutOfRangeExceptionstartPosition is negative or greater than or equal to the buffer limit, or destinationSize or length are not positive.
See Also