UnmanagedMemoryAccessor.WriteArray<T>(Int64, T[], Int32, Int32) 메서드

정의

T 형식 배열의 구조체를 접근자에 씁니다.

public:
generic <typename T>
 where T : value class void WriteArray(long position, cli::array <T> ^ array, int offset, int count);
public void WriteArray<T> (long position, T[] array, int offset, int count) where T : struct;
[System.Security.SecurityCritical]
public void WriteArray<T> (long position, T[] array, int offset, int count) where T : struct;
member this.WriteArray : int64 * 'T[] * int * int -> unit (requires 'T : struct)
[<System.Security.SecurityCritical>]
member this.WriteArray : int64 * 'T[] * int * int -> unit (requires 'T : struct)
Public Sub WriteArray(Of T As Structure) (position As Long, array As T(), offset As Integer, count As Integer)

형식 매개 변수

T

구조체의 형식입니다.

매개 변수

position
Int64

쓰기를 시작할 접근자의 바이트 수입니다.

array
T[]

접근자에 쓸 배열입니다.

offset
Int32

쓰기를 시작할 array의 인덱스입니다.

count
Int32

array에서 쓸 구조체 수입니다.

특성

예외

positioncount에서 지정한 구조의 수를 쓴 후 상위 노드에 바이트 수가 충분하지 않습니다.

position가 0보다 작거나 접근자의 용량보다 큰 경우

또는

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

array이(가) null인 경우

접근자가 쓰기를 지원하지 않는 경우

접근자가 삭제되었습니다.

적용 대상