Inline buffer functions