forEach

inline fun Buffer.forEach(block: (Byte) -> Unit): Unit

For every byte from this buffer invokes block function giving it as parameter.

inline fun Input.forEach(block: (Byte) -> Unit): Unit

For every byte from this input invokes block function giving it as parameter.