Added make_buffer function for general byte buffers