Skip to content

v1.0.0-preview6

Pre-release
Pre-release
Compare
Choose a tag to compare
@rickbrew rickbrew released this 03 Jan 19:47
· 32 commits to main since this release

This release adds UnsafePtr.AddByteOffset() and SubtractByteOffset(), and reworks UnsafePtr.AsPointer() to return pointers, not ref pointers. The latter returns a pointer with the same level of indirection as the input parameter, so ref T -> T* (same as Unsafe.AsPointer() but strongly-typed), ref T* -> T**, and ref T** -> T***.