This function depends on the sink `Buffer` you cannot make it pure, and it is actually *not* safe. Please remove both.