Click or drag to resize

RingBufferTAdd(FuncT, Int32, Int32, Int32) Method

Adds items to the buffer by using a read function that reads such items. For instance, Read(Byte, Int32, Int32) is such a function.

Namespace: Altaxo.Collections
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public int Add(
	Func<T[], int, int, int> readFunc
)

Parameters

readFunc  FuncT, Int32, Int32, Int32
The read function. 1st argument is the buffer array, 2nd argument is the position where to put the first data to, and 3rd argument is the maximum number of items to read. The return value has to be the number of items that where actually read.

Return Value

Int32
The number of items that were added to the ring buffer.
See Also