Show / Hide Table of Contents

    Class ByteUtil

    Inheritance
    System.Object
    ByteUtil
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Catalyst.Core.Lib.Util
    Assembly: Catalyst.Core.Lib.dll
    Syntax
    public static class ByteUtil

    Properties

    | Improve this Doc View Source

    EmptyByteArray

    Declaration
    public static byte[] EmptyByteArray { get; }
    Property Value
    Type Description
    System.Byte[]
    | Improve this Doc View Source

    ZeroByteArray

    Declaration
    public static byte[] ZeroByteArray { get; }
    Property Value
    Type Description
    System.Byte[]

    Methods

    | Improve this Doc View Source

    AppendByte(Byte[], Byte)

    Creates a copy of bytes and appends b to the end of it

    Declaration
    public static byte[] AppendByte(byte[] array, byte b)
    Parameters
    Type Name Description
    System.Byte[] array
    System.Byte b
    Returns
    Type Description
    System.Byte[]
    | Improve this Doc View Source

    GenerateRandomByteArray(Int32)

    returns a random array of byte of the desired length

    Declaration
    public static byte[] GenerateRandomByteArray(int length)
    Parameters
    Type Name Description
    System.Int32 length
    Returns
    Type Description
    System.Byte[]
    | Improve this Doc View Source

    InitialiseEmptyByteArray(Int32)

    Declaration
    public static byte[] InitialiseEmptyByteArray(int length)
    Parameters
    Type Name Description
    System.Int32 length
    Returns
    Type Description
    System.Byte[]
    | Improve this Doc View Source

    Merge(Byte[][])

    Declaration
    public static byte[] Merge(params byte[][] arrays)
    Parameters
    Type Name Description
    System.Byte[][] arrays
    • arrays to merge
    Returns
    Type Description
    System.Byte[]
    • merged array
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network