UtilSharedMemoryWriteT(String, 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>(
string name,
ref T refStructure
)
where T : struct, new()
Public Shared Sub Write(Of T As {Structure, New}) (
name As String,
ByRef refStructure As T
)
Dim name As String
Dim refStructure As T
UtilSharedMemory.Write(name, refStructure)
public:
generic<typename T>
where T : value class, gcnew()
static void Write(
String^ name,
T% refStructure
)
static member Write :
name : string *
refStructure : 'T byref -> unit when 'T : struct, new()
No code example is currently available or this language may not be supported.
- name String
-
The name of 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)("My MemoryMappedFile Name", 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.