ReadUInt16() public method

public ReadUInt16 ( ) : ushort
return ushort
コード例 #1
0
ファイル: Header.cs プロジェクト: facemao3/heap-shot
 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 ();
 }