예제 #1
0
 public TableRecord(List <byte> fileData, bool isHeader)
 {
     rbc          = new ReadBytesConverter();
     tableRowType = rbc.GetNullTerminatedString(fileData, Size);
     //This is the size, but it will be recalculated during the write stage. Its bytes are derived by subclasses
     if (isHeader)
     {
         InitialSize = rbc.ReadInt(fileData, Size);
     }
     else
     {
         InitialSize = rbc.ReadShort(fileData, Size);
     }
 }
예제 #2
0
 public HeaderPrefixRecord(List <byte> fileData)
 {
     rbc        = new ReadBytesConverter();
     TableID    = rbc.ReadShort(fileData, 0);
     NumHeaders = rbc.ReadInt(fileData, sizeof(short));
 }