Remove line from write buffer at the end of the decode function