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

private static _ReadFourBytes ( System s, string message ) : int
s System
message string
리턴 int
예제 #1
0
        // Token: 0x06000343 RID: 835 RVA: 0x000181FC File Offset: 0x000163FC
        internal static int ReadEntrySignature(Stream s)
        {
            int num = 0;

            try
            {
                num = SharedUtilities._ReadFourBytes(s, "n/a");
                if (num == 134695760)
                {
                    s.Seek(12L, SeekOrigin.Current);
                    num = SharedUtilities._ReadFourBytes(s, "n/a");
                    if (num != 67324752)
                    {
                        s.Seek(8L, SeekOrigin.Current);
                        num = SharedUtilities._ReadFourBytes(s, "n/a");
                        if (num != 67324752)
                        {
                            s.Seek(-24L, SeekOrigin.Current);
                            num = SharedUtilities._ReadFourBytes(s, "n/a");
                        }
                    }
                }
            }
            catch (BadReadException)
            {
            }
            return(num);
        }
예제 #2
0
        // Token: 0x06000342 RID: 834 RVA: 0x000181C4 File Offset: 0x000163C4
        internal static int ReadSignature(Stream s)
        {
            int result = 0;

            try
            {
                result = SharedUtilities._ReadFourBytes(s, "n/a");
            }
            catch (BadReadException)
            {
            }
            return(result);
        }
예제 #3
0
 // Token: 0x06000344 RID: 836 RVA: 0x00018298 File Offset: 0x00016498
 internal static int ReadInt(Stream s)
 {
     return(SharedUtilities._ReadFourBytes(s, "Could not read block - no data!  (position 0x{0:X8})"));
 }