Native Collections Stream
Native Collections Stream provides Stream, TextReader, and TextWriter implementations backed by Unity's Native Collections. Use NativeList, UnsafeList, FixedList, NativeText, UnsafeText, and FixedString types as standard .NET streams for serialization, data processing, and I/O operations in performance-critical code.
com.gilzoide.native-collections-stream Unity Compatibility
Unity 6 Supported
2023.2 Supported
2023.1 Supported
2022.3 LTS Supported
2021.3 LTS Supported
2020.3 LTS Unsupported
2019.4 LTS Unsupported

Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/native-collections-stream.git README Markdown
Copy this to your project's README.md
## Installation
Add **Native Collections Stream** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/native-collections-stream.git
```
[](https://www.pkglnk.dev/pkg/native-collections-stream)Dependencies (1)
README
Native Collections Stream
Stream, TextReader and TextWriter implementations backed by Unity Native Collections.
Feature
Streamimplementations:- NativeListStream: stream backed by a
NativeList<byte> - UnsafeListStream: read-only stream backed by a
UnsafeList<byte> - FixedList32BytesStream: read-only stream backed by a
FixedList32Bytes<byte> - FixedList64BytesStream: read-only stream backed by a
FixedList64Bytes<byte> - FixedList128BytesStream: read-only stream backed by a
FixedList128Bytes<byte> - FixedList512BytesStream: read-only stream backed by a
FixedList512Bytes<byte> - FixedList4096BytesStream: read-only stream backed by a
FixedList4096Bytes<byte> - NativeTextStream: stream backed by a
NativeText - UnsafeTextStream: read-only stream backed by a
UnsafeText - FixedString32BytesStream: read-only stream backed by a
FixedString32Bytes - FixedString64BytesStream: read-only stream backed by a
FixedString64Bytes - FixedString128BytesStream: read-only stream backed by a
FixedString128Bytes - FixedString512BytesStream: read-only stream backed by a
FixedString512Bytes - FixedString4096BytesStream: read-only stream backed by a
FixedString4096Bytes
- NativeListStream: stream backed by a
TextReaderimplementations:- NativeTextReader: text reader backed by a
NativeText - UnsafeTextReader: text reader backed by a
UnsafeText - FixedString32BytesReader: text reader backed by a
FixedString32Bytes - FixedString64BytesReader: text reader backed by a
FixedString64Bytes - FixedString128BytesReader: text reader backed by a
FixedString128Bytes - FixedString512BytesReader: text reader backed by a
FixedString512Bytes - FixedString4096BytesReader: text reader backed by a
FixedString4096Bytes - FixedString4096BytesReader: text reader backed by a
FixedString4096Bytes
- NativeTextReader: text reader backed by a
TextWriterimplementations:- NativeTextWriter: text writer backed by a
NativeText
- NativeTextWriter: text writer backed by a
How to install
Either:
- Use the openupm registry and install this package using the openupm-cli:
openupm add com.gilzoide.native-collections-stream - Install using the Unity Package Manager with the following URL:
https://github.com/gilzoide/unity-native-collections-stream.git#1.0.0-preview1 - Clone this repository or download a snapshot of it directly inside your project's
AssetsorPackagesfolder.
Comments
No comments yet. Be the first!
Sign in to join the conversation
Sign In