Open bangjiehan opened 8 months ago
Thank you @bangjiehan I think you are right.
We can add bool exist = StreamSystem.TryQueryOffset(string, string, out ulong offset)
(it is more idiomatic)
The important thing is to keep the current implementation. We could mark it as deprecated and remove it on 2.0
Is your feature request related to a problem? Please describe.
I think only when there indeed is something wrong does C# throw a exception. Or at least there is some way to check before, for example call File.Exists before calling File.Read~. There seems no way to check whether Offset exist or not before calling QueryOffset.
Describe the solution you'd like
Add one of the following overloads or modify current implementation of QueryOffset.
Describe alternatives you've considered
No response
Additional context
No response