TriLib
Search Results for

    Show / Hide Table of Contents

    Class Base64Decoder

    Provides functionality to decode data from a Base64-encoded source one byte at a time.

    Inheritance
    object
    Base64Decoder
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: TriLibCore.Utils
    Assembly: TriLibCore.dll
    Syntax
    public class Base64Decoder

    Constructors

    Base64Decoder()

    Declaration
    public Base64Decoder()

    Methods

    DecodeByte(byte, out byte)

    Decodes a single Base64 character (in byte form) and produces an output byte, if enough data has been gathered.

    Declaration
    public bool DecodeByte(byte data, out byte output)
    Parameters
    Type Name Description
    byte data

    The byte representing a Base64 character. Whitespace and certain control characters (such as '=', '\r', '\n') are ignored.

    byte output

    When this method returns true, contains the decoded byte. When this method returns false, the output is not yet defined.

    Returns
    Type Description
    bool

    true if a decoded byte is produced by this method; otherwise, false.

    Exceptions
    Type Condition
    FormatException

    Thrown if the specified data is an invalid Base64 character.

    Extension Methods

    IObjectExtensions.TryToDispose<T>(object)
    In this article
    Back to top Generated by DocFX