withTemporaryAllocation
-
[SE-0524] Add withTemporaryAllocation using Output(Raw)SpanSwift 2026. 5. 9. 13:50
안녕하세요. 그린입니다 🍏이번 포스팅에서는 SE-0524 — OutputSpan을 활용한 withTemporaryAllocation 추가에 대해 정리해보겠습니다 🙋🏻IntroProposal: SE-0524Author: Max DesiatovReview Manager: Doug GregorStatus: Implemented (Swift 6.4)MotivationSE-0322와 SE-0437에서 도입된 withUnsafeTemporaryAllocation은 스택에 임시 메모리를 할당할 수 있는 유용한 API입니다.하지만 이 함수는 UnsafeMutableBufferPointer 또는 UnsafeMutableRawBufferPointer를 yield하기 때문에, 초기화와 해제를 개발자가 직접 관리해야 했..