public void Read(ByteArray bs) { signature = bs.ReadStringNull(); streamVersion = bs.ReadInt(); unityVersion = bs.ReadStringNull(); unityRevision = bs.ReadStringNull(); minimumStreamedBytes = bs.ReadInt(); headerSize = bs.ReadUInt(); numberOfLevelsToDownload = bs.ReadInt(); int numberOfLevels = bs.ReadInt(); for (int i = 0; i < numberOfLevels; i++) { levelByteEnd.Add(new LevelInfo() { PackSize = bs.ReadUInt(), UncompressedSize = bs.ReadUInt() }); } if (streamVersion >= 2) { completeFileSize = bs.ReadUInt(); } if (streamVersion >= 3) { dataHeaderSize = bs.ReadUInt(); } bs.ReadByte(); }
public void Read(ByteArray bs) { signature = bs.ReadStringNull(); streamVersion = bs.ReadInt(); unityVersion = bs.ReadStringNull(); unityRevision = bs.ReadStringNull(); minimumStreamedBytes = bs.ReadInt(); headerSize = bs.ReadUInt(); numberOfLevelsToDownload = bs.ReadInt(); int numberOfLevels = bs.ReadInt(); for (int i = 0; i < numberOfLevels; i++) { levelByteEnd.Add(new LevelInfo() { PackSize = bs.ReadUInt(), UncompressedSize = bs.ReadUInt() }); } if (streamVersion >= 2) { completeFileSize = bs.ReadUInt(); } if (streamVersion >= 3) { dataHeaderSize = bs.ReadUInt(); } bs.ReadByte(); }
public void Read(ByteArray inData) { type = inData.ReadStringNull(); name = inData.ReadStringNull(); size = inData.ReadInt(); index = inData.ReadInt(); isArray = inData.ReadInt(); version = inData.ReadInt(); metaFlag = inData.ReadInt(); }
public void Read(ByteArray inData, AssetHeader assetHeader) { if (assetHeader.GetVersion() > 5) { assetPath = inData.ReadStringNull(); } guid_high = inData.ReadLong(); guid_low = inData.ReadLong(); type = inData.ReadInt(); filePath = inData.ReadStringNull(); Debug.Log(string.Format("assetPath={0},filePath={1},type={3}", assetPath, filePath, type)); }
public void Read(ByteArray inData, AssetHeader assetHeader) { if (assetHeader.GetVersion() > 5) { assetPath = inData.ReadStringNull(); } guid_high = inData.ReadLong(); guid_low = inData.ReadLong(); type = inData.ReadInt(); filePath = inData.ReadStringNull(); Debug.Log(string.Format("assetPath={0},filePath={1},type={3}",assetPath,filePath,type)); }
public void Read(ByteArray inData, AssetHeader assetHeader) { if (assetHeader.GetVersion() >= 7) { inData.ReadStringNull(); attributes = inData.ReadInt(); } int numBaseClasses = inData.ReadInt(); Debug.Log("numBaseClasses:" + numBaseClasses); for (int i = 0; i < numBaseClasses; i++) { int classID = inData.ReadInt(); FieldTypeNode node = new FieldTypeNode(); node.Read(inData); typeMap.Add(classID, node); } // padding if (assetHeader.GetVersion() >= 7) { inData.ReadInt(); } }
public void Read(ByteArray inData, AssetHeader assetHeader) { if (assetHeader.GetVersion() >= 7) { inData.ReadStringNull(); attributes = inData.ReadInt(); } int numBaseClasses = inData.ReadInt(); Debug.Log("numBaseClasses:" + numBaseClasses); for (int i = 0; i < numBaseClasses; i++) { int classID = inData.ReadInt(); FieldTypeNode node = new FieldTypeNode(); node.Read(inData); typeMap.Add(classID, node); } // padding if (assetHeader.GetVersion() >= 7) { inData.ReadInt(); } }
public void Read(ByteArray inData) { name = inData.ReadStringNull(); offset = inData.ReadUInt(); size = inData.ReadUInt(); Debug.Log(string.Format("name={0},offset={1},size={2}",name,offset,size)); //36+4+4=44 }
public void Read(ByteArray inData) { name = inData.ReadStringNull(); offset = inData.ReadUInt(); size = inData.ReadUInt(); Debug.Log(string.Format("name={0},offset={1},size={2}", name, offset, size)); //36+4+4=44 }
public void Read(ByteArray inData) { type = inData.ReadStringNull(); name = inData.ReadStringNull(); size = inData.ReadInt(); index = inData.ReadInt(); isArray = inData.ReadInt(); version = inData.ReadInt(); metaFlag = inData.ReadInt(); }