C# Class Universal.Torrent.Common.UriHelper

Mostra file Open project: haroldma/Universal.Torrent

Public Methods

Method Description
UrlDecode ( string s ) : byte[]
UrlEncode ( byte bytes ) : string

Private Methods

Method Description
GetChar ( string str, int offset, int length ) : int
GetInt ( byte b ) : int
NotEncoded ( char c ) : bool
UrlEncodeChar ( char c, Stream result, bool isUnicode ) : void
WriteCharBytes ( List buf, char ch, Encoding e ) : void

Method Details

UrlDecode() public static method

public static UrlDecode ( string s ) : byte[]
s string
return byte[]

UrlEncode() public static method

public static UrlEncode ( byte bytes ) : string
bytes byte
return string