new constructors for buffers, based on raw pointers.