Class Convert2
Data conversion functions. Compression, encryption, hex encoding, etc.
public static class Convert2
Namespace: Au.More
Assembly: Au.dll
Methods
Name | Description |
---|---|
AesDecryptB(object, object, byte[]) | AES-decrypts data. Returns byte[]. |
AesDecryptS(object, object, byte[]) | AES-decrypts data. Calls Convert2.AesDecryptB and converts the returned byte[] to string. |
AesEncryptB(object, object) | AES-encrypts a byte[] or string. Returns byte[]. |
AesEncryptB(object, object, out byte[]) | AES-encrypts a byte[] or string. Returns byte[]. |
AesEncryptS(object, object) | AES-encrypts a byte[] or string. Calls Convert2.AesEncryptB and converts the returned byte[] to Base64 string. |
AesEncryptS(object, object, out byte[]) | AES-encrypts a byte[] or string. Calls Convert2.AesEncryptB and converts the returned byte[] to Base64 string. |
BrotliCompress(ReadOnlySpan<byte>, int) | Compresses data. Uses System.IO.Compression.BrotliEncoder. |
BrotliDecompress(ReadOnlySpan<byte>) | Decompresses data. Uses System.IO.Compression.BrotliDecoder. |
DeflateCompress(ReadOnlySpan<byte>) | Compresses data. Uses System.IO.Compression.DeflateStream. |
DeflateDecompress(ReadOnlySpan<byte>) | Decompresses data. Uses System.IO.Compression.DeflateStream. |
DeflateDecompress(ReadOnlySpan<byte>, Stream) | Decompresses data to a caller-provided memory stream. Uses System.IO.Compression.DeflateStream. |
GzipCompress(ReadOnlySpan<byte>) | Compresses data. Uses System.IO.Compression.GZipStream. |
GzipDecompress(ReadOnlySpan<byte>) | Decompresses data. Uses System.IO.Compression.GZipStream. |
GzipDecompress(ReadOnlySpan<byte>, Stream) | Decompresses data to a caller-provided memory stream. Uses System.IO.Compression.GZipStream. |
HexDecode(ReadOnlySpan<char>) | Converts hex-encoded string to binary data. |
HexDecode(ReadOnlySpan<char>, void*, int) | Converts hex-encoded string to binary data. Writes to caller's memory buffer. |
HexDecode<T>(ReadOnlySpan<char>, out T) | Converts hex-encoded string to a struct variable. |
HexEncode(ReadOnlySpan<byte>, bool) | Converts data in byte[] or other memory to hex-encoded string. |
HexEncode(void*, int, bool) | Converts binary data in any memory to hex-encoded string. |
HexEncode<T>(T, bool) | Converts a struct variable to hex-encoded string. |
Utf8Decode(byte*) | Converts |
Utf8Encode(ReadOnlySpan<char>, string) | Converts string to UTF-8 byte[]. Can append |