public void Load(Stream s) { BinaryReader br = new BinaryReader(s); int ver = br.ReadInt32(); specialType = (BundleSpecialType)br.ReadInt32(); option = (BundleOption)br.ReadInt32(); int count = br.ReadInt32(); deps = new DepInfo[count]; for (int i = 0; i < count; i++) { deps[i].name = br.ReadString(); deps[i].path = br.ReadString(); } }