File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
src/LinkDotNet.StringBuilder Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ All notable changes to **ValueStringBuilder** will be documented in this file. T
66
77## [ Unreleased]
88
9+ ### Added
10+ - Smaller internal API improvements
11+ - Smaller performance improvements
12+
913## [ 1.4.0] - 2022-10-11
1014
1115### Added
Original file line number Diff line number Diff line change @@ -67,12 +67,14 @@ public ValueStringBuilder(Span<char> initialBuffer)
6767 /// Creates a <see cref="string"/> instance from that builder.
6868 /// </summary>
6969 /// <returns>The <see cref="string"/> instance.</returns>
70+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
7071 public override string ToString ( ) => new ( buffer [ ..bufferPosition ] ) ;
7172
7273 /// <summary>
7374 /// Returns the string as an <see cref="ReadOnlySpan{T}"/>.
7475 /// </summary>
7576 /// <returns>The filled array as <see cref="ReadOnlySpan{T}"/>.</returns>
77+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
7678 public ReadOnlySpan < char > AsSpan ( ) => buffer [ ..bufferPosition ] ;
7779
7880 /// <summary>
@@ -89,10 +91,7 @@ public ValueStringBuilder(Span<char> initialBuffer)
8991 /// </code>
9092 /// </remarks>
9193 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
92- public ref char GetPinnableReference ( )
93- {
94- return ref MemoryMarshal . GetReference ( buffer ) ;
95- }
94+ public ref char GetPinnableReference ( ) => ref MemoryMarshal . GetReference ( buffer ) ;
9695
9796 /// <summary>
9897 /// Tries to copy the represented string into the given <see cref="Span{T}"/>.
You can’t perform that action at this time.
0 commit comments