C# 클래스 FP300Service.MessageBuilder

파일 보기 프로젝트 열기: huginsdk/fpu 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DefaultEncoding System.Text.Encoding

공개 메소드들

메소드 설명
AddLength ( int len ) : byte[]
AddTimeFromBcd ( byte blockData, int index, int &outIndex, System.DateTime dtToAdd ) : System.DateTime
ByteArrayToHex ( byte bytesArray, int offset, int len ) : int
ByteArrayToString ( byte bytesArray, int offset, int len ) : string
BytesToHexString ( List bytesArr ) : string
CalculateLRC ( List reqPacket ) : byte
ConvertBcdToInt ( byte bytesBCD, int offset, int len ) : int
ConvertBytesToDate ( byte bytesBCD, int offset ) : System.DateTime
ConvertBytesToTime ( byte bytesBCD, int offset ) : System.DateTime
ConvertDecimalToBCD ( decimal value, int decimalCnt ) : byte[]
ConvertIntToBCD ( int value, int bcdLen ) : byte[]
ConvertIpToBcd ( String idAddress ) : byte[]
Create3DESKey ( ) : byte[]
DecryptTriple ( byte data, int len, byte tripleKey ) : byte[]
EncryptRSA ( byte rsaModulus, byte exponent, byte data ) : byte[]
EncryptTriple ( byte data, int len, byte tripleKey ) : byte[]
GetBytesFromOffset ( byte bytesArray, int offset, int len ) : byte[]
GetDateFromBcd ( byte blockData, int index, int &outIndex ) : System.DateTime
GetDateInBytes ( System.DateTime date ) : byte[]
GetDateTimeInBytes ( System.DateTime date ) : byte[]
GetLength ( byte msgBytes, int offset, int &outIndex ) : int
GetString ( byte bytesArray, int index, int &outIndex, Encoding encoding ) : string
GetTag ( byte bytesArray, int offset, int &outOffset ) : int
GetTimeInBytes ( System.DateTime time ) : byte[]
HexStringToBytes ( string strBytes ) : List
HexToByteArray ( int hexNum ) : byte[]
VerifyRSA ( byte rsaModulus, byte exponent, byte data, byte sign ) : bool

비공개 메소드들

메소드 설명
FixTurkish ( string str ) : string
GetTripleDESProvider ( byte tripleKey ) : TripleDESCryptoServiceProvider

메소드 상세

AddLength() 공개 정적인 메소드

public static AddLength ( int len ) : byte[]
len int
리턴 byte[]

AddTimeFromBcd() 공개 정적인 메소드

public static AddTimeFromBcd ( byte blockData, int index, int &outIndex, System.DateTime dtToAdd ) : System.DateTime
blockData byte
index int
outIndex int
dtToAdd System.DateTime
리턴 System.DateTime

ByteArrayToHex() 공개 정적인 메소드

public static ByteArrayToHex ( byte bytesArray, int offset, int len ) : int
bytesArray byte
offset int
len int
리턴 int

ByteArrayToString() 공개 정적인 메소드

public static ByteArrayToString ( byte bytesArray, int offset, int len ) : string
bytesArray byte
offset int
len int
리턴 string

BytesToHexString() 공개 정적인 메소드

public static BytesToHexString ( List bytesArr ) : string
bytesArr List
리턴 string

CalculateLRC() 공개 정적인 메소드

public static CalculateLRC ( List reqPacket ) : byte
reqPacket List
리턴 byte

ConvertBcdToInt() 공개 정적인 메소드

public static ConvertBcdToInt ( byte bytesBCD, int offset, int len ) : int
bytesBCD byte
offset int
len int
리턴 int

ConvertBytesToDate() 공개 정적인 메소드

public static ConvertBytesToDate ( byte bytesBCD, int offset ) : System.DateTime
bytesBCD byte
offset int
리턴 System.DateTime

ConvertBytesToTime() 공개 정적인 메소드

public static ConvertBytesToTime ( byte bytesBCD, int offset ) : System.DateTime
bytesBCD byte
offset int
리턴 System.DateTime

ConvertDecimalToBCD() 공개 정적인 메소드

public static ConvertDecimalToBCD ( decimal value, int decimalCnt ) : byte[]
value decimal
decimalCnt int
리턴 byte[]

ConvertIntToBCD() 공개 정적인 메소드

public static ConvertIntToBCD ( int value, int bcdLen ) : byte[]
value int
bcdLen int
리턴 byte[]

ConvertIpToBcd() 공개 정적인 메소드

public static ConvertIpToBcd ( String idAddress ) : byte[]
idAddress String
리턴 byte[]

Create3DESKey() 공개 정적인 메소드

public static Create3DESKey ( ) : byte[]
리턴 byte[]

DecryptTriple() 공개 정적인 메소드

public static DecryptTriple ( byte data, int len, byte tripleKey ) : byte[]
data byte
len int
tripleKey byte
리턴 byte[]

EncryptRSA() 공개 정적인 메소드

public static EncryptRSA ( byte rsaModulus, byte exponent, byte data ) : byte[]
rsaModulus byte
exponent byte
data byte
리턴 byte[]

EncryptTriple() 공개 정적인 메소드

public static EncryptTriple ( byte data, int len, byte tripleKey ) : byte[]
data byte
len int
tripleKey byte
리턴 byte[]

GetBytesFromOffset() 공개 정적인 메소드

public static GetBytesFromOffset ( byte bytesArray, int offset, int len ) : byte[]
bytesArray byte
offset int
len int
리턴 byte[]

GetDateFromBcd() 공개 정적인 메소드

public static GetDateFromBcd ( byte blockData, int index, int &outIndex ) : System.DateTime
blockData byte
index int
outIndex int
리턴 System.DateTime

GetDateInBytes() 공개 정적인 메소드

public static GetDateInBytes ( System.DateTime date ) : byte[]
date System.DateTime
리턴 byte[]

GetDateTimeInBytes() 공개 정적인 메소드

public static GetDateTimeInBytes ( System.DateTime date ) : byte[]
date System.DateTime
리턴 byte[]

GetLength() 공개 정적인 메소드

public static GetLength ( byte msgBytes, int offset, int &outIndex ) : int
msgBytes byte
offset int
outIndex int
리턴 int

GetString() 공개 정적인 메소드

public static GetString ( byte bytesArray, int index, int &outIndex, Encoding encoding ) : string
bytesArray byte
index int
outIndex int
encoding System.Text.Encoding
리턴 string

GetTag() 공개 정적인 메소드

public static GetTag ( byte bytesArray, int offset, int &outOffset ) : int
bytesArray byte
offset int
outOffset int
리턴 int

GetTimeInBytes() 공개 정적인 메소드

public static GetTimeInBytes ( System.DateTime time ) : byte[]
time System.DateTime
리턴 byte[]

HexStringToBytes() 공개 정적인 메소드

public static HexStringToBytes ( string strBytes ) : List
strBytes string
리턴 List

HexToByteArray() 공개 정적인 메소드

public static HexToByteArray ( int hexNum ) : byte[]
hexNum int
리턴 byte[]

VerifyRSA() 공개 정적인 메소드

public static VerifyRSA ( byte rsaModulus, byte exponent, byte data, byte sign ) : bool
rsaModulus byte
exponent byte
data byte
sign byte
리턴 bool

프로퍼티 상세

DefaultEncoding 공개적으로 정적으로 프로퍼티

public static Encoding,System.Text DefaultEncoding
리턴 System.Text.Encoding