C# 클래스 Bespoke.DynamicDnsUpdater.Common.Encode

파일 보기 프로젝트 열기: dmarchelya/BespokeDynamicDnsUpdater 1 사용 예제들

공개 메소드들

메소드 설명
Encode ( ) : System
FromBase64String ( string base64String ) : string

Decodes the given Base64 string as an UTF8 string.

FromBase64String ( string base64String, Encoding encoding ) : string

Decodes the given Base64 stiring to a string with the given encoding.

FromBase64StringToBytes ( string base64String ) : byte[]
ToBase64String ( byte bytes ) : string

Encodes the given byte array as a Base64 string.

ToBase64String ( string toEncode ) : string

Encodes an UTF8 string as Base64

ToBase64String ( string toEncode, Encoding encoding ) : string

Encodes the byte array with the given encoding as a Base64 string.

메소드 상세

Encode() 공개 메소드

public Encode ( ) : System
리턴 System

FromBase64String() 공개 정적인 메소드

Decodes the given Base64 string as an UTF8 string.
public static FromBase64String ( string base64String ) : string
base64String string The Base64 string to decode.
리턴 string

FromBase64String() 공개 정적인 메소드

Decodes the given Base64 stiring to a string with the given encoding.
public static FromBase64String ( string base64String, Encoding encoding ) : string
base64String string The Base64 string to decode.
encoding System.Text.Encoding The encoding type of the string that is decoded.
리턴 string

FromBase64StringToBytes() 공개 정적인 메소드

public static FromBase64StringToBytes ( string base64String ) : byte[]
base64String string
리턴 byte[]

ToBase64String() 공개 정적인 메소드

Encodes the given byte array as a Base64 string.
public static ToBase64String ( byte bytes ) : string
bytes byte The byte array to encode.
리턴 string

ToBase64String() 공개 정적인 메소드

Encodes an UTF8 string as Base64
public static ToBase64String ( string toEncode ) : string
toEncode string The string to encode.
리턴 string

ToBase64String() 공개 정적인 메소드

Encodes the byte array with the given encoding as a Base64 string.
public static ToBase64String ( string toEncode, Encoding encoding ) : string
toEncode string The string to encode.
encoding System.Text.Encoding The encoding of the byte array.
리턴 string