Buf methods