cpp buf tools