UnsafeMutableRawBufferPointer has three specific methods for reading and writing memory:
copyMemory not take a
byteOffset or have an equivalent that does?
How do I copy all or part of the memory referenced by an
UnsafeRawPointer into another buffer at a given offset?
e.x.: I want to concatenate specific ranges of multiple buffers into a single, contiguous buffer.
I'm able to achieve the outcome I want by using a
for loop and
subscript indexing to copy elements over byte-by-byte but figure there must be better way.