public readonly long MethodBase; // base value for MonoMethod pointers BufferHeader(LogFileReader reader) { BufId = reader.ReadInt32(); if (BufId != BUF_ID) { throw new IOException(string.Format("Incorrect buffer id: 0x{0:X}", BufId)); } Length = reader.ReadInt32(); TimeBase = reader.ReadUInt64(); PtrBase = reader.ReadInt64(); ObjBase = reader.ReadInt64(); ThreadId = reader.ReadInt64(); MethodBase = reader.ReadInt64(); }
public readonly int SysId; // operating system and architecture identifier Header(LogFileReader reader) { Id = reader.ReadInt32(); if (Id != LogHeaderId) { throw new InvalidOperationException("Id doesn't match."); } Major = reader.ReadByte(); Minor = reader.ReadByte(); Format = reader.ReadByte(); PtrSize = reader.ReadByte(); StartupTime = reader.ReadInt64(); TimerOverhead = reader.ReadInt32(); Flags = reader.ReadInt32(); Pid = reader.ReadInt32(); Port = reader.ReadUInt16(); SysId = reader.ReadUInt16(); }
Header(LogFileReader reader) { Console.WriteLine("hoge"); Id = reader.ReadInt32(); if (Id != LogHeaderId) { throw new InvalidOperationException("Id doesn't match."); } Major = reader.ReadByte(); Minor = reader.ReadByte(); Format = reader.ReadByte(); PtrSize = reader.ReadByte(); StartupTime = reader.ReadInt64(); TimerOverhead = reader.ReadInt32(); Flags = reader.ReadInt32(); Pid = reader.ReadInt32(); Port = reader.ReadUInt16(); // SysId = reader.ReadUInt16 (); Args = reader.ReadVarString(); Arch = reader.ReadVarString(); OS = reader.ReadVarString(); }