pass `in_buffer` as argument