UtilSharedMemoryReadToEnd(String) Method
Reads from start to end the data of an existing MemoryMappedFile.
Note that the returned bytes could contain null bytes at the end
due to the automatic size rounding of a multiple of 4096 bytes (4 KB).
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 byte[] ReadToEnd(
string name
)
Public Shared Function ReadToEnd (
name As String
) As Byte()
Dim name As String
Dim returnValue As Byte()
returnValue = UtilSharedMemory.ReadToEnd(name)
public:
static array<unsigned char>^ ReadToEnd(
String^ name
)
static member ReadToEnd :
name : string -> byte[]
No code example is currently available or this language may not be supported.
- name String
-
The name of the MemoryMappedFile segment.
Byte
The byte-data.
This is a code example.
No code example is currently available or this language may not be supported.
Dim enc As Encoding = Encoding.Default
Dim str As String = "Hello World!"
Dim result As String
Using mmf As MemoryMappedFile = SharedMemoryUtil.Create("My MemoryMappedFile Name", capacity:=4096)
SharedMemoryUtil.Write("My MemoryMappedFile Name", enc.GetBytes(str))
result = enc.GetString(SharedMemoryUtil.ReadToEnd("My MemoryMappedFile Name")).TrimEnd(ControlChars.NullChar)
End Using
MessageBox.Show(result)
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.