UtilSharedMemoryReadString(String, Int64, Int64, Encoding) Method

Reads a byte sequence from a start position to an end position of an existing MemoryMappedFile, decodes the byte data using the specified Encoding and returns the corresponding string.

Definition

Namespace: DevCase.Core.Diagnostics.Processes
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string ReadString(
	string name,
	long starIndex,
	long endIndex,
	Encoding enc = null
)

Parameters

name  String
The name of the MemoryMappedFile segment.
starIndex  Int64
The start position to start reading from the MemoryMappedFile segment.
endIndex  Int64
The end position to stop reading from the MemoryMappedFile segment.
enc  Encoding  (Optional)
The text Encoding.

Return Value

String
The decoded string.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also