Skip to content

MoonsideGames/MoonTools.NETPhysFS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A .NET Standard wrapper around the PhysFS IO library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages