233 lines
9.1 KiB
C#
233 lines
9.1 KiB
C#
using System;
|
|
using System.IO;
|
|
using System.Reflection;
|
|
using System.Runtime.Serialization;
|
|
using System.Xml;
|
|
using System.Xml.Schema;
|
|
using System.Xml.Serialization;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Data.SqlTypes
|
|
{
|
|
/// <summary>Represents a mutable reference type that wraps either a <see cref="P:System.Data.SqlTypes.SqlBytes.Buffer" /> or a <see cref="P:System.Data.SqlTypes.SqlBytes.Stream" />.</summary>
|
|
// Token: 0x020000A3 RID: 163
|
|
[Token(Token = "0x20000A3")]
|
|
[DefaultMember("Item")]
|
|
[XmlSchemaProvider("GetXsdType")]
|
|
[Serializable]
|
|
public sealed class SqlBytes : INullable, IXmlSerializable, ISerializable
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Data.SqlTypes.SqlBytes" /> class.</summary>
|
|
// Token: 0x0600093B RID: 2363 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x600093B")]
|
|
[Address(RVA = "0x9FB3F0", Offset = "0x9FA3F0", VA = "0x1809FB3F0")]
|
|
public SqlBytes()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Data.SqlTypes.SqlBytes" /> class based on the specified byte array.</summary>
|
|
/// <param name="buffer">The array of unsigned bytes.</param>
|
|
// Token: 0x0600093C RID: 2364 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x600093C")]
|
|
[Address(RVA = "0x9FB2D0", Offset = "0x9FA2D0", VA = "0x1809FB2D0")]
|
|
public SqlBytes(byte[] buffer)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Data.SqlTypes.SqlBytes" /> class based on the specified <see cref="T:System.Data.SqlTypes.SqlBinary" /> value.</summary>
|
|
/// <param name="value">A <see cref="T:System.Data.SqlTypes.SqlBinary" /> value.</param>
|
|
// Token: 0x0600093D RID: 2365 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x600093D")]
|
|
[Address(RVA = "0x9FB330", Offset = "0x9FA330", VA = "0x1809FB330")]
|
|
public SqlBytes(SqlBinary value)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets a Boolean value that indicates whether this <see cref="T:System.Data.SqlTypes.SqlBytes" /> is null.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the <see cref="T:System.Data.SqlTypes.SqlBytes" /> is null, <see langword="false" /> otherwise.</returns>
|
|
// Token: 0x17000174 RID: 372
|
|
// (get) Token: 0x0600093E RID: 2366 RVA: 0x00005474 File Offset: 0x00003674
|
|
[Token(Token = "0x17000174")]
|
|
public bool IsNull
|
|
{
|
|
[Token(Token = "0x600093E")]
|
|
[Address(RVA = "0x9FB560", Offset = "0x9FA560", VA = "0x1809FB560", Slot = "4")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
/// <summary>Returns a reference to the internal buffer.</summary>
|
|
/// <returns>A reference to the internal buffer. For <see cref="T:System.Data.SqlTypes.SqlBytes" /> instances created on top of unmanaged pointers, it returns a managed copy of the internal buffer.</returns>
|
|
// Token: 0x17000175 RID: 373
|
|
// (get) Token: 0x0600093F RID: 2367 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000175")]
|
|
public byte[] Buffer
|
|
{
|
|
[Token(Token = "0x600093F")]
|
|
[Address(RVA = "0x9FB420", Offset = "0x9FA420", VA = "0x1809FB420")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the length of the value that is contained in the <see cref="T:System.Data.SqlTypes.SqlBytes" /> instance.</summary>
|
|
/// <returns>A <see cref="T:System.Int64" /> value representing the length of the value that is contained in the <see cref="T:System.Data.SqlTypes.SqlBytes" /> instance.
|
|
/// Returns -1 if no buffer is available to the instance or if the value is null.
|
|
/// Returns a <see cref="P:System.IO.Stream.Length" /> for a stream-wrapped instance.</returns>
|
|
// Token: 0x17000176 RID: 374
|
|
// (get) Token: 0x06000940 RID: 2368 RVA: 0x0000548C File Offset: 0x0000368C
|
|
[Token(Token = "0x17000176")]
|
|
public long Length
|
|
{
|
|
[Token(Token = "0x6000940")]
|
|
[Address(RVA = "0x9FB570", Offset = "0x9FA570", VA = "0x1809FB570")]
|
|
get
|
|
{
|
|
return 0L;
|
|
}
|
|
}
|
|
|
|
/// <summary>Returns a managed copy of the value held by this <see cref="T:System.Data.SqlTypes.SqlBytes" />.</summary>
|
|
/// <returns>The value of this <see cref="T:System.Data.SqlTypes.SqlBytes" /> as an array of bytes.</returns>
|
|
// Token: 0x17000177 RID: 375
|
|
// (get) Token: 0x06000941 RID: 2369 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000177")]
|
|
public byte[] Value
|
|
{
|
|
[Token(Token = "0x6000941")]
|
|
[Address(RVA = "0x9FB660", Offset = "0x9FA660", VA = "0x1809FB660")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Sets this <see cref="T:System.Data.SqlTypes.SqlBytes" /> instance to null.</summary>
|
|
// Token: 0x06000942 RID: 2370 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x6000942")]
|
|
[Address(RVA = "0x9FAE60", Offset = "0x9F9E60", VA = "0x1809FAE60")]
|
|
public void SetNull()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000943 RID: 2371 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x6000943")]
|
|
[Address(RVA = "0x9FAC80", Offset = "0x9F9C80", VA = "0x1809FAC80")]
|
|
private void CopyStreamToBuffer()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000944 RID: 2372 RVA: 0x000054A4 File Offset: 0x000036A4
|
|
[Token(Token = "0x6000944")]
|
|
[Address(RVA = "0x9FADC0", Offset = "0x9F9DC0", VA = "0x1809FADC0")]
|
|
internal bool FStream()
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x06000945 RID: 2373 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x6000945")]
|
|
[Address(RVA = "0x9FAE30", Offset = "0x9F9E30", VA = "0x1809FAE30")]
|
|
private void SetBuffer(byte[] buffer)
|
|
{
|
|
}
|
|
|
|
/// <summary>This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.</summary>
|
|
/// <returns>This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.</returns>
|
|
// Token: 0x06000946 RID: 2374 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000946")]
|
|
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "5")]
|
|
XmlSchema IXmlSerializable.GetSchema()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.</summary>
|
|
/// <param name="r">
|
|
/// <see langword="XmlReader" />
|
|
/// </param>
|
|
// Token: 0x06000947 RID: 2375 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x6000947")]
|
|
[Address(RVA = "0x9FAED0", Offset = "0x9F9ED0", VA = "0x1809FAED0", Slot = "6")]
|
|
void IXmlSerializable.ReadXml(XmlReader r)
|
|
{
|
|
}
|
|
|
|
/// <summary>This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.</summary>
|
|
/// <param name="writer">
|
|
/// <see langword="XmlWriter" />
|
|
/// </param>
|
|
// Token: 0x06000948 RID: 2376 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x6000948")]
|
|
[Address(RVA = "0x9FB040", Offset = "0x9FA040", VA = "0x1809FB040", Slot = "7")]
|
|
void IXmlSerializable.WriteXml(XmlWriter writer)
|
|
{
|
|
}
|
|
|
|
/// <summary>Returns the XML Schema definition language (XSD) of the specified <see cref="T:System.Xml.Schema.XmlSchemaSet" />.</summary>
|
|
/// <param name="schemaSet">A <see cref="T:System.Xml.Schema.XmlSchemaSet" />.</param>
|
|
/// <returns>A <see langword="string" /> that indicates the XSD of the specified <see langword="XmlSchemaSet" />.</returns>
|
|
// Token: 0x06000949 RID: 2377 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000949")]
|
|
[Address(RVA = "0x9FADD0", Offset = "0x9F9DD0", VA = "0x1809FADD0")]
|
|
public static XmlQualifiedName GetXsdType(XmlSchemaSet schemaSet)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets serialization information with all the data needed to reinstantiate this <see cref="T:System.Data.SqlTypes.SqlBytes" /> instance.</summary>
|
|
/// <param name="info">The object to be populated with serialization information.</param>
|
|
/// <param name="context">The destination context of the serialization.</param>
|
|
// Token: 0x0600094A RID: 2378 RVA: 0x0000206A File Offset: 0x0000026A
|
|
[Token(Token = "0x600094A")]
|
|
[Address(RVA = "0x9FAE80", Offset = "0x9F9E80", VA = "0x1809FAE80", Slot = "8")]
|
|
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets a null instance of this <see cref="T:System.Data.SqlTypes.SqlBytes" />.</summary>
|
|
/// <returns>An instance whose <see cref="P:System.Data.SqlTypes.SqlBytes.IsNull" /> property returns <see langword="true" />.</returns>
|
|
// Token: 0x17000178 RID: 376
|
|
// (get) Token: 0x0600094B RID: 2379 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x17000178")]
|
|
public static SqlBytes Null
|
|
{
|
|
[Token(Token = "0x600094B")]
|
|
[Address(RVA = "0x9FB600", Offset = "0x9FA600", VA = "0x1809FB600")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000358 RID: 856
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000358")]
|
|
internal byte[] _rgbBuf;
|
|
|
|
// Token: 0x04000359 RID: 857
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000359")]
|
|
private long _lCurLen;
|
|
|
|
// Token: 0x0400035A RID: 858
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400035A")]
|
|
internal Stream _stream;
|
|
|
|
// Token: 0x0400035B RID: 859
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400035B")]
|
|
private SqlBytesCharsState _state;
|
|
|
|
// Token: 0x0400035C RID: 860
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x400035C")]
|
|
private byte[] _rgbWorkBuf;
|
|
}
|
|
}
|