Gets the sample at the specified index or the last sample if index is equal to -1. The index. The sample value
(int index)
| 52 | /// <param name="index">The index.</param> |
| 53 | /// <returns>The sample value</returns> |
| 54 | public T Get(int index) |
| 55 | { |
| 56 | if (_count == 0 || index >= _data.Length || _data.Length == 0) |
| 57 | return default; |
| 58 | return index == -1 ? _data[_count - 1] : _data[index]; |
| 59 | } |
| 60 | |
| 61 | /// <summary> |
| 62 | /// Clears this buffer. |
no outgoing calls
no test coverage detected