UtilSharedMemory Class

Contains memory-sharing related utilities.

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 sealed class UtilSharedMemory
Inheritance
Object    UtilSharedMemory

Methods

Clear(MemoryMappedFile) Clears the data of an existing MemoryMappedFile segment.
Clear(String) Clears the data of an existing MemoryMappedFile segment.
Create Creates a MemoryMappedFile segment that is shared between applications.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Exists Determine whether a MemoryMappedFile with the specified name is already created.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
Read(MemoryMappedFile, Int64, Int64) Reads a byte sequence from a start position to an end position 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).
Read(String, Int64, Int64) Reads a byte sequence from a start position to an end position 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).
ReadAt(MemoryMappedFile, Int64) Reads a byte from a position of an existing MemoryMappedFile.
ReadAt(String, Int64) Reads a byte from a position of an existing MemoryMappedFile.
ReadCharAt(MemoryMappedFile, Int64) Reads a character from a position of an existing MemoryMappedFile.
ReadCharAt(String, Int64) Reads a character from a position of an existing MemoryMappedFile.
ReadString(MemoryMappedFile, Int64, Int64, Encoding) 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.
ReadString(String, Int64, Int64, Encoding) 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.
ReadStringToEnd(MemoryMappedFile, Encoding) Reads from start to end the data of an existing MemoryMappedFile, decodes the byte data using the specified Encoding and returns the corresponding string.
ReadStringToEnd(String, Encoding) Reads from start to end the data of an existing MemoryMappedFile, decodes the byte data using the specified Encoding and returns the corresponding string.
ReadToEnd(MemoryMappedFile) 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).
ReadToEnd(String) 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).
ToString Returns a string that represents the current object.
(Inherited from Object)
Write(MemoryMappedFile, Byte) Writes a byte sequence at the start position of an existing MemoryMappedFile.
Write(String, Byte) Writes a byte sequence at the start position of an existing MemoryMappedFile.
WriteT(MemoryMappedFile, T) Writes a structure at the start position of an existing MemoryMappedFile.
WriteT(String, T) Writes a structure at the start position of an existing MemoryMappedFile.
WriteAt(MemoryMappedFile, Byte, Int64) Writes a single byte at the specified position of an existing MemoryMappedFile.
WriteAt(MemoryMappedFile, Byte, Int64) Writes a byte sequence at the specified position of an existing MemoryMappedFile.
WriteAt(String, Byte, Int64) Writes a single byte at the specified position of an existing MemoryMappedFile.
WriteAt(String, Byte, Int64) Writes a byte sequence at the specified position of an existing MemoryMappedFile.
WriteAtT(MemoryMappedFile, T, Int64) Writes a structure at the specified position of an existing MemoryMappedFile.
WriteAtT(String, T, Int64) Writes a structure at the specified position of an existing MemoryMappedFile.
WriteCharAt(MemoryMappedFile, Char, Int64, Encoding) Writes a character at the specified position of an existing MemoryMappedFile.
WriteCharAt(String, Char, Int64, Encoding) Writes a character at the specified position of an existing MemoryMappedFile segment.
WriteString(MemoryMappedFile, String, Encoding) Writes a String at the start position of an existing MemoryMappedFile.
WriteString(String, String, Encoding) Writes a String at the start position of an existing MemoryMappedFile.
WriteStringAt(MemoryMappedFile, String, Int64, Encoding) Writes a String at the specified position of an existing MemoryMappedFile.
WriteStringAt(String, String, Int64, Encoding) Writes a String at the specified position of an existing MemoryMappedFile segment.

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also