I use the following code to read BigEndian information using BinaryReader but I\'m not sure if it is the efficient way of doing it. Is there any better solution
BinaryReader
As of 2019 (in fact, since .net core 2.1), there is now
byte[] buffer = ...; BinaryPrimitives.ReadInt32BigEndian(buffer.AsSpan());
Documentation
Implementation