17 ms·
That loop is totally fine. I wrote it many times in C#, C and C++, and I saw it many more times in other people’s code. Microsoft DDK sample: https://github.co
by Const-me 8y ago
That loop is totally fine. I wrote it many times in C#, C and C++, and I saw it many more times in other people’s code.
Microsoft DDK sample: https://github.com/Microsoft/Windows-driver-samples/blob/master/avstream/samplemft0/Mft0.cpp https://github.com/Microsoft/Windows-driver-samples/blob/mas...
Microsoft MediaFoundation sample: https://github.com/Microsoft/Windows-classic-samples/blob/master/Samples/DX11VideoRenderer/cpp/MediaSink.cpp https://github.com/Microsoft/Windows-classic-samples/blob/ma...
OpenSSL: https://github.com/openssl/openssl/blob/master/crypto/sha/sha256.c https://github.com/openssl/openssl/blob/master/crypto/sha/sh...
And many others.
Just because code looks unfamiliar doesn’t mean it’s something wrong with the code.