MemoryExtensions Class
Namespace
Statiq.Common
Base Types
  • object
graph BT Type-->Base0["object"] Type["MemoryExtensions"] class Type type-node

Syntax

public static class MemoryExtensions

Methods

Name Return Value Summary
Append(Memory<char>, char[]) Memory<char>
static
Remove(Memory<char>, int, int) Memory<char>
Removes characters from a character span by copying over them and returning a slice. This is destructive and the original span should no longer be used.
static
Replace(Memory<char>, char, char) bool
static
Replace(Memory<char>, char[], char) bool
static
SequenceEqual(ReadOnlyMemory<char>, ReadOnlyMemory<char>) bool
static
StartsWith(IEnumerable<ReadOnlyMemory<char>>, IEnumerable<ReadOnlyMemory<char>>) bool
static
StartsWith(ReadOnlyMemory<char>, ReadOnlyMemory<char>) bool
static
ToStrings(IEnumerable<ReadOnlyMemory<char>>) IEnumerable<string>
static