C# Class H.Comm.Bytes

Byte类型方法集 zbw911
Show file Open project: zbw911/CS4Hadoop

Public Methods

Method Description
BytesToStr ( byte byteArray ) : string

把 字节数组 转化为 字符串

StrToBytes ( string str ) : byte[]

把 字符串转化为字节数组

ToBytes ( this str ) : byte[]

把 字符串转化为字节数组

ToStr ( this byteArray ) : string

把 字节数组 转化为 字符串

Method Details

BytesToStr() public static method

把 字节数组 转化为 字符串
public static BytesToStr ( byte byteArray ) : string
byteArray byte
return string

StrToBytes() public static method

把 字符串转化为字节数组
public static StrToBytes ( string str ) : byte[]
str string
return byte[]

ToBytes() public static method

把 字符串转化为字节数组
public static ToBytes ( this str ) : byte[]
str this
return byte[]

ToStr() public static method

把 字节数组 转化为 字符串
public static ToStr ( this byteArray ) : string
byteArray this
return string