readMessageContextAndInvoke

fun readMessageContextAndInvoke(buffer: AbstractBuffer, action: () -> Unit)

Reads a context from a given buffer and invokes the provided action in it