A .NET Standard wrapper around the PhysFS IO library
Go to file
cosmonaut efec550df0
continuous-integration/drone/push Build is passing Details
Merge branch 'readme_fix' of MoonsideGames/MoonTools.NETPhysFS into master
2020-03-03 01:51:38 +00:00
.vscode updating for latest PhysFS 2020-01-16 17:06:12 -08:00
NETPhysFS more housekeeping 2020-01-17 19:50:59 -08:00
UnitTests fix sln and csproj references 2020-01-17 19:32:25 -08:00
.drone.yml remove deploy step 2020-02-20 23:26:29 -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 add droneCI config 2020-02-20 23:03:25 -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 updated README 2020-03-02 17:49:53 -08:00

README.md

MoonTools.NETPhysFS

Build Status

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 https://gitea.moonside.games/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.