{"id":14961015,"url":"https://github.com/voltstro-studios/nativearrayspanextensions","last_synced_at":"2025-10-24T20:30:40.731Z","repository":{"id":106359650,"uuid":"522239573","full_name":"Voltstro-Studios/NativeArraySpanExtensions","owner":"Voltstro-Studios","description":"Provides extensions to Unity's NativeArray that make using .NET's Span\u003cT\u003e with them easier.","archived":false,"fork":false,"pushed_at":"2023-05-10T08:00:22.000Z","size":31,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T03:54:08.664Z","etag":null,"topics":["csharp","dotnet","extension","span","unity","unity-2021","unity-extension","unity-package","upm","upm-package"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Voltstro-Studios.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-07T14:45:00.000Z","updated_at":"2023-12-26T10:22:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"39d7dd10-9f9c-417a-b412-821214b3d65e","html_url":"https://github.com/Voltstro-Studios/NativeArraySpanExtensions","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.0714285714285714,"last_synced_commit":"e386b144a0c05292eeed3de2d8bb7111803d1ec5"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voltstro-Studios%2FNativeArraySpanExtensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voltstro-Studios%2FNativeArraySpanExtensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voltstro-Studios%2FNativeArraySpanExtensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Voltstro-Studios%2FNativeArraySpanExtensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Voltstro-Studios","download_url":"https://codeload.github.com/Voltstro-Studios/NativeArraySpanExtensions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238030288,"owners_count":19404859,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","dotnet","extension","span","unity","unity-2021","unity-extension","unity-package","upm","upm-package"],"created_at":"2024-09-24T13:23:38.369Z","updated_at":"2025-10-24T20:30:40.302Z","avatar_url":"https://github.com/Voltstro-Studios.png","language":"C#","readme":"# Native Array Span Extensions\n\n[![License](https://img.shields.io/github/license/Voltstro-Studios/NativeArraySpanExtensions.svg)](/LICENSE.md)\n[![Discord](https://img.shields.io/badge/Discord-Voltstro-7289da.svg?logo=discord)](https://discord.voltstro.dev)\n[![YouTube](https://img.shields.io/badge/Youtube-Voltstro-red.svg?logo=youtube)](https://www.youtube.com/Voltstro)\n\nProvides extensions to Unity's `NativeArray\u003cT\u003e` that make using .NET's Span\u003cT\u003e with them easier.\n\n## Features\n\n- Provides theses extensions to `NativeArray\u003cT\u003e`:\n    - `CopyTo` for copying to a `Span\u003cT\u003e`\n    - `CopyFrom` for copying from a `ReadOnlySpan\u003cT\u003e`\n    - Same extensions are also available for `NativeSlice\u003cT\u003e`\n- Provides theses extensions to `Span\u003cT\u003e` and `ReadOnlySpan\u003cT\u003e`:\n    - `CopyTo` for copying a span to a `NativeArray\u003cT\u003e`\n    - `ToNativeArray` for creating a new `NativeArray\u003cT\u003e` and copying the span's buffer to it\n\n## Getting Started\n\n### Package Installation\n\n#### Prerequisites\n\n```\nUnity 2020.3.x\n(Unity 2021.3.x is the recommended version however)\n```\n\n(Newer Unity versions should be fine as well)\n\n#### Unity 2020.3.x Prerequisites\n\n**IF YOU ARE USING UNITY 2020.3.x WITH THIS PACKAGE, READ THIS**. (Newer versions do not need this step!)\n\n`System.Memory` dll is required (this is where `Span\u003cT\u003e` use to come from). This package it self has no direct dependent installation method for `System.Memory`. You can either install it directly into your Unity project from [NuGet](https://www.nuget.org/packages/System.Memory) (by extracting it from the `.nupkg` file), or via an automatic seamless UPM integration, such as [Voltstro UPM](https://github.com/Voltstro/VoltstroUPM#using-unitynuget-packages), [OpenUPM](https://openupm.com/nuget/), or [UnityNuGet](https://github.com/xoofx/UnityNuGet).\n\n### Installation Methods\n\nThere are three main sources on how you can install this package. Pick which ever one suites you the best!\n\n#### Voltstro UPM Registry\n\nYou can install this package from our custom UPM registry. To setup our registry,\nsee [here](https://github.com/Voltstro/VoltstroUPM#setup).\n\nOnce you have the registry added to your project, you can install it like any other package via the package manager.\n\n#### OpenUPM\n\nYou can install this package via [OpenUPM](https://openupm.com/).\n\nTo install it, use their CLI:\n\n```bash\nopenupm add dev.voltstro.nativearrayspanextensions\n```\n\n#### Git\n\nTo install it via the package manager with git you will need to:\n\n1. Open up the package manager via Windows **-\u003e** Package Manager\n2. Click on the little + sign **-\u003e** Add package from git URL...\n3. Type `https://github.com/Voltstro-Studios/NativeArraySpanExtensions.git` and add it\n4. Unity will now download and install the package\n\n## Authors\n\n**Voltstro** - *Initial Work* - [Voltstro](https://github.com/Voltstro)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](/LICENSE.md) file for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoltstro-studios%2Fnativearrayspanextensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoltstro-studios%2Fnativearrayspanextensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoltstro-studios%2Fnativearrayspanextensions/lists"}