 | 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.C2JBridgeAssembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
Syntaxpublic long CopyTo(
IntPtr destination,
long destinationSize,
long startPosition,
long length
)
Public Function CopyTo (
destination As IntPtr,
destinationSize As Long,
startPosition As Long,
length As Long
) As Long
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
Int64The bytes copied.
Exceptions
See Also