# \#binary-parsing

**URL:** https://forums.swift.org/tag/binary-parsing/1139.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [What happened to \`Data(rawCapacity:)\` initializer?](https://forums.swift.org/t/what-happened-to-data-rawcapacity-initializer/83156)

<div class="topic-metadata">

**Author:** [@craigwrong](https://forums.swift.org/u/craigwrong)\
**Replies:** 5\
**Last updated:** [August 31, 2026, 5:02pm UTC](https://forums.swift.org/t/what-happened-to-data-rawcapacity-initializer/83156 "2026-08-31T17:02:57Z")

</div>

Greetings! Trying to understand how to work with output spans. I noticed this WWDC session showcases the use of: let pixelData = Data(rawCapacity: totalBytes) { outputSpan in Which does not seem to exist in Foundatio…

---

## [InternetLines — Split binary data into lines along CR, LF, CRLF, etc. boundaries](https://forums.swift.org/t/internetlines-split-binary-data-into-lines-along-cr-lf-crlf-etc-boundaries/89060)

<div class="topic-metadata">

**Author:** [@CTMacUser](https://forums.swift.org/u/CTMacUser)\
**Replies:** 0\
**Last updated:** [August 19, 2026, 12:39am UTC](https://forums.swift.org/t/internetlines-split-binary-data-into-lines-along-cr-lf-crlf-etc-boundaries/89060 "2026-08-19T00:39:54Z")

</div>

I know we already have line-splitting utilities. I made this as a test. And to work around a pet peeve: super-ASCII bytes aren't necessarily UTF-8, especially from older files. So I need a parser that doesn't assume that…

---

## [Windows Kit: A new Swift projection for Windows APIs](https://forums.swift.org/t/windows-kit-a-new-swift-projection-for-windows-apis/88363)

<div class="topic-metadata">

**Author:** [@TwirlySeal](https://forums.swift.org/u/TwirlySeal)\
**Replies:** 6\
**Last updated:** [July 24, 2026, 6:01am UTC](https://forums.swift.org/t/windows-kit-a-new-swift-projection-for-windows-apis/88363 "2026-07-24T06:01:06Z")

</div>

Hi all, I would like to share an open-source project I have been working on called Windows Kit, which aims to provide a Swift language projection for both Win32 (C and COM) and WinRT APIs from the Windows SDK, Windows A…

---

## [BinaryParseKit: Declarative Binary Parsing with Swift Macros](https://forums.swift.org/t/binaryparsekit-declarative-binary-parsing-with-swift-macros/83132)

<div class="topic-metadata">

**Author:** [@UniverseObserver](https://forums.swift.org/u/UniverseObserver)\
**Replies:** 4\
**Last updated:** [November 13, 2025, 1:56am UTC](https://forums.swift.org/t/binaryparsekit-declarative-binary-parsing-with-swift-macros/83132 "2025-11-13T01:56:36Z")

</div>

Hey folks, I'd like to share BinaryParseKit, a Swift package that uses macros to automatically generate parsing logic for structs and enums from byte arrays. In my daily work, I often need to parse byte arrays into dat…
