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.
Install via Unity Package Manager
Add to Unity Package Manager
Paste this URL into Unity's Window › Package Manager › + › Add package from git URL,
or click Install.
git
https://www.pkglnk.dev/native-collections-stream.git Install 0
Unity Compatibility
Unity 6 2023.2 2023.1 2022.3 LTS 2021.3 LTS 2020.3 LTS 2019.4 LTS
README
Rendered from GitHubNative 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.
Versions 0
No versions tracked yet.
Dependencies 1
Changelog 0 releases
No changelog entries yet. Run the admin Changelog & Version Scanner to pull from the repository's CHANGELOG.md.
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)Embed badge README snippet
Markdown
[](https://www.pkglnk.dev/pkg/native-collections-stream) HTML
<a href="https://www.pkglnk.dev/pkg/native-collections-stream"><img src="https://www.pkglnk.dev/badge/native-collections-stream.svg" alt="pkglnk installs"></a> URL
https://www.pkglnk.dev/badge/native-collections-stream.svg Comments
No comments yet. Be the first!


Sign in to join the conversation
Sign In