C# 클래스 GSF.WinApi

Provides necessary Windows API functions.
파일 보기 프로젝트 열기: GridProtectionAlliance/openHistorian

공개 메소드들

메소드 설명
FlushFileBuffers ( SafeFileHandle handle ) : void

Flushes the buffers of a specified file and causes all buffered data to be written to a file.

Since the flush of a file stream does not actually work, this finishes the flush to the disk file system. Which still could cache the results, but this is about the best we can do for a flush right now.

MoveMemory ( byte destination, byte source, int count ) : void

Copies data from one memory location to another. This function does a check to see if the data bytes overlaps and guarantees that the bytes are copied in such a way to preserve the move.

메소드 상세

FlushFileBuffers() 공개 정적인 메소드

Flushes the buffers of a specified file and causes all buffered data to be written to a file.
Since the flush of a file stream does not actually work, this finishes the flush to the disk file system. Which still could cache the results, but this is about the best we can do for a flush right now.
public static FlushFileBuffers ( SafeFileHandle handle ) : void
handle Microsoft.Win32.SafeHandles.SafeFileHandle
리턴 void

MoveMemory() 공개 정적인 메소드

Copies data from one memory location to another. This function does a check to see if the data bytes overlaps and guarantees that the bytes are copied in such a way to preserve the move.
public static MoveMemory ( byte destination, byte source, int count ) : void
destination byte a pointer to the destination
source byte a pointer to the source
count int the number of bytes to move
리턴 void