Пример #1
0
 /// <summary>
 /// Reads a single resource table header.
 /// </summary>
 /// <param name="reader">The reader.</param>
 /// <returns>The table header.</returns>
 public static VersionTableEntryHeader FromReader(IBinaryStreamReader reader)
 {
     return(new VersionTableEntryHeader
     {
         Length = reader.ReadUInt16(),
         ValueLength = reader.ReadUInt16(),
         Type = (VersionTableValueType)reader.ReadUInt16(),
         Key = reader.ReadUnicodeString(),
     });
 }