return possible next code in buffer