C# Class S7.Net.Types.String

Contains the methods to convert from S7 strings to C# strings
ファイルを表示 Open project: killnine/s7netplus

Public Methods

Method Description
FromByteArray ( byte bytes ) : string

Converts S7 bytes to a string

ToByteArray ( string value ) : byte[]

Converts a string to S7 bytes

Private Methods

Method Description
Asc ( string s ) : int

Method Details

FromByteArray() public static method

Converts S7 bytes to a string
public static FromByteArray ( byte bytes ) : string
bytes byte
return string

ToByteArray() public static method

Converts a string to S7 bytes
public static ToByteArray ( string value ) : byte[]
value string
return byte[]