C# library with generally useful stuff.
- Bny.General: the library
- Bny.General.Tester: unit tests
- Documentation: documentation generated by Doxygen
Things that work with memory.
Features:
ConstPtr<T>
pointer to constant memory, simillar toReadOnlySpan
but has pointer arithmetic and other coll stuffPtr<T>
pointer to memory, simillar toSpan<T>
but has pointer arighmetic and other cool stuffReadOnlySpanWrapper<T>
wrapper forReadOnlySpan<T>
that can be casted to objectSpanWrapper<T>
wrapper forSpan<T>
that can be casted to objectConstPtrOrStream
'interface' for eitherConstPtr<byte>
or streamPtrOrStream
'interface' for eitherPtr<byte>
or stream
Features that help with error propagation.
Features:
Result
class that can hold boolean value (success, failure) and message (usually in case of failure) and can throw exception (with that message)ResultEx<Ex>
derives fromResult
, you can also specify the type of exceptionResult<T>
derives fromResult
, you can specify a return value (usually in case of success)Result<T, Ex>
derives fromResult<T>
, you can also specfy the type of exception
This library is available as a NuGet package.
- Author: BonnyAD9
- GitHub repository: Bny.General
- NuGet package: Bny.General
- My website: bonnyad9.github.io
- Documentation: Doxygen