SceneGate / Yarhl

Framework for the implementation of format converters like game assets or media files
https://scenegate.github.io/Yarhl/
MIT License
60 stars 10 forks source link

✨ Implement constructor to create BinaryFormat from a file #205

Closed pleonex closed 9 months ago

pleonex commented 9 months ago

As it's a common operation, add a constructor to create a new instance of BinaryFormat from a file path. To create from a part of a file, use DataStreamFactory, we don't want to port the full API in the constructor.

This PR closes #195

Quality check list

Acceptance criteria

Follow-up work

None

Example

using var binary = new BinaryFormat("file1.bin", FileOpenMode.Read);