add methods readBuffer in Perser