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: FoundationDB.Client/Converters/FdbConverters.cs
+14-4Lines changed: 14 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -537,12 +537,13 @@ public static T Unbox<T>(object value)
537
537
/// <param name="value">Boxed value</param>
538
538
/// <returns>Converted value, or an exception if there are no known convertions. The value null is converted into default(<typeparamref name="R"/>) by convention</returns>
539
539
/// <exception cref="System.InvalidOperationException">No valid converter for these types was found</exception>
Copy file name to clipboardExpand all lines: FoundationDB.Client/Utils/Slice.cs
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -830,12 +830,19 @@ public static Slice FromUuid64(Uuid64 value)
830
830
returnvalue.ToSlice();
831
831
}
832
832
833
+
internalstaticreadonlyEncodingDefaultEncoding=
834
+
#if CORE_CLR
835
+
Encoding.GetEncoding(0);
836
+
#else
837
+
Encoding.Default;
838
+
#endif
839
+
833
840
/// <summary>Dangerously create a slice containing string converted to ASCII. All non-ASCII characters may be corrupted or converted to '?'</summary>
834
841
/// <remarks>WARNING: if you put a string that contains non-ASCII chars, it will be silently corrupted! This should only be used to store keywords or 'safe' strings.
835
842
/// Note: depending on your default codepage, chars from 128 to 255 may be preserved, but only if they are decoded using the same codepage at the other end !</remarks>
0 commit comments