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

정의

중요

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

입력 배열의 지정된 위치에서 시작하여 바이트를 읽어 메모리 위치에 지정된 수의 값 형식을 씁니다.

public:
generic <typename T>
 where T : value class void WriteArray(System::UInt64 byteOffset, cli::array <T> ^ array, int index, int count);
[System.CLSCompliant(false)]
public void WriteArray<T> (ulong byteOffset, T[] array, int index, int count) where T : struct;
[<System.CLSCompliant(false)>]
member this.WriteArray : uint64 * 'T[] * int * int -> unit (requires 'T : struct)
Public Sub WriteArray(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

쓸 값 형식의 수입니다.

특성

예외

array이(가) null인 경우

index 또는 count가 0보다 작습니다.

입력 배열에서 index를 뺀 길이가 count보다 작습니다.

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

설명

입력 배열의 각 요소는 클래스의 제네릭 값 형식으로 구성됩니다.

적용 대상

추가 정보