JenyaRostov
Processing files as fast as possible
you can either load the entire file with File.ReadAllBytes and then process it one chunk at a time with Memory<T>
or you can use FileStream and read n bytes at a time using
Read
method with Span<byte> overload39 replies
❔ How to make a method returning type T but only taking subclasses of a certain class ?
could go even further and maybe do something like
where CachedAssets is
This way if you have a new asset type you want to cache you just add a key-value pair to CachedAssets dictionary
64 replies