C# 클래스 S7.Net.Types.Struct

Contains the method to convert a C# struct to S7 data types
파일 보기 프로젝트 열기: killnine/s7netplus 1 사용 예제들

공개 메소드들

메소드 설명
FromBytes ( Type structType, byte bytes ) : object

Creates a struct of a specified type by an array of bytes.

GetStructSize ( Type structType ) : int

Gets the size of the struct in bytes.

ToBytes ( object structValue ) : byte[]

Creates a byte array depending on the struct type.

메소드 상세

FromBytes() 공개 정적인 메소드

Creates a struct of a specified type by an array of bytes.
public static FromBytes ( Type structType, byte bytes ) : object
structType System.Type The struct type
bytes byte The array of bytes
리턴 object

GetStructSize() 공개 정적인 메소드

Gets the size of the struct in bytes.
public static GetStructSize ( Type structType ) : int
structType System.Type the type of the struct
리턴 int

ToBytes() 공개 정적인 메소드

Creates a byte array depending on the struct type.
public static ToBytes ( object structValue ) : byte[]
structValue object The struct object
리턴 byte[]