Show / Hide Table of Contents

    Class BytesExtensions

    Inheritance
    System.Object
    BytesExtensions
    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.Extensions
    Assembly: Catalyst.Core.Lib.dll
    Syntax
    public static class BytesExtensions

    Methods

    | Improve this Doc View Source

    BuildPeerIdFromPublicKey(Byte[], IPAddress, Int32)

    Declaration
    public static PeerId BuildPeerIdFromPublicKey(this byte[] publicKey, IPAddress ipAddress, int port)
    Parameters
    Type Name Description
    System.Byte[] publicKey
    System.Net.IPAddress ipAddress
    System.Int32 port
    Returns
    Type Description
    PeerId
    | Improve this Doc View Source

    BuildPeerIdFromPublicKey(Byte[], IPEndPoint)

    Declaration
    public static PeerId BuildPeerIdFromPublicKey(this byte[] publicKey, IPEndPoint ipEndPoint)
    Parameters
    Type Name Description
    System.Byte[] publicKey
    System.Net.IPEndPoint ipEndPoint
    Returns
    Type Description
    PeerId
    | Improve this Doc View Source

    ToByteString(IEnumerable<Byte>)

    Declaration
    public static ByteString ToByteString(this IEnumerable<byte> bytes)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.Byte> bytes
    Returns
    Type Description
    ByteString
    | Improve this Doc View Source

    ToMemoryStream(Byte[])

    Declaration
    public static MemoryStream ToMemoryStream(this byte[] content)
    Parameters
    Type Name Description
    System.Byte[] content
    Returns
    Type Description
    System.IO.MemoryStream
    | Improve this Doc View Source

    ToUInt256(ByteString)

    Declaration
    public static UInt256 ToUInt256(this ByteString byteString)
    Parameters
    Type Name Description
    ByteString byteString
    Returns
    Type Description
    UInt256
    | Improve this Doc View Source

    ToUint256ByteString(Int32)

    Declaration
    public static ByteString ToUint256ByteString(this int int)
    Parameters
    Type Name Description
    System.Int32 int
    Returns
    Type Description
    ByteString
    | Improve this Doc View Source

    ToUint256ByteString(UInt32)

    Declaration
    public static ByteString ToUint256ByteString(this uint uInt)
    Parameters
    Type Name Description
    System.UInt32 uInt
    Returns
    Type Description
    ByteString
    | Improve this Doc View Source

    ToUint256ByteString(UInt64)

    Declaration
    public static ByteString ToUint256ByteString(this ulong uLong)
    Parameters
    Type Name Description
    System.UInt64 uLong
    Returns
    Type Description
    ByteString
    | Improve this Doc View Source

    ToUint256ByteString(UInt256)

    Declaration
    public static ByteString ToUint256ByteString(this UInt256 uInt256)
    Parameters
    Type Name Description
    UInt256 uInt256
    Returns
    Type Description
    ByteString
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network