public static void Read(BinaryValueReader reader, out System.StringComparer value) { byte comparerKey; reader.Read(out comparerKey); value = ByteToStringComparerMap[comparerKey] as System.StringComparer; }
public void Read(Stream stream) { Entries.Clear(); using var reader = new BinaryValueReader(stream, StreamOwnership.Retain, Endianness.Little); var header = reader.Read <DwPackHeader>(); Field08 = header.Field08; Index = header.Index; var dataStartOffset = DwPackHeader.SIZE + (header.FileCount * DwPackEntry.SIZE); for (int i = 0; i < header.FileCount; i++) { var entry = reader.Read <DwPackEntry>(); Entries.Add(new DwPackFileEntry(stream, dataStartOffset, ref entry)); } }
static public void Read <K, V>(BinaryValueReader reader, out ScopeMap <K, V> v) { reader.Read(out v); }
static public void Read <T>(BinaryValueReader reader, out ScopeArray <T> v) { reader.Read(out v); }