Working on encoded/decoded buffers