RandomAccess.Write 메서드

정의

오버로드

Write(SafeFileHandle, IReadOnlyList<ReadOnlyMemory<Byte>>, Int64)

지정된 버퍼에서 지정된 오프셋의 지정된 파일에 바이트 시퀀스를 씁니다.

Write(SafeFileHandle, ReadOnlySpan<Byte>, Int64)

지정된 버퍼에서 지정된 오프셋의 지정된 파일에 바이트 시퀀스를 씁니다.

Write(SafeFileHandle, IReadOnlyList<ReadOnlyMemory<Byte>>, Int64)

Source:
RandomAccess.cs
Source:
RandomAccess.cs
Source:
RandomAccess.cs

지정된 버퍼에서 지정된 오프셋의 지정된 파일에 바이트 시퀀스를 씁니다.

public:
 static void Write(Microsoft::Win32::SafeHandles::SafeFileHandle ^ handle, System::Collections::Generic::IReadOnlyList<ReadOnlyMemory<System::Byte>> ^ buffers, long fileOffset);
public static void Write (Microsoft.Win32.SafeHandles.SafeFileHandle handle, System.Collections.Generic.IReadOnlyList<ReadOnlyMemory<byte>> buffers, long fileOffset);
static member Write : Microsoft.Win32.SafeHandles.SafeFileHandle * System.Collections.Generic.IReadOnlyList<ReadOnlyMemory<byte>> * int64 -> unit
Public Shared Sub Write (handle As SafeFileHandle, buffers As IReadOnlyList(Of ReadOnlyMemory(Of Byte)), fileOffset As Long)

매개 변수

handle
SafeFileHandle

파일 핸들입니다.

buffers
IReadOnlyList<ReadOnlyMemory<Byte>>

메모리 버퍼 목록입니다. 이 메서드는 이러한 버퍼의 내용을 파일에 복사합니다.

fileOffset
Int64

쓸 파일 위치입니다.

예외

handle 또는 buffersnull인 경우

handle이 잘못되었습니다.

파일이 닫혀 있습니다.

파일은 검색(파이프 또는 소켓)을 지원하지 않습니다.

fileOffset가 음수입니다.

handle 쓰기를 위해 열리지 않았습니다.

I/O 오류가 발생했습니다.

설명

파일의 위치가 고급이 아닙니다.

적용 대상

Write(SafeFileHandle, ReadOnlySpan<Byte>, Int64)

Source:
RandomAccess.cs
Source:
RandomAccess.cs
Source:
RandomAccess.cs

지정된 버퍼에서 지정된 오프셋의 지정된 파일에 바이트 시퀀스를 씁니다.

public:
 static void Write(Microsoft::Win32::SafeHandles::SafeFileHandle ^ handle, ReadOnlySpan<System::Byte> buffer, long fileOffset);
public static void Write (Microsoft.Win32.SafeHandles.SafeFileHandle handle, ReadOnlySpan<byte> buffer, long fileOffset);
static member Write : Microsoft.Win32.SafeHandles.SafeFileHandle * ReadOnlySpan<byte> * int64 -> unit
Public Shared Sub Write (handle As SafeFileHandle, buffer As ReadOnlySpan(Of Byte), fileOffset As Long)

매개 변수

handle
SafeFileHandle

파일 핸들입니다.

buffer
ReadOnlySpan<Byte>

메모리 영역입니다. 이 메서드는 이 지역의 내용을 파일에 복사합니다.

fileOffset
Int64

쓸 파일 위치입니다.

예외

handlenull입니다.

handle이 잘못되었습니다.

파일이 닫혀 있습니다.

파일은 검색(파이프 또는 소켓)을 지원하지 않습니다.

fileOffset가 음수입니다.

handle 쓰기를 위해 열리지 않았습니다.

I/O 오류가 발생했습니다.

설명

파일의 위치가 고급이 아닙니다.

적용 대상