9 instantiations of SqlBytes
System.Data (9)
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (3)
359result = new SqlBytes( byteBuffer ); 364result = new SqlBytes( s ); 378result = new SqlBytes( binaryVal.Value );
fx\src\data\System\Data\Common\SQLConvert.cs (1)
630return new SqlBytes(Convert.FromBase64String((string)value));
fx\src\data\System\Data\Common\SQLTypes\SQLBytesStorage.cs (1)
100return (new SqlBytes((SqlBinary)tmp));
fx\src\data\System\Data\Sql\SqlMetaData.cs (1)
995value = new SqlBytes(rgbNew);
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
2302return new SqlBytes(data);
fx\src\data\System\Data\SQLTypes\SQLBytes.cs (2)
456 return new SqlBytes(value); 605 return new SqlBytes((byte[])null);
73 references to SqlBytes
System.Data (71)
fx\src\data\Microsoft\SqlServer\Server\ITypedGetters.cs (2)
81SqlBytes GetSqlBytes( int ordinal ); 97SqlBytes GetSqlBytesRef( int ordinal );
fx\src\data\Microsoft\SqlServer\Server\ITypedSetters.cs (2)
93void SetSqlBytes( int ordinal, SqlBytes value ); 96void SetSqlBytes( int ordinal, SqlBytes value, int offset );
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (2)
128ht.Add( typeof( SqlBytes ), ExtendedClrTypeCode.SqlBytes ); 219else if (value.GetType() == typeof( SqlBytes ))
fx\src\data\Microsoft\SqlServer\Server\SmiRecordBuffer.cs (4)
392public virtual SqlBytes GetSqlBytes( int ordinal ) { 422public virtual SqlBytes GetSqlBytesRef( int ordinal ) { 775public virtual void SetSqlBytes( int ordinal, SqlBytes value ) 785public virtual void SetSqlBytes( int ordinal, SqlBytes value, int offset ) {
fx\src\data\Microsoft\SqlServer\Server\SmiRequestExecutor.cs (4)
450public virtual SqlBytes GetSqlBytes( int ordinal ) { 480public virtual SqlBytes GetSqlBytesRef( int ordinal ) { 833public virtual void SetSqlBytes( int ordinal, SqlBytes value ) 843public virtual void SetSqlBytes( int ordinal, SqlBytes value, int offset ) {
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (2)
278public virtual SqlBytes GetSqlBytes(int ordinal) { 568public virtual void SetSqlBytes(int ordinal, SqlBytes value) {
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (8)
349internal static SqlBytes GetSqlBytes( SmiEventSink_Default sink, ITypedGettersV3 getters, int ordinal, SmiMetaData metaData, SmiContext context ) { 350SqlBytes result; 353result = SqlBytes.Null; 375result = SqlBytes.Null; 1475internal static void SetSqlBytes( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, SqlBytes value ) { 1630case ExtendedClrTypeCode.SqlBytes: SetSqlBytes_LengthChecked( sink, setters, ordinal, metaData, (SqlBytes) value, offset ); break; 2563private static void SetSqlBytes_LengthChecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SmiMetaData metaData, SqlBytes value, int offset ) { 3408private static void SetSqlBytes_Unchecked( SmiEventSink_Default sink, ITypedSettersV3 setters, int ordinal, SqlBytes value, int offset, long length ) {
fx\src\data\System\Data\ColumnTypeConverter.cs (1)
57typeof(SqlBytes),
fx\src\data\System\Data\Common\DataStorage.cs (1)
102typeof(SqlBytes),
fx\src\data\System\Data\Common\SQLConvert.cs (5)
398public static SqlBytes ConvertToSqlBytes(object value) { 401return SqlBytes.Null; 407return (SqlBytes)value; 409throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlBytes)); 719return Convert.ToBase64String(((SqlBytes)value).Value);
fx\src\data\System\Data\Common\SQLTypes\SQLBytesStorage.cs (14)
23private SqlBytes[] values; 26: base(column, typeof(SqlBytes), SqlBytes.Null, SqlBytes.Null, StorageType.SqlBytes) { 48throw ExprException.Overflow(typeof(SqlBytes)); 75values[record] = SqlBytes.Null; 78values[record] = (SqlBytes)value; 83SqlBytes[] newValues = new SqlBytes[capacity]; 105Debug.Assert((value.GetType() == typeof(SqlBytes)), "wrong input type"); 116return new SqlBytes[recordCount]; 120SqlBytes[] typedStore = (SqlBytes[]) store; 126values = (SqlBytes[]) store;
fx\src\data\System\Data\Sql\SqlMetaData.cs (7)
980public SqlBytes Adjust(SqlBytes value) { 1104else if (dataType == typeof(SqlBytes)) 1105value = this.Adjust((SqlBytes)value); 1279else if (dataType == typeof(SqlBytes)) 1282SqlBytes sb = (SqlBytes)value;
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (1)
2299virtual public SqlBytes GetSqlBytes(int i) {
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (1)
799public override SqlBytes GetSqlBytes(int ordinal) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (1)
310else if (dataType == typeof(SqlBytes))
fx\src\data\System\Data\SqlClient\SqlParameter.cs (6)
946else if ((typeof(SqlBytes) == currentType) && (typeof(byte[]) == destinationType.ClassType)) { 1672if (value is SqlBytes) { 1673return ((SqlBytes)value).Value.Length; 1710if (value is SqlBytes) { 1711if (((SqlBytes) value).IsNull) 1714return (int)(((SqlBytes) value).Length);
fx\src\data\System\Data\SqlClient\TdsParser.cs (4)
9979Debug.Assert(value is SqlBytes); 9980return stateObj.WriteByteArray(((SqlBytes)value).Value, actualLength, offset, canAccumulate:false); 10943Debug.Assert(value is SqlBytes); 10944Buffer.BlockCopy(((SqlBytes)value).Value, offset, b, 0, actualLength);
fx\src\data\System\Data\SQLTypes\SQLBytes.cs (5)
450 public static explicit operator SqlBinary(SqlBytes value) { 455 public static explicit operator SqlBytes(SqlBinary value) { 603 public static SqlBytes Null { 621 private SqlBytes m_sb; // the SqlBytes object 628 internal StreamOnSqlBytes(SqlBytes sb) {
fx\src\data\System\Data\xmlsaver.cs (1)
206if (type == typeof(Byte[]) || type == typeof(SqlBytes))
System.Data.Entity (2)
System\Data\SqlClient\SqlSpatialDataReader.cs (2)
38SqlBytes geogBytes = this.reader.GetSqlBytes(ordinal); 46 SqlBytes geomBytes = this.reader.GetSqlBytes(ordinal);