public static Tuple <T, long> ReadTupleTLong <T>(this AssetStream stream) where T : IAssetReadable, new() { T t = new T(); t.Read(stream); long value = stream.ReadInt64(); return(new Tuple <T, long>(t, value)); }
public static void Read(this IDictionary <string, long> _this, AssetStream stream) { int count = stream.ReadInt32(); for (int i = 0; i < count; i++) { string key = stream.ReadStringAligned(); long value = stream.ReadInt64(); _this.Add(key, value); } }