C# Class Sharpcraft.Networking.StringTools

Various string tools/converters.
This uses BigEndianUnicode formattings.
Afficher le fichier Open project: SijmenSchoon/Sharpcraft

Méthodes publiques

Méthode Description
BytesToString ( byte bytes ) : string

Convert a byte array to string.

StringToBytes ( string str ) : byte[]

Convert a string to a byte array.

Method Details

BytesToString() public static méthode

Convert a byte array to string.
public static BytesToString ( byte bytes ) : string
bytes byte The byte array to convert.
Résultat string

StringToBytes() public static méthode

Convert a string to a byte array.
public static StringToBytes ( string str ) : byte[]
str string The string to convert.
Résultat byte[]