10 Commits

Author SHA1 Message Date
Charles Hu
7272a47c0b
Refactoring some import conditions (#298) 2023-10-25 15:11:37 -07:00
Charles Hu
30bc5b99f2
Introduce Availability Macros for FoundationPreview (#279) 2023-10-04 14:44:37 -07:00
Charles Hu
902cb582b3
Add the missing availability marker to Data.replaceBytes (#272) 2023-09-28 15:18:21 -07:00
Jeremy Schonfeld
688e32acb5
(114051918) Conditionalize Darwin imports with canImport instead of os
* Conditionalize Darwin imports with canImport instead of os

* Update DataProtocol.swift

Co-authored-by: Max Desiatov <m_desiatov@apple.com>

---------

Co-authored-by: Guillaume Lessard <glessard@users.noreply.github.com>
Co-authored-by: Max Desiatov <m_desiatov@apple.com>
2023-08-21 10:13:24 -06:00
Saleem Abdulrasool
38b33c370a
FoundationEssentials: allow Data to build on Windows
`unmap` is a non-portable function as it is not part of the C standard.
The correct spelling for this on Windows is `UnmapViewOfFile` which
expects that the data to be mapped by `MapViewOfFile`.  This cannot be
used for freeing memory in general.
2023-05-16 09:07:43 -07:00
Guillaume Lessard
5c9bdf6205
Fix Memory Binding Issues (#94)
* fix memory binding

* use `load(as:)` instead of binding memory

* Use temporary binding rather than `bindMemory`

* use `load(as:)` and `storeBytes(of:as:)` as appropriate

* use temporary binding rather than binding assertions

* add a note about index validation
2023-05-09 13:47:26 -07:00
Alexander Cyon
09606b457d
Fix typos (#68) 2023-04-29 06:28:00 -07:00
Tony Parker
0106af2723 rdar://105186248 (Fix more warnings in Swift) 2023-03-28 19:35:50 -07:00
Jeremy Schonfeld
d95b8c25ec
rdar://105741089 (Data API more available than Data in FoundationEssentials) 2023-02-21 13:22:49 -08:00
Charles Hu
363e0c9a89 FoundationPreview: Initial release 2023-02-07 18:36:16 -08:00