Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gilzoide/unity-native-collections-stream

Stream, TextReader and TextWriter implementations backed by Unity Native Collections
https://github.com/gilzoide/unity-native-collections-stream

collections stream streaming textreader textwriter unity unity2d unity3d upm upm-package

Last synced: 17 days ago
JSON representation

Stream, TextReader and TextWriter implementations backed by Unity Native Collections

Awesome Lists containing this project

README

        

# Native Collections Stream
[![openupm](https://img.shields.io/npm/v/com.gilzoide.native-collections-stream?label=openupm&registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.gilzoide.native-collections-stream/)

`Stream`, `TextReader` and `TextWriter` implementations backed by Unity Native Collections.

## Feature
- `Stream` implementations:
+ [NativeListStream](Runtime/NativeListStream.cs): stream backed by a `NativeList`
+ [UnsafeListStream](Runtime/NativeListStream.cs): read-only stream backed by a `UnsafeList`
+ [FixedList32BytesStream](Runtime/NativeListStream.cs): read-only stream backed by a `FixedList32Bytes`
+ [FixedList64BytesStream](Runtime/NativeListStream.cs): read-only stream backed by a `FixedList64Bytes`
+ [FixedList128BytesStream](Runtime/NativeListStream.cs): read-only stream backed by a `FixedList128Bytes`
+ [FixedList512BytesStream](Runtime/NativeListStream.cs): read-only stream backed by a `FixedList512Bytes`
+ [FixedList4096BytesStream](Runtime/NativeListStream.cs): read-only stream backed by a `FixedList4096Bytes`
+ [NativeTextStream](Runtime/NativeTextStream.cs): stream backed by a `NativeText`
+ [UnsafeTextStream](Runtime/NativeTextStream.cs): read-only stream backed by a `UnsafeText`
+ [FixedString32BytesStream](Runtime/NativeTextStream.cs): read-only stream backed by a `FixedString32Bytes`
+ [FixedString64BytesStream](Runtime/NativeTextStream.cs): read-only stream backed by a `FixedString64Bytes`
+ [FixedString128BytesStream](Runtime/NativeTextStream.cs): read-only stream backed by a `FixedString128Bytes`
+ [FixedString512BytesStream](Runtime/NativeTextStream.cs): read-only stream backed by a `FixedString512Bytes`
+ [FixedString4096BytesStream](Runtime/NativeTextStream.cs): read-only stream backed by a `FixedString4096Bytes`
- `TextReader` implementations:
+ [NativeTextReader](Runtime/NativeTextReader.cs): text reader backed by a `NativeText`
+ [UnsafeTextReader](Runtime/NativeTextReader.cs): text reader backed by a `UnsafeText`
+ [FixedString32BytesReader](Runtime/NativeTextReader.cs): text reader backed by a `FixedString32Bytes`
+ [FixedString64BytesReader](Runtime/NativeTextReader.cs): text reader backed by a `FixedString64Bytes`
+ [FixedString128BytesReader](Runtime/NativeTextReader.cs): text reader backed by a `FixedString128Bytes`
+ [FixedString512BytesReader](Runtime/NativeTextReader.cs): text reader backed by a `FixedString512Bytes`
+ [FixedString4096BytesReader](Runtime/NativeTextReader.cs): text reader backed by a `FixedString4096Bytes`
+ [FixedString4096BytesReader](Runtime/NativeTextReader.cs): text reader backed by a `FixedString4096Bytes`
- `TextWriter` implementations:
+ [NativeTextWriter](Runtime/NativeTextWriter.cs): text writer backed by a `NativeText`

## How to install
Either:
- Use the [openupm registry](https://openupm.com/) and install this package using the [openupm-cli](https://github.com/openupm/openupm-cli):
```
openupm add com.gilzoide.native-collections-stream
```
- Install using the [Unity Package Manager](https://docs.unity3d.com/Manual/upm-ui-giturl.html) 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 `Assets` or `Packages` folder.