C# 클래스 Sharpcraft.Networking.StringTools

Various string tools/converters.
This uses BigEndianUnicode formattings.
파일 보기 프로젝트 열기: SijmenSchoon/Sharpcraft

공개 메소드들

메소드 설명
BytesToString ( byte bytes ) : string

Convert a byte array to string.

StringToBytes ( string str ) : byte[]

Convert a string to a byte array.

메소드 상세

BytesToString() 공개 정적인 메소드

Convert a byte array to string.
public static BytesToString ( byte bytes ) : string
bytes byte The byte array to convert.
리턴 string

StringToBytes() 공개 정적인 메소드

Convert a string to a byte array.
public static StringToBytes ( string str ) : byte[]
str string The string to convert.
리턴 byte[]