UtilSharedMemoryWriteAtT(String, T, Int64) Method
Writes a structure at the specified 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 WriteAt<T>(
string name,
ref T refStructure,
long offset
)
where T : struct, new()
Public Shared Sub WriteAt(Of T As {Structure, New}) (
name As String,
ByRef refStructure As T,
offset As Long
)
Dim name As String
Dim refStructure As T
Dim offset As Long
UtilSharedMemory.WriteAt(name, refStructure,
offset)
public:
generic<typename T>
where T : value class, gcnew()
static void WriteAt(
String^ name,
T% refStructure,
long long offset
)
static member WriteAt :
name : string *
refStructure : 'T byref *
offset : int64 -> 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.
- offset Int64
-
The position in the MemoryMappedFile segment to start writing from.
- 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, 0L)
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.