It would be great to have some functions added to quickly convert from BufferArray to Foundation.Data and back.