System.IO.Stream.ReadUInt64BE()

Here are the examples of the csharp api System.IO.Stream.ReadUInt64BE() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3 Examples 7

19 Source : StreamExtensions.cs
with MIT License
from GrapeCity

public static long ReadInt64BE(this Stream s)
        {
            return (long)s.ReadUInt64BE();
        }

19 Source : StreamExtensions.cs
with MIT License
from GrapeCity

public static ulong ReadUInt64(this Stream s, bool bigEndian)
        {
            return bigEndian ? s.ReadUInt64BE() : s.ReadUInt64LE();
        }

19 Source : StreamExtensions.cs
with MIT License
from GrapeCity

public static unsafe double ReadDoubleBE(this Stream s)
        {
            ulong v = s.ReadUInt64BE();
            return *((double*)&v);
        }