语言

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

适用于