using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using UnityEngine.Scripting; namespace UnityEngine.Networking { // Token: 0x02000297 RID: 663 [StructLayout(LayoutKind.Sequential)] public sealed class DownloadHandlerAssetBundle : DownloadHandler { // Token: 0x06002D43 RID: 11587 RVA: 0x0004016C File Offset: 0x0003E36C public DownloadHandlerAssetBundle(string url, uint crc) { base.InternalCreateAssetBundle(url, crc); } // Token: 0x06002D44 RID: 11588 RVA: 0x00040180 File Offset: 0x0003E380 public DownloadHandlerAssetBundle(string url, uint version, uint crc) { base.InternalCreateAssetBundleCached(url, "", new Hash128(0U, 0U, 0U, version), crc); } // Token: 0x06002D45 RID: 11589 RVA: 0x000401A0 File Offset: 0x0003E3A0 public DownloadHandlerAssetBundle(string url, Hash128 hash, uint crc) { base.InternalCreateAssetBundleCached(url, "", hash, crc); } // Token: 0x06002D46 RID: 11590 RVA: 0x000401B8 File Offset: 0x0003E3B8 public DownloadHandlerAssetBundle(string url, string name, Hash128 hash, uint crc) { base.InternalCreateAssetBundleCached(url, name, hash, crc); } // Token: 0x06002D47 RID: 11591 RVA: 0x000401CC File Offset: 0x0003E3CC protected override byte[] GetData() { throw new NotSupportedException("Raw data access is not supported for asset bundles"); } // Token: 0x06002D48 RID: 11592 RVA: 0x000401DC File Offset: 0x0003E3DC protected override string GetText() { throw new NotSupportedException("String access is not supported for asset bundles"); } // Token: 0x17000A44 RID: 2628 // (get) Token: 0x06002D49 RID: 11593 public extern AssetBundle assetBundle { [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] get; } // Token: 0x06002D4A RID: 11594 RVA: 0x000401EC File Offset: 0x0003E3EC public static AssetBundle GetContent(UnityWebRequest www) { return DownloadHandler.GetCheckedDownloader(www).assetBundle; } } }