MemoryPoolStreamCoreCopyTo Method
Copies data from the current position of the BinaryStream to a specified memory location.
Namespace: SnapDB.IO.UnmanagedAssembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public void CopyTo(
long position,
IntPtr dest,
int length
)
Public Sub CopyTo (
position As Long,
dest As IntPtr,
length As Integer
)
public:
void CopyTo(
long long position,
IntPtr dest,
int length
)
function CopyTo(position, dest, 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.
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.