MemoryPoolStreamCoreCopyTo Method

Copies data from the current position of the BinaryStream to a specified memory location.

Definition

Namespace: SnapDB.IO.Unmanaged
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public void CopyTo(
	long position,
	IntPtr dest,
	int length
)

Parameters

position  Int64
The position in the BinaryStream from which to start copying.
dest  IntPtr
The destination memory location where data will be copied.
length  Int32
The number of bytes to copy.

Remarks

This method reads data from the BinaryStream starting at the specified position and copies it to the destination memory location pointed to by the dest parameter. If the requested length exceeds the valid data available, it copies as much data as possible.

See Also