You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: OnixLabs.Core/Text/Base16.Convertible.cs
+12-46Lines changed: 12 additions & 46 deletions
Original file line number
Diff line number
Diff line change
@@ -14,66 +14,32 @@
14
14
15
15
usingSystem;
16
16
usingSystem.Buffers;
17
-
usingSystem.Text;
18
17
19
18
namespaceOnixLabs.Core.Text;
20
19
21
20
publicreadonlypartialstructBase16
22
21
{
23
-
/// <summary>
24
-
/// Gets the underlying <see cref="byte"/> array representation of the current <see cref="Base16"/> instance as a new <see cref="ReadOnlyMemory{T}"/> instance.
25
-
/// </summary>
26
-
/// <returns>Return the underlying <see cref="byte"/> array representation of the current <see cref="Base16"/> instance as a new <see cref="ReadOnlyMemory{T}"/> instance.</returns>
/// Gets the underlying <see cref="byte"/> array representation of the current <see cref="Base16"/> instance as a new <see cref="ReadOnlySpan{T}"/> instance.
31
-
/// </summary>
32
-
/// <returns>Return the underlying <see cref="byte"/> array representation of the current <see cref="Base16"/> instance as a new <see cref="ReadOnlySpan{T}"/> instance.</returns>
25
+
/// <inheritdoc/>
33
26
publicReadOnlySpan<byte>AsReadOnlySpan()=>value;
34
27
35
-
/// <summary>
36
-
/// Create a new <see cref="Base16"/> instance from the specified <see cref="byte"/> array.
37
-
/// </summary>
38
-
/// <param name="value">The value from which to create a new <see cref="Base16"/> instance.</param>
39
-
/// <returns>Returns a new <see cref="Base16"/> instance from the specified <see cref="byte"/> array.</returns>
/// Performs an equality comparison between two object instances.
44
-
/// </summary>
45
-
/// <param name="left">The left-hand instance to compare.</param>
46
-
/// <param name="right">The right-hand instance to compare.</param>
47
-
/// <returns>Returns <see langword="true"/> if the left-hand instance is equal to the right-hand instance; otherwise, <see langword="false"/>.</returns>
/// Performs an inequality comparison between two object instances.
52
-
/// </summary>
53
-
/// <param name="left">The left-hand instance to compare.</param>
54
-
/// <param name="right">The right-hand instance to compare.</param>
55
-
/// <returns>Returns <see langword="true"/> if the left-hand instance is not equal to the right-hand instance; otherwise, <see langword="false"/>.</returns>
Copy file name to clipboardExpand all lines: OnixLabs.Core/Text/Base16.Format.cs
+7-12Lines changed: 7 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -18,16 +18,11 @@ namespace OnixLabs.Core.Text;
18
18
19
19
publicreadonlypartialstructBase16
20
20
{
21
-
/// <summary>
22
-
/// Tries to format the value of the current instance into the provided span of characters.
23
-
/// </summary>
24
-
/// <param name="destination">The span in which to write this instance's value formatted as a span of characters.</param>
25
-
/// <param name="charsWritten">When this method returns, contains the number of characters that were written in <paramref name="destination" />.</param>
26
-
/// <param name="format">A span containing the characters that represent a standard or custom format string that defines the acceptable format for <paramref name="destination" />.</param>
27
-
/// <param name="provider">An optional object that supplies culture-specific formatting information for <paramref name="destination" />.</param>
28
-
/// <returns>Returns <see langword="true"/> if the formatting was successful; otherwise, <see langword="false"/>.</returns>
/// Initializes a new instance of the <see cref="Base16"/> struct.
66
+
/// </summary>
67
+
/// <param name="value">The value from which to initialize the new <see cref="Base16"/> instance.</param>
68
+
/// <param name="encoding">The <see cref="Encoding"/> that will be used to transform the specified value, or <see langword="null"/> to use the default <see cref="Encoding"/>.</param>
/// Initializes a new instance of the <see cref="Base16"/> struct.
75
+
/// </summary>
76
+
/// <param name="value">The value from which to initialize the new <see cref="Base16"/> instance.</param>
77
+
/// <param name="encoding">The <see cref="Encoding"/> that will be used to transform the specified value, or <see langword="null"/> to use the default <see cref="Encoding"/>.</param>
/// Initializes a new instance of the <see cref="Base16"/> struct.
84
+
/// </summary>
85
+
/// <param name="value">The value from which to initialize the new <see cref="Base16"/> instance.</param>
86
+
/// <param name="encoding">The <see cref="Encoding"/> that will be used to transform the specified value, or <see langword="null"/> to use the default <see cref="Encoding"/>.</param>
0 commit comments