UtilSharedMemoryWriteT(MemoryMappedFile, T) Method
Writes a structure at the start position of an existing MemoryMappedFile.
Namespace: DevCase.Core.Diagnostics.ProcessesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void Write<T>(
MemoryMappedFile mmf,
ref T refStructure
)
where T : struct, new()
Public Shared Sub Write(Of T As {Structure, New}) (
mmf As MemoryMappedFile,
ByRef refStructure As T
)
Dim mmf As MemoryMappedFile
Dim refStructure As T
UtilSharedMemory.Write(mmf, refStructure)
public:
generic<typename T>
where T : value class, gcnew()
static void Write(
MemoryMappedFile^ mmf,
T% refStructure
)
static member Write :
mmf : MemoryMappedFile *
refStructure : 'T byref -> unit when 'T : struct, new()
No code example is currently available or this language may not be supported.
- mmf MemoryMappedFile
-
The MemoryMappedFile segment.
- refStructure T
-
The structure to write.
- T
-
The type of strucure.
This is a code example.
No code example is currently available or this language may not be supported.
Dim myStructure as Color = Color.Red
Using mmf As MemoryMappedFile = SharedMemoryUtil.Create("My MemoryMappedFile Name", capacity:=4096)
SharedMemoryUtil.Write(Of Color)(mmf, myStructure)
End Using
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.