| 497 | } |
| 498 | |
| 499 | Index getBufferIndexFromIndex(const Index& index, const Size& bufferSize, const Index& bufferStartIndex) |
| 500 | { |
| 501 | if (checkIfStartIndexAtDefaultPosition(bufferStartIndex)) return index; |
| 502 | |
| 503 | Index bufferIndex = index + bufferStartIndex; |
| 504 | wrapIndexToRange(bufferIndex, bufferSize); |
| 505 | return bufferIndex; |
| 506 | } |
| 507 | |
| 508 | size_t getLinearIndexFromIndex(const Index& index, const Size& bufferSize, const bool rowMajor) |
| 509 | { |
no test coverage detected