52 references to SqlBytesCharsState
System.Data.Common (52)
System\Data\SQLTypes\SQLBytes.cs (26)
48
private
SqlBytesCharsState
_state;
72
_state =
SqlBytesCharsState
.Null;
77
_state =
SqlBytesCharsState
.Buffer;
95
_state = (s == null) ?
SqlBytesCharsState
.Null :
SqlBytesCharsState
.Stream;
110
return _state ==
SqlBytesCharsState
.Null;
135
SqlBytesCharsState
.Null => throw new SqlNullValueException(),
136
SqlBytesCharsState
.Stream => _stream!.Length,
152
SqlBytesCharsState
.Stream => -1L,
167
case
SqlBytesCharsState
.Null:
170
case
SqlBytesCharsState
.Stream:
214
SqlBytesCharsState
.Null => throw new SqlNullValueException(),
215
SqlBytesCharsState
.Stream => StorageState.Stream,
216
SqlBytesCharsState
.Buffer => StorageState.Buffer,
232
_state = (value == null) ?
SqlBytesCharsState
.Null :
SqlBytesCharsState
.Stream;
245
_state =
SqlBytesCharsState
.Null;
275
_state =
SqlBytesCharsState
.Buffer;
318
if (_state ==
SqlBytesCharsState
.Stream)
410
_state =
SqlBytesCharsState
.Buffer;
460
Debug.Assert(_state >=
SqlBytesCharsState
.Null && _state <=
SqlBytesCharsState
.Stream);
493
_state =
SqlBytesCharsState
.Buffer;
502
return _state ==
SqlBytesCharsState
.Stream;
510
_state = (_rgbBuf == null) ?
SqlBytesCharsState
.Null :
SqlBytesCharsState
.Buffer;
System\Data\SQLTypes\SQLChars.cs (26)
40
private
SqlBytesCharsState
_state;
66
_state =
SqlBytesCharsState
.Null;
71
_state =
SqlBytesCharsState
.Buffer;
91
_state = (s == null) ?
SqlBytesCharsState
.Null :
SqlBytesCharsState
.Stream;
107
return _state ==
SqlBytesCharsState
.Null;
133
SqlBytesCharsState
.Null => throw new SqlNullValueException(),
134
SqlBytesCharsState
.Stream => _stream!.Length,
151
SqlBytesCharsState
.Stream => -1L,
167
case
SqlBytesCharsState
.Null:
170
case
SqlBytesCharsState
.Stream:
222
_state = (value == null) ?
SqlBytesCharsState
.Null :
SqlBytesCharsState
.Stream;
234
SqlBytesCharsState
.Null => throw new SqlNullValueException(),
235
SqlBytesCharsState
.Stream => StorageState.Stream,
236
SqlBytesCharsState
.Buffer => StorageState.Buffer,
250
_state =
SqlBytesCharsState
.Null;
279
_state =
SqlBytesCharsState
.Buffer;
314
case
SqlBytesCharsState
.Stream:
373
_state =
SqlBytesCharsState
.Buffer;
425
Debug.Assert(_state >=
SqlBytesCharsState
.Null && _state <=
SqlBytesCharsState
.Stream);
442
return _state ==
SqlBytesCharsState
.Stream;
465
_state =
SqlBytesCharsState
.Buffer;
475
_state = (_rgchBuf == null) ?
SqlBytesCharsState
.Null :
SqlBytesCharsState
.Buffer;