Search Results for

    Show / Hide Table of Contents
    View Source

    Class HexEncoder

    Provides methods for encoding byte arrays into hexadecimal strings.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core
    Assembly: Umbraco.Core.dll
    Syntax
    public static class HexEncoder

    Methods

    View Source

    Encode(byte[])

    Converts a byte[] to a hexadecimal formatted string padded to 2 digits.

    Declaration
    public static string Encode(byte[] bytes)
    Parameters
    Type Name Description
    byte[] bytes

    The bytes.

    Returns
    Type Description
    string

    The string.

    View Source

    Encode(byte[], char, int, int)

    Converts a byte[] to a hexadecimal formatted string padded to 2 digits and split into blocks with the given char separator.

    Declaration
    public static string Encode(byte[] bytes, char separator, int blockSize, int blockCount)
    Parameters
    Type Name Description
    byte[] bytes

    The bytes.

    char separator

    The separator.

    int blockSize

    The block size.

    int blockCount

    The block count.

    Returns
    Type Description
    string
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX