This is achieved by encoding the type of function used in the first two bytes. First byte: b: buffered Second byte: f: formatted