Exemple #1
0
    public static void Read(BinaryValueReader reader, out System.StringComparer value)
    {
        byte comparerKey;

        reader.Read(out comparerKey);
        value = ByteToStringComparerMap[comparerKey] as System.StringComparer;
    }
Exemple #2
0
        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));
            }
        }
Exemple #3
0
 static public void Read <K, V>(BinaryValueReader reader, out ScopeMap <K, V> v)
 {
     reader.Read(out v);
 }
Exemple #4
0
 static public void Read <T>(BinaryValueReader reader, out ScopeArray <T> v)
 {
     reader.Read(out v);
 }