Made the functions that modify the buffer return a void ptr