basic skeleton for buffer routines
put default constructor inline