TraceReader.GetChars 方法

定义

从指定的列位置开始获取字符数组值,从缓冲区偏移开始。

重载

名称 说明
GetChars(Int32, Char[], Int32, Int32, Int32)

从记录中指定的列位置获取字符数组值。

GetChars(Int32, Int64, Char[], Int32, Int32)

从记录中指定的列位置获取字符数组值。

GetChars(Int32, Char[], Int32, Int32, Int32)

从记录中指定的列位置获取字符数组值。

public:
 int GetChars(int ordinal, cli::array <char> ^ buffer, int length, int bufferoffset, int fieldoffset);
public int GetChars(int ordinal, char[] buffer, int length, int bufferoffset, int fieldoffset);
member this.GetChars : int * char[] * int * int * int -> int
Public Function GetChars (ordinal As Integer, buffer As Char(), length As Integer, bufferoffset As Integer, fieldoffset As Integer) As Integer

参数

ordinal
Int32

一个 Int32 指定检索字符数组值的列位置的值。

buffer
Char[]

一个 System.UInt8 数组,指定要读取字符数组的缓冲区。

length
Int32

一个 Int32 指定要读取字符数的值。

bufferoffset
Int32

一个 Int32 指定读取操作起点的索引值。

fieldoffset
Int32

一个 Int32 值,指定记录中索引位置,从这里开始读取操作。

返回

int32值,指定数组返回的字符数。

示例

Readme_Tracer

适用于

GetChars(Int32, Int64, Char[], Int32, Int32)

从记录中指定的列位置获取字符数组值。

public:
 virtual long GetChars(int ordinal, long fieldoffset, cli::array <char> ^ buffer, int bufferoffset, int length);
public long GetChars(int ordinal, long fieldoffset, char[] buffer, int bufferoffset, int length);
abstract member GetChars : int * int64 * char[] * int * int -> int64
override this.GetChars : int * int64 * char[] * int * int -> int64
Public Function GetChars (ordinal As Integer, fieldoffset As Long, buffer As Char(), bufferoffset As Integer, length As Integer) As Long

参数

ordinal
Int32

一个 Int32 指定检索字符数组值的列位置的值。

fieldoffset
Int64

一个 Int32 值,指定记录中索引位置,从这里开始读取操作。

buffer
Char[]

一个 Char 数组,指定要读取字符数组的缓冲区。

bufferoffset
Int32

一个 Int32 指定读取操作起点的索引值。

length
Int32

一个 Int32 指定要读取字符数的值。

返回

一个 Int64 指定数组返回字符数的值。

实现

示例

Readme_Tracer

适用于