Click or drag to resize

UnmanagedBufferCopyCircular Method (Byte, Int32, UnmanagedBuffer, Int64, Int32)

Copies data from a managed array to the buffer, wrapping around if necessary.

Namespace:  Ookii.Jumbo
Assembly:  Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax
public static long CopyCircular(
	byte[] source,
	int sourceIndex,
	UnmanagedBuffer destination,
	long destinationIndex,
	int count
)

Parameters

source
Type: SystemByte
The managed byte array containing the data to copy.
sourceIndex
Type: SystemInt32
The index in source to start copying at.
destination
Type: Ookii.JumboUnmanagedBuffer
The UnmanagedBuffer to copy the data to.
destinationIndex
Type: SystemInt64
The index in destination to start copying at.
count
Type: SystemInt32
The number of bytes to copy.

Return Value

Type: Int64
The next index position after writing the data.
See Also