Added some methods to help with copying to and from other buffers.