Creates a buffer over the same memory as the given buffer slice.
- Xcode 9.3+
- Swift Standard Library
The buffer slice to rebase.
The new buffer represents the same region of memory as
slice, but is indexed starting at zero instead of sharing indices with the original buffer. For example:
slice as the
rebased buffer, the following are true:
.start Index == 0
rebased == slice[n]
rebased == buffer[n]
.count == slice .count