A .NET Standard wrapper around the PhysFS IO library
Go to file
Evan Hemsley 65cda93e2c license 2020-01-17 20:05:47 -08:00
.vscode updating for latest PhysFS 2020-01-16 17:06:12 -08:00
NETPhysFS updating rename 2020-01-17 19:29:39 -08:00
UnitTests fix sln and csproj references 2020-01-17 19:32:25 -08:00
.editorconfig Added .editorconfig 2017-04-12 20:03:44 +02:00
.gitattributes Initial commit to add default .gitIgnore and .gitAttribute files. 2016-01-27 18:57:32 +01:00
.gitignore updating for latest PhysFS 2020-01-16 17:06:12 -08:00
CHANGELOG.md Updated license to 2017 2017-05-28 14:47:02 +02:00
LICENSE license 2020-01-17 20:05:47 -08:00
NETPhysFS.sln fix sln and csproj references 2020-01-17 19:32:25 -08:00
README.md acknowledgements 2020-01-17 19:45:32 -08:00

README.md

MoonTools.NETPhysFS

PhysFS wrapper for .NET Standard

This library is a .NET Standard wrapper around the cross-platform IO libary PhysFS. It provides IEnumerable iterators to avoid creating garbage, and a Stream subclass for easy usage.

Installation

You can use this library by adding it as a submodule and then referencing it in your .csproj file.

  git submodule add git@github.com:MoonsideGames/MoonTools.NETPhysFS.git

You must also include a compiled binary of PhysFS for your platform for this to work properly.

Example

using var pfs = new PhysFS(""); // automatic dispose pattern
using (var reader = new StreamReader(pfs.OpenRead("/helloworld.txt")))
{
  var contents = reader.ReadToEnd();
}

Acknowledgements

This project was forked from the very helpful SharpPhysFS by Francesco Bertolaccini.