A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/dotnet/api/system.readonlymemory-1 below:

ReadOnlyMemory<T> Struct (System) | Microsoft Learn

ReadOnlyMemory<T> Struct Definition
generic <typename T>
public value class ReadOnlyMemory : IEquatable<ReadOnlyMemory<T>>
generic <typename T>
public value class ReadOnlyMemory
public readonly struct ReadOnlyMemory<T> : IEquatable<ReadOnlyMemory<T>>
public readonly struct ReadOnlyMemory<T>
type ReadOnlyMemory<'T> = struct
Public Structure ReadOnlyMemory(Of T)
Implements IEquatable(Of ReadOnlyMemory(Of T))
Public Structure ReadOnlyMemory(Of T)
Type Parameters
T

The object type from which the contiguous region of memory will be read.

Inheritance
Implements
Constructors Properties Empty

Gets an empty ReadOnlyMemory<T>.

IsEmpty

Gets a value that indicates whether this read-only memory region is empty.

Length

Gets the number of items in the memory region.

Span

Gets a span from the memory region.

Methods CopyTo(Memory<T>)

Copies the contents of the read-only memory region into a destination memory region.

Equals(Object)

Determines whether the specified object is equal to the current read-only memory region.

Equals(ReadOnlyMemory<T>)

Determines whether the current instance and a specified ReadOnlyMemory<T> objects are equal.

GetHashCode()

Returns the hash code for this ReadOnlyMemory<T>.

Pin()

Creates a handle for the memory.

Slice(Int32, Int32)

Forms a slice out of the given memory region starting at start position for length elements.

Slice(Int32)

Forms a slice out of the given memory region, beginning at a specified position and continuing to its end.

ToArray()

Copies the contents from the memory region into a new array.

ToString()

Returns the string representation of this read-only memory instance.

TryCopyTo(Memory<T>)

Tries to copy the contents of the readonly-only memory into the destination and returns a value that indicates whether the copy operation succeeded.

Operators Extension Methods See also

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4