Bny.General 1.2.0
Generally useful stuff
|
C# library with generally useful stuff.
Things that work with memory.
Features:
ConstPtr<T>
pointer to constant memory, simillar to ReadOnlySpan
but has pointer arithmetic and other coll stuffPtr<T>
pointer to memory, simillar to Span<T>
but has pointer arighmetic and other cool stuffReadOnlySpanWrapper<T>
wrapper for ReadOnlySpan<T>
that can be casted to objectSpanWrapper<T>
wrapper for Span<T>
that can be casted to objectConstPtrOrStream
'interface' for either ConstPtr<byte>
or streamPtrOrStream
'interface' for either Ptr<byte>
or streamFeatures 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 from Result
, you can also specify the type of exceptionResult<T>
derives from Result
, you can specify a return value (usually in case of success)Result<T, Ex>
derives from Result<T>
, you can also specfy the type of exceptionThis library is available as a NuGet package.