Show / Hide Table of Contents

    Class ByteUtilityExtensions

    This is an extension implementation of the most common methods on the ByteUtility class.

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

    Methods

    | Improve this Doc

    RemovePreamble(Byte[], Encoding)

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

    Declaration
    public static byte[] RemovePreamble(this 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(this 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