TraceReader.GetBytes(Int32, Int64, Byte[], Int32, Int32) 方法

定义

从给定的缓冲区偏移量开始,按指定的列偏移量将字节流作为数组流入缓冲区。

public:
 virtual long GetBytes(int ordinal, long fieldOffset, cli::array <System::Byte> ^ buffer, int bufferoffset, int length);
public long GetBytes (int ordinal, long fieldOffset, byte[] buffer, int bufferoffset, int length);
abstract member GetBytes : int * int64 * byte[] * int * int -> int64
override this.GetBytes : int * int64 * byte[] * int * int -> int64
Public Function GetBytes (ordinal As Integer, fieldOffset As Long, buffer As Byte(), bufferoffset As Integer, length As Integer) As Long

参数

ordinal
Int32

一个指定列位置(自该位置检索字节数组值)的 Int32 值。

fieldOffset
Int64

一个 Int32 值,该值指定自其开始读取操作的字段中的索引位置。

buffer
Byte[]

要将字节流读入的 Byte 数组。

bufferoffset
Int32

一个 Int32 值,该值指定自其开始读取操作的索引。

length
Int32

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

返回

一个指定在数组中返回的字节数的 Int64 值。

实现

示例

Readme_Tracer

适用于