SafeBuffer.ReadArray<T>(UInt64, T[], Int32, Int32) 메서드

정의

중요

이 API는 CLS 규격이 아닙니다.

메모리의 오프셋 시작 위치에서 지정된 수의 값 형식을 읽어서 이를 배열의 인덱스 시작 위치에 씁니다.

public:
generic <typename T>
 where T : value class void ReadArray(System::UInt64 byteOffset, cli::array <T> ^ array, int index, int count);
[System.CLSCompliant(false)]
public void ReadArray<T> (ulong byteOffset, T[] array, int index, int count) where T : struct;
[<System.CLSCompliant(false)>]
member this.ReadArray : uint64 * 'T[] * int * int -> unit (requires 'T : struct)
Public Sub ReadArray(Of T As Structure) (byteOffset As ULong, array As T(), index As Integer, count As Integer)

형식 매개 변수

T

읽을 값 형식입니다.

매개 변수

byteOffset
UInt64

읽기를 시작할 위치입니다.

array
T[]

쓸 출력 배열입니다.

index
Int32

출력 배열에서 쓰기를 시작할 위치입니다.

count
Int32

입력 배열에서 읽어서 출력 배열에 쓸 값 형식의 수입니다.

특성

예외

index가 0보다 작은 경우

또는

count가 0보다 작은 경우

array이(가) null인 경우

배열에서 인덱스를 뺀 길이가 count보다 작은 경우

Initialize 메서드가 호출되지 않았습니다.

적용 대상

추가 정보