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
Motivation:
As requested in issues [apple#2875](apple#2875) and [apple#2876](apple#2876), it would be convenient to be able to read the contents of a file into more data types such as `Array`, `ArraySlice` & Foundation's `Data`.
Modifications:
- Extend `Array`, `ArraySlice` & `Data` to be initialisable with the contents of a file.
Result:
The contents of a file can be read into more data types.
Motivation:
As requested in issues
[#2875](#2875) and
[#2876](#2876), it would be
convenient to be able to read the contents of a file into more data
types such as `Array`, `ArraySlice` & Foundation's `Data`.
Modifications:
- Extend `Array`, `ArraySlice` & `Data` to be initialisable with the
contents of a file.
Result:
The contents of a file can be read into more data types.
---------
Co-authored-by: George Barnett <[email protected]>
NIOFileSystem allows
ByteBuffer(contentsOf:maximumSizeAllowed:)
which is great but occasionally aArray<UInt8>
would be great too.The text was updated successfully, but these errors were encountered: