Show / Hide Table of Contents

    Class ByteUtility

    This utility class is designed to make common System.Byte operations easier to work with.

    Inheritance
    System.Object
    ByteUtility
    Namespace: Cuemon
    Assembly: Cuemon.Core.dll
    Syntax
    public static class ByteUtility

    Methods

    | Improve this Doc

    CombineByteArrays(Byte[][])

    Combines a variable number of byte arrays into one byte array.

    Declaration
    public static byte[] CombineByteArrays(params byte[][] bytes)
    Parameters
    Type Name Description
    System.Byte[][] bytes

    The byte arrays to combine.

    Returns
    Type Description
    System.Byte[]

    A variable number of byte arrays combined into one byte array.

    | Improve this Doc

    RemovePreamble(Byte[], Encoding)

    Removes the preamble information (if present) from the specified System.Byte array.

    Declaration
    public static byte[] RemovePreamble(byte[] input, Encoding encoding)
    Parameters
    Type Name Description
    System.Byte[] input

    The input System.Byte array to process.

    System.Text.Encoding encoding

    The encoding to use when determining the preamble to remove.

    Returns
    Type Description
    System.Byte[]

    A System.Byte array without preamble information.

    | Improve this Doc

    RemoveTrailingZeros(Byte[])

    Removes trailing zero information (if any) from the specified System.Byte array.

    Declaration
    public static byte[] RemoveTrailingZeros(byte[] input)
    Parameters
    Type Name Description
    System.Byte[] input

    The input System.Byte array to process.

    Returns
    Type Description
    System.Byte[]

    A System.Byte array without trailing zeros.

    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX