public void AppendTo(StringBuffer stringBuffer, byte *valuePtr, StringView format) { if (!UnmanagedCache.TryGetFormatter(_typeHandle, out var formatter)) { AppendUnformattedTo(stringBuffer, valuePtr); return; } formatter(stringBuffer, valuePtr, format); }
public static void RegisterUnmanaged <T>() where T : unmanaged, IStringFormattable => UnmanagedCache.Register <T>();
public static void RegisterUnmanaged <T>(UnmanagedFormatterDelegate <T> formatter) where T : unmanaged => UnmanagedCache.Register(formatter);
public static void RegisterUnmanaged([NotNull] Type type) => UnmanagedCache.Register(type);