FyreVM.Quetzal.StrToID C# (CSharp) 메소드

StrToID() 개인적인 정적인 메소드

private static StrToID ( string type ) : uint
type string
리턴 uint
        private static uint StrToID(string type)
        {
            byte a = (byte)type[0];
            byte b = (byte)type[1];
            byte c = (byte)type[2];
            byte d = (byte)type[3];
            return (uint)((a << 24) + (b << 16) + (c << 8) + d);
        }