Here are the examples of the csharp api class System.Data.Common.DbDataReader.GetChars(int, long, char[], int, int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
14 Examples
0
1. Example
View licensepublic override long GetChars(int ordinal, long dataOffset, char[] buffer, int bufferOffset, int length) { return InnerReader.GetChars(ordinal, dataOffset, buffer, bufferOffset, length); }
0
2. Example
View licensepublic override long GetChars(int ordinal, long dataOffset, char[] buffer, int bufferOffset, int length) { return InnerDataReader.GetChars(ordinal, dataOffset, buffer, bufferOffset, length); }
0
3. Example
View licensepublic override long GetChars(int i, long fieldOffset, char[] buffer, int bufferOffset, int length) { return reader.GetChars(i, fieldOffset, buffer, bufferOffset, length); }
0
4. Example
View licensepublic override long GetChars(int ordinal, long dataOffset, char[] buffer, int bufferOffset, int length) { return source.GetChars(ordinal, dataOffset, buffer, bufferOffset, length); }
0
5. Example
View licensepublic override long GetChars(int ordinal, long dataOffset, char[] buffer, int bufferOffset, int length) { return source.GetChars(ordinal, dataOffset, buffer, bufferOffset, length); }
0
6. Example
View licensepublic override long GetChars(int ordinal, long dataOffset, char[] buffer, int bufferOffset, int length) { return source.GetChars(ordinal, dataOffset, buffer, bufferOffset, length); }
0
7. Example
View licensepublic override long GetChars(int ordinal, long dataOffset, char[] buffer, int bufferOffset, int length) { return source.GetChars(ordinal, dataOffset, buffer, bufferOffset, length); }
0
8. Example
View licensepublic override long GetChars(int i, long fieldoffset, char[] buffer, int bufferoffset, int length) { return rs.GetChars(i, fieldoffset, buffer, bufferoffset, length); }
0
9. Example
View licensepublic override long GetChars(int i, long fieldoffset, char[] buffer, int bufferoffset, int length) { return reader.GetChars(i, fieldoffset, buffer, bufferoffset, length); }
0
10. Example
View licensepublic override long GetChars(int i, long fieldoffset, char[] buffer, int bufferoffset, int length) { return _reader.GetChars(i, fieldoffset, buffer, bufferoffset, length); }
0
11. Example
View licensepublic override long GetChars(int ordinal, long dataOffset, char[] buffer, int bufferOffset, int length) { return _reader.GetChars(ordinal, dataOffset, buffer, bufferOffset, length); }
0
12. Example
View licensepublic override long GetChars(int ordinal, long dataOffset, char[] buffer, int bufferOffset, int length) { return wrappedReader.GetChars(ordinal, dataOffset, buffer, bufferOffset, length); }
0
13. Example
View licensepublic override long GetChars(int ordinal, long dataOffset, char[] buffer, int bufferOffset, int length) { return _resultsReader.GetChars(ordinal, dataOffset, buffer, bufferOffset, length); }
0
14. Example
View licensepublic override long GetChars(int ordinal, long dataOffset, char[] buffer, int bufferOffset, int length) { InduceErrorIfClosed(); WaitForReaderOrThrow(); if (this.IsPseudoColumnReference(ordinal)) { // It is a reference to our ShardName pseudo column. // if (dataOffset < 0) { return 0; } char[] source = GetString(ordinal).ToCharArray(); if (null == buffer) { buffer = new char[source.Length]; source.CopyTo(buffer, 0); return buffer.Length; } else { long charsCopied = 0; long sourcePos = dataOffset; int bufferPos = bufferOffset; while ((sourcePos < source.Length) && (bufferPos < buffer.Length) && (charsCopied < length)) { buffer[bufferPos] = source[sourcePos]; bufferPos++; sourcePos++; charsCopied++; } return charsCopied; } } else { return this.GetCurrentDataReader().GetChars(ordinal, dataOffset, buffer, bufferOffset, length); } }