Parse buffer