RandomAccess.Write 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
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
또는 buffers
가 null
인 경우
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
쓸 파일 위치입니다.
예외
handle
은 null
입니다.
handle
이 잘못되었습니다.
파일이 닫혀 있습니다.
파일은 검색(파이프 또는 소켓)을 지원하지 않습니다.
fileOffset
가 음수입니다.
handle
쓰기를 위해 열리지 않았습니다.
I/O 오류가 발생했습니다.
설명
파일의 위치가 고급이 아닙니다.
적용 대상
.NET