OracleDataReader.GetBytes(Int32, Int64, Byte[], Int32, Int32) 메서드

정의

지정된 열 오프셋에서 버퍼로 지정된 버퍼 오프셋부터 시작하여 배열로 바이트 스트림을 읽습니다.

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

매개 변수

i
Int32

0부터 시작하는 열 서수입니다.

fieldOffset
Int64

읽기 작업을 시작할 필드 내의 인덱스입니다.

buffer2
Byte[]

바이트 스트림을 읽을 버퍼입니다.

bufferoffset
Int32

쓰기 작업을 시작할 인 buffer2 덱스입니다.

length
Int32

읽을 바이트 수입니다.

반품

읽은 실제 바이트 수입니다.

구현

설명

GetBytes 는 필드에서 사용 가능한 바이트 수를 반환합니다. 대부분의 경우 이는 필드의 정확한 길이입니다. 그러나 반환된 숫자는 필드에서 바이트를 가져오는 데 이미 사용된 경우 GetBytes 필드의 실제 길이보다 작을 수 있습니다. 예를 들어 큰 데이터 구조를 버퍼로 읽는 경우 OracleDataReader 일 수 있습니다. 자세한 내용은 의 설정을 SequentialAccess참조 CommandBehavior 하세요.

null 값 GetBytes 인 버퍼를 전달하면 필드 길이를 바이트 단위로 반환합니다.

적용 대상