More buffer.cpp methods