C# Class iTextSharp.xmp.impl.Base64

A utility class to perform base64 encoding and decoding as specified in RFC-1521. See also RFC 1421. @version $Revision: 1.4 $
Afficher le fichier Open project: nonorganic/dssnet

Méthodes publiques

Méthode Description
Decode ( byte src ) : byte[]

Decode the given byte[].

Decode ( string src ) : string

Decode the given string.

Encode ( byte src ) : byte[]

Encode the given byte[].

Encode ( byte src, int lineFeed ) : byte[]

Encode the given byte[].

Encode ( string src ) : string

Encode the given string.

Private Methods

Méthode Description
Base64 ( ) : System
GetBytes ( string str ) : byte[]
GetString ( byte bytes ) : string

Method Details

Decode() public static méthode

Decode the given byte[].
public static Decode ( byte src ) : byte[]
src byte /// the base64-encoded data.
Résultat byte[]

Decode() public static méthode

Decode the given string.
public static Decode ( string src ) : string
src string the base64-encoded string.
Résultat string

Encode() public static méthode

Encode the given byte[].
public static Encode ( byte src ) : byte[]
src byte the source string.
Résultat byte[]

Encode() public static méthode

Encode the given byte[].
public static Encode ( byte src, int lineFeed ) : byte[]
src byte the source string.
lineFeed int a linefeed is added after linefeed characters; /// must be dividable by four; 0 means no linefeeds
Résultat byte[]

Encode() public static méthode

Encode the given string.
public static Encode ( string src ) : string
src string the source string.
Résultat string