MemoryMappedFile: CreateView

CreateView

Returns a Byte array view of the mapped file.



 Public Function CreateView ( ) As Byte ( )

Return Values

Byte() -  A byte array pointing to the mapped file data.

Remarks

A view can be used to easily access the mapped file data using a Byte array as the primary access method to the data.

The byte array is locked to prevent using Erase or ReDim on the array, causing unknown problems.

Warning
If the MemoryMappedFile access is read-only, then do not modify the byte array. The application will crash without write-permission.

When finished with the byte array view, call DeleteView to unhook the array variable from the view.

See Also

Project CorLib Overview
Class MemoryMappedFile Overview