You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The raw buffer form is more general than this typed API:
publicfunccopyBytes<DestinationType>(tobuffer: UnsafeMutableBufferPointer<DestinationType>, fromrange: Range<Index>? = nil) -> Int
However, we don't yet have language support for automatic typed-to-raw buffer argument conversion, so the typed buffer API is still a useful convenience.
The behavior of the API that takes a `count` instead of a `range` should behave the same as this existing API, except that it will be bounds checked in Debug builds:
Additional Detail from JIRA
md5: a31620f897c965b5529b6d73aec1ee7c
cloned from:
relates to:
Issue Description:
In the Foundation Data API, add methods that copy into a raw buffer pointer:
The raw buffer form is more general than this typed API:
However, we don't yet have language support for automatic typed-to-raw buffer argument conversion, so the typed buffer API is still a useful convenience.
The behavior of the API that takes a `count` instead of a `range` should behave the same as this existing API, except that it will be bounds checked in Debug builds:
These overloads should be completely source compatible, but I have not verified with a prototype.
The text was updated successfully, but these errors were encountered: