Engines/FlatRedBallXNA/FlatRedBall/IO/PngLoader.cs
/// <summary>
/// Arranges and combines the byte values stored in byte[] bytes in order to form
/// a uint.
/// </summary>
/// <param name="bytes">A byte[] of length 4 to be formed into a uint.</param>
/// <returns>The uint represented by byte[] bytes.</returns>
Arranges and combines the byte values stored in byte[] bytes in order to form
a uint.
Arranges and combines the byte values stored in byte [] bytes in order to form a uint .
private static uint FormUint(ref Stream bytes)
        {
            return (uint)((bytes.ReadByte() << 24) |
                    (bytes.ReadByte() << 16) |
                    (bytes.ReadByte() << 8) |
                    (bytes.ReadByte()));
        }
private static uint FormUint ( ref Stream bytes ) { return ( uint ) ( ( bytes . ReadByte ( ) << 24 ) | ( bytes . ReadByte ( ) << 16 ) | ( bytes . ReadByte ( ) << 8 ) | ( bytes . ReadByte ( ) ) ) ; }
Arranges and combines the byte values stored in byte[] bytes in order to form
a uint.
Arranges and combines the byte values stored in byte [] bytes in order to form a uint .
The uint represented by byte[] bytes.
The uint represented by byte [] bytes .
Stream
ref
bytes
A byte[] of length 4 to be formed into a uint.
A byte [] of length 4 to be formed into a uint .