# Bag-of-Bytes types in Swift

**URL:** <https://forums.swift.org/t/bag-of-bytes-types-in-swift/62120>\
**Category:** Development\
**Tags:** foundation, stdlib, swift-nio\
**Created:** [December 18, 2022, 3:47pm UTC](https://forums.swift.org/t/bag-of-bytes-types-in-swift/62120 "2022-12-18T15:47:11Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![carlynorama](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/carlynorama/32/27072_2.png) [@carlynorama](https://forums.swift.org/u/carlynorama)\
**Post date:** [August 29, 2023, 9:42pm UTC](https://forums.swift.org/t/bag-of-bytes-types-in-swift/62120/14 "2023-08-29T21:42:54Z")

</div>

Has there been a proposal? What's the current recommendation on the type to use for implementing a ByteBuffer analog if importing SWIFT-NIO isn't possible?

FWIW, I've really enjoyed poking around `swift-nio` (shout out to `void CNIOLinux_i_do_nothing_just_working_around_a_darwin_toolchain_bug2(void) {}` and `HappyEyeBalls.swift`) to get some ideas for putzing around with serial ports.

Sure would be wonderful to be able to have ByteBuffer, CircleBuffer and MarkedCircularBuffer around for some other projects I can think of, too... 🙂

EDITED: Related conversation

- [I/O types in Foundation](https://forums.swift.org/t/i-o-types-in-foundation/64747/)
- [Swift Async Algorithms Proposal: Buffer](https://forums.swift.org/t/swift-async-algorithms-proposal-buffer/63155)

---

_[View the full topic](https://forums.swift.org/t/bag-of-bytes-types-in-swift/62120)._
