C# Class GSF.WinApi

Provides necessary Windows API functions.
Mostrar archivo Open project: GridProtectionAlliance/openHistorian

Public Methods

Method Description
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.

Method Details

FlushFileBuffers() public static method

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
return void

MoveMemory() public static method

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
return void