public AssetsFile CreateAssetsFile(IAssetCollection collection) { AssetsFile assetsFile = new AssetsFile(collection, Name); m_stream.Position = m_offset; assetsFile.Parse(m_stream); long read = m_stream.Position - m_offset; if (read != m_length) { //throw new Exception($"Read {read} but expected {m_length}"); } return(assetsFile); }