C# 클래스 PSI.EpicsClient2.DataPacket

Handles messages between workers. Can contain either a TCP/UDP packet or an EPICS message
상속: ICloneable, IDisposable
파일 보기 프로젝트 열기: ISISComputingGroup/EPICS-epicssharp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Data byte[]
Destination System.Net.IPEndPoint
NeedToFlush bool
ReverseAnswer bool
Sender System.Net.IPEndPoint

공개 메소드들

메소드 설명
Clone ( ) : object

Clone this packet, creating an exact copy. As the clone function is an implementation of IClonable it must return an object.

Create ( DataPacket remaining, DataPacket newPacket ) : DataPacket

Merges 2 packets together

Create ( DataPacket packet, UInt32 size ) : DataPacket

Creates a new message based on an existing packed and use the "size" to extract only the first part.

Create ( byte buff ) : DataPacket

Creates a new message based on the byte buffer however use only the first "size" byte for it.

Create ( byte buff, int size ) : DataPacket

Creates a new message based on the byte buffer however use only the first "size" byte for it.

Create ( int size ) : DataPacket
Dispose ( ) : void
GetDataAsString ( int offset, int maxSize = 40 ) : string

Retreives the payload as string.

GetDouble ( int position ) : double
GetFloat ( int position ) : float
GetInt16 ( int position ) : short
GetInt32 ( int position ) : Int32
GetPayload ( ) : byte[]
GetSByte ( int position ) : sbyte
GetUInt16 ( int position ) : UInt16

Returns an UInt16 at a given position

GetUInt32 ( int position ) : UInt32

Returns an UInt32 at a given position

SetBytes ( int position, byte buff ) : void
SetDataAsString ( string str ) : void
SetDouble ( int position, double value ) : void
SetFloat ( int position, float value ) : void
SetInt16 ( int position, short value ) : void
SetInt32 ( int position, int value ) : void
SetSByte ( int position, sbyte value ) : void
SetUInt16 ( int position, UInt16 value ) : void

Writes an UInt16 at a given position

SetUInt32 ( int position, UInt32 value ) : void

Writes an UInt32 at a given position

SkipSize ( UInt32 size ) : DataPacket

Skips a given size from the data block

비공개 메소드들

메소드 설명
DataPacket ( ) : System

메소드 상세

Clone() 공개 메소드

Clone this packet, creating an exact copy. As the clone function is an implementation of IClonable it must return an object.
public Clone ( ) : object
리턴 object

Create() 공개 정적인 메소드

Merges 2 packets together
public static Create ( DataPacket remaining, DataPacket newPacket ) : DataPacket
remaining DataPacket
newPacket DataPacket
리턴 DataPacket

Create() 공개 정적인 메소드

Creates a new message based on an existing packed and use the "size" to extract only the first part.
public static Create ( DataPacket packet, UInt32 size ) : DataPacket
packet DataPacket
size System.UInt32
리턴 DataPacket

Create() 공개 정적인 메소드

Creates a new message based on the byte buffer however use only the first "size" byte for it.
public static Create ( byte buff ) : DataPacket
buff byte
리턴 DataPacket

Create() 공개 정적인 메소드

Creates a new message based on the byte buffer however use only the first "size" byte for it.
public static Create ( byte buff, int size ) : DataPacket
buff byte
size int
리턴 DataPacket

Create() 공개 정적인 메소드

public static Create ( int size ) : DataPacket
size int
리턴 DataPacket

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

GetDataAsString() 공개 메소드

Retreives the payload as string.
public GetDataAsString ( int offset, int maxSize = 40 ) : string
offset int
maxSize int
리턴 string

GetDouble() 공개 메소드

public GetDouble ( int position ) : double
position int
리턴 double

GetFloat() 공개 메소드

public GetFloat ( int position ) : float
position int
리턴 float

GetInt16() 공개 메소드

public GetInt16 ( int position ) : short
position int
리턴 short

GetInt32() 공개 메소드

public GetInt32 ( int position ) : Int32
position int
리턴 System.Int32

GetPayload() 공개 메소드

public GetPayload ( ) : byte[]
리턴 byte[]

GetSByte() 공개 메소드

public GetSByte ( int position ) : sbyte
position int
리턴 sbyte

GetUInt16() 공개 메소드

Returns an UInt16 at a given position
public GetUInt16 ( int position ) : UInt16
position int
리턴 System.UInt16

GetUInt32() 공개 메소드

Returns an UInt32 at a given position
public GetUInt32 ( int position ) : UInt32
position int
리턴 System.UInt32

SetBytes() 공개 메소드

public SetBytes ( int position, byte buff ) : void
position int
buff byte
리턴 void

SetDataAsString() 공개 메소드

public SetDataAsString ( string str ) : void
str string
리턴 void

SetDouble() 공개 메소드

public SetDouble ( int position, double value ) : void
position int
value double
리턴 void

SetFloat() 공개 메소드

public SetFloat ( int position, float value ) : void
position int
value float
리턴 void

SetInt16() 공개 메소드

public SetInt16 ( int position, short value ) : void
position int
value short
리턴 void

SetInt32() 공개 메소드

public SetInt32 ( int position, int value ) : void
position int
value int
리턴 void

SetSByte() 공개 메소드

public SetSByte ( int position, sbyte value ) : void
position int
value sbyte
리턴 void

SetUInt16() 공개 메소드

Writes an UInt16 at a given position
public SetUInt16 ( int position, UInt16 value ) : void
position int
value System.UInt16
리턴 void

SetUInt32() 공개 메소드

Writes an UInt32 at a given position
public SetUInt32 ( int position, UInt32 value ) : void
position int
value System.UInt32
리턴 void

SkipSize() 공개 메소드

Skips a given size from the data block
public SkipSize ( UInt32 size ) : DataPacket
size System.UInt32
리턴 DataPacket

프로퍼티 상세

Data 공개적으로 프로퍼티

public byte[] Data
리턴 byte[]

Destination 공개적으로 프로퍼티

public IPEndPoint,System.Net Destination
리턴 System.Net.IPEndPoint

NeedToFlush 공개적으로 프로퍼티

public bool NeedToFlush
리턴 bool

ReverseAnswer 공개적으로 프로퍼티

Allows to change the sending rules
public bool ReverseAnswer
리턴 bool

Sender 공개적으로 프로퍼티

public IPEndPoint,System.Net Sender
리턴 System.Net.IPEndPoint