using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using UnityEngine.Scripting; namespace UnityEngine.Networking { // Token: 0x02000296 RID: 662 [StructLayout(LayoutKind.Sequential)] public class DownloadHandlerScript : DownloadHandler { // Token: 0x06002D40 RID: 11584 RVA: 0x00040128 File Offset: 0x0003E328 public DownloadHandlerScript() { base.InternalCreateScript(); } // Token: 0x06002D41 RID: 11585 RVA: 0x00040138 File Offset: 0x0003E338 public DownloadHandlerScript(byte[] preallocatedBuffer) { if (preallocatedBuffer == null || preallocatedBuffer.Length < 1) { throw new ArgumentException("Cannot create a preallocated-buffer DownloadHandlerScript backed by a null or zero-length array"); } base.InternalCreateScript(); this.InternalSetPreallocatedBuffer(preallocatedBuffer); } // Token: 0x06002D42 RID: 11586 [GeneratedByOldBindingsGenerator] [MethodImpl(MethodImplOptions.InternalCall)] private extern void InternalSetPreallocatedBuffer(byte[] buffer); } }