Class RingBuffer
A thread-safe ring buffer for the floating point values.
Namespace: VE3NEA.HamCockpit.DspFun
Assembly: VE3NEA.HamCockpit.DspFun.dll
Syntax
public class RingBuffer
Constructors
| Name | Description |
|---|---|
| RingBuffer(Int32) | Initializes a new instance of the RingBuffer class. |
Properties
| Name | Description |
|---|---|
| Count | Gets the count of the floating point values in the buffer. |
| FillWithZeros | Gets or sets a value indicating whether the output is padded with zeros if there is not enough data to read. |
Methods
| Name | Description |
|---|---|
| Dump(Int32) | Removes the values from the ring buffer. |
| Read(Single[], Int32, Int32) | Reads the data from the ring buffer to the provided buffer. |
| Resize(Int32) | Changes the capacity of the ring buffer. |
| Write(Single[], Int32, Int32) | Writes floating point values to the specified buffer. |
| WriteInt16(Byte[], Int32) | Converts 16-bit integers to the floating point values and writes them to the buffer. |
| WriteInt16(Int16[], Int32) | |
| WriteStrided(Single[], Int32, Int32, SignalFormat) | Writes one of the channels of the strided data to the ring buffer. |
Events
| Name | Description |
|---|---|
| SamplesAvailable | Occurs when filtered samples are available. |