Class ArrayConversionExtensions
- Namespace
- HeroKit.Arrays
- Assembly
- HeroKit.dll
Provides extension methods for converting arrays.
public static class ArrayConversionExtensions
- Inheritance
-
ArrayConversionExtensions
- Inherited Members
Methods
ToBase64Url(byte[]?)
Encodes bytes as URL-safe base64 (RFC 4648 §5): '-' and '_' instead of '+' and '/', without padding.
public static string ToBase64Url(this byte[]? value)
Parameters
valuebyte[]The bytes to encode.
Returns
- string
The encoded string, or an empty string if
valueis null or empty.
Examples
new byte[] { 251, 255 }.ToBase64Url(); // "-_8"