Buffer ports do not support read, read advancing, read decrementing, write, and write advancing APIs.
Access Data From a Buffer Port illustrates multiple methods for accessing data with pointer, iterator, and vector referencing.
If the kernel algorithm uses a vector, use vector referencing with a vector iterator. This approach enables the vector processor and delivers optimal performance.
If the kernel algorithm uses a scalar data type, use iterators to simplify the code. Iterators make the code portable and safer than pointer referencing.