Skip to main content
.NET API Catalog
  • Browse
  • Search
  • Diff
  • Others
    Feature Usage Stats
    Version Source
  • .NET Upgrade Planner
  1. Catalog
  2. System.Runtime.InteropServices
  3. MemoryMarshal
  4. CreateReadOnlySpanFromNullTerminated(Char*)
  • MemoryMarshal
    • AsBytes<T>(ReadOnlySpan<T>)
    • AsBytes<T>(Span<T>)
    • AsMemory<T>(ReadOnlyMemory<T>)
    • AsRef<T>(ReadOnlySpan<Byte>)
    • AsRef<T>(Span<Byte>)
    • Cast<TFrom, TTo>(ReadOnlySpan<TFrom>)
    • Cast<TFrom, TTo>(Span<TFrom>)
    • CreateFromPinnedArray<T>(T[], Int32, Int32)
    • CreateReadOnlySpan<T>(T, Int32)
    • CreateReadOnlySpanFromNullTerminated(Byte*)
    • CreateReadOnlySpanFromNullTerminated(Char*)
    • CreateSpan<T>(T, Int32)
    • GetArrayDataReference(Array)
    • GetArrayDataReference<T>(T[])
    • GetReference<T>(ReadOnlySpan<T>)
    • GetReference<T>(Span<T>)
    • Read<T>(ReadOnlySpan<Byte>)
    • ToEnumerable<T>(ReadOnlyMemory<T>)
    • TryGetArray<T>(ReadOnlyMemory<T>, ArraySegment<T>)
    • TryGetMemoryManager<T, TManager>(ReadOnlyMemory<T>, TManager)
    • TryGetMemoryManager<T, TManager>(ReadOnlyMemory<T>, TManager, Int32, Int32)
    • TryGetString(ReadOnlyMemory<Char>, String, Int32, Int32)
    • TryRead<T>(ReadOnlySpan<Byte>, T)
    • TryWrite<T>(Span<Byte>, T)
    • Write<T>(Span<Byte>, T)
net9.0
namespace System.Runtime.InteropServices
{
    public static class MemoryMarshal
    {
        [CLSCompliant(false)]
        public static ReadOnlySpan<char> CreateReadOnlySpanFromNullTerminated(char* value);
    }
}
nuget.org
0.1 %
Reference this API
.NET 6.07.08.09.0
Information specific to net9.0
Assembly

System.Runtime , Version=9.0.0.0, PublicKeyToken=b03f5f7f11d50a3a

Referencing

The API is automatically referenced.

Platform Restrictions

This API is supported on all platforms.

  • Built-in API
  • Package-provided API
Search

03/18/2025
An error has occurred. This application may no longer respond until reloaded. Reload 🗙