BitSharper.Utils.ReadUint32 C# (CSharp) 메소드

ReadUint32() 공개 정적인 메소드

public static ReadUint32 ( byte bytes, int offset ) : uint
bytes byte
offset int
리턴 uint
        public static uint ReadUint32(byte[] bytes, int offset)
        {
            return (((uint) bytes[offset + 0]) << 0) |
                   (((uint) bytes[offset + 1]) << 8) |
                   (((uint) bytes[offset + 2]) << 16) |
                   (((uint) bytes[offset + 3]) << 24);
        }

Usage Example

예제 #1
0
        internal uint ReadUint32()
        {
            var u = Utils.ReadUint32(Bytes, Cursor);

            Cursor += 4;
            return(u);
        }
All Usage Examples Of BitSharper.Utils::ReadUint32