UtilSharedMemoryWriteAtT(MemoryMappedFile, 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>(
MemoryMappedFile mmf,
ref T refStructure,
long offset
)
where T : struct, new()
Public Shared Sub WriteAt(Of T As {Structure, New}) (
mmf As MemoryMappedFile,
ByRef refStructure As T,
offset As Long
)
Dim mmf As MemoryMappedFile
Dim refStructure As T
Dim offset As Long
UtilSharedMemory.WriteAt(mmf, refStructure, offset)
public:
generic<typename T>
where T : value class, gcnew()
static void WriteAt(
MemoryMappedFile^ mmf,
T% refStructure,
long long offset
)
static member WriteAt :
mmf : MemoryMappedFile *
refStructure : 'T byref *
offset : int64 -> 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.
- 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)(mmf, 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.