scripts
This commit is contained in:
@@ -0,0 +1,98 @@
|
||||
using System;
|
||||
|
||||
namespace System.Runtime.InteropServices
|
||||
{
|
||||
/// <summary>Encapsulates an array and an offset within the specified array.</summary>
|
||||
// Token: 0x020002ED RID: 749
|
||||
[ComVisible(true)]
|
||||
[Serializable]
|
||||
public struct ArrayWithOffset
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.ArrayWithOffset" /> structure.</summary>
|
||||
/// <param name="array">A managed array. </param>
|
||||
/// <param name="offset">The offset in bytes, of the element to be passed through platform invoke. </param>
|
||||
// Token: 0x060021B4 RID: 8628 RVA: 0x00078F04 File Offset: 0x00077104
|
||||
public ArrayWithOffset(object array, int offset)
|
||||
{
|
||||
this.array = array;
|
||||
this.offset = offset;
|
||||
}
|
||||
|
||||
/// <summary>Indicates whether the specified object matches the current <see cref="T:System.Runtime.InteropServices.ArrayWithOffset" /> object.</summary>
|
||||
/// <returns>true if the object matches this <see cref="T:System.Runtime.InteropServices.ArrayWithOffset" />; otherwise, false.</returns>
|
||||
/// <param name="obj">Object to compare with this instance. </param>
|
||||
// Token: 0x060021B5 RID: 8629 RVA: 0x00078F14 File Offset: 0x00077114
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (!(obj is ArrayWithOffset))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
ArrayWithOffset arrayWithOffset = (ArrayWithOffset)obj;
|
||||
return arrayWithOffset.array == this.array && arrayWithOffset.offset == this.offset;
|
||||
}
|
||||
|
||||
/// <summary>Indicates whether the specified <see cref="T:System.Runtime.InteropServices.ArrayWithOffset" /> object matches the current instance.</summary>
|
||||
/// <returns>true if the specified <see cref="T:System.Runtime.InteropServices.ArrayWithOffset" /> object matches the current instance; otherwise, false.</returns>
|
||||
/// <param name="obj">An <see cref="T:System.Runtime.InteropServices.ArrayWithOffset" /> object to compare with this instance.</param>
|
||||
// Token: 0x060021B6 RID: 8630 RVA: 0x00078F64 File Offset: 0x00077164
|
||||
public bool Equals(ArrayWithOffset obj)
|
||||
{
|
||||
return obj.array == this.array && obj.offset == this.offset;
|
||||
}
|
||||
|
||||
/// <summary>Returns a hash code for this value type.</summary>
|
||||
/// <returns>The hash code for this instance.</returns>
|
||||
// Token: 0x060021B7 RID: 8631 RVA: 0x00078F98 File Offset: 0x00077198
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return this.offset;
|
||||
}
|
||||
|
||||
/// <summary>Returns the managed array referenced by this <see cref="T:System.Runtime.InteropServices.ArrayWithOffset" />.</summary>
|
||||
/// <returns>The managed array this instance references.</returns>
|
||||
// Token: 0x060021B8 RID: 8632 RVA: 0x00078FA0 File Offset: 0x000771A0
|
||||
public object GetArray()
|
||||
{
|
||||
return this.array;
|
||||
}
|
||||
|
||||
/// <summary>Returns the offset provided when this <see cref="T:System.Runtime.InteropServices.ArrayWithOffset" /> was constructed.</summary>
|
||||
/// <returns>The offset for this instance.</returns>
|
||||
// Token: 0x060021B9 RID: 8633 RVA: 0x00078FA8 File Offset: 0x000771A8
|
||||
public int GetOffset()
|
||||
{
|
||||
return this.offset;
|
||||
}
|
||||
|
||||
/// <summary>Determines whether two specified <see cref="T:System.Runtime.InteropServices.ArrayWithOffset" /> objects have the same value.</summary>
|
||||
/// <returns>true if the value of <paramref name="a" /> is the same as the value of <paramref name="b" />; otherwise, false.</returns>
|
||||
/// <param name="a">An <see cref="T:System.Runtime.InteropServices.ArrayWithOffset" /> object to compare with the <paramref name="b" /> parameter. </param>
|
||||
/// <param name="b">An <see cref="T:System.Runtime.InteropServices.ArrayWithOffset" /> object to compare with the <paramref name="a" /> parameter.</param>
|
||||
// Token: 0x060021BA RID: 8634 RVA: 0x00078FB0 File Offset: 0x000771B0
|
||||
public static bool operator ==(ArrayWithOffset a, ArrayWithOffset b)
|
||||
{
|
||||
return a.Equals(b);
|
||||
}
|
||||
|
||||
/// <summary>Determines whether two specified <see cref="T:System.Runtime.InteropServices.ArrayWithOffset" /> objects no not have the same value.</summary>
|
||||
/// <returns>true if the value of <paramref name="a" /> is not the same as the value of <paramref name="b" />; otherwise, false.</returns>
|
||||
/// <param name="a">An <see cref="T:System.Runtime.InteropServices.ArrayWithOffset" /> object to compare with the <paramref name="b" /> parameter. </param>
|
||||
/// <param name="b">An <see cref="T:System.Runtime.InteropServices.ArrayWithOffset" /> object to compare with the <paramref name="a" /> parameter.</param>
|
||||
// Token: 0x060021BB RID: 8635 RVA: 0x00078FBC File Offset: 0x000771BC
|
||||
public static bool operator !=(ArrayWithOffset a, ArrayWithOffset b)
|
||||
{
|
||||
return !a.Equals(b);
|
||||
}
|
||||
|
||||
// Token: 0x04000CB9 RID: 3257
|
||||
private object array;
|
||||
|
||||
// Token: 0x04000CBA RID: 3258
|
||||
private int offset;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user