C# 클래스 SocketLibrary.Packets.PacketUtil

파일 보기 프로젝트 열기: Wotuu/RTS_XNA_v2

공개 메소드들

메소드 설명
DecodeInt ( byte bytes ) : int

Converts a byte array with length 4 to an int.

DecodePacketInt ( Packet p, int index ) : int

Decodes a packet that should contain an int.

DecodePacketString ( Packet p, int index ) : String

Decodes a packet to a string.

메소드 상세

DecodeInt() 공개 정적인 메소드

Converts a byte array with length 4 to an int.
public static DecodeInt ( byte bytes ) : int
bytes byte The bytes to convert.
리턴 int

DecodePacketInt() 공개 정적인 메소드

Decodes a packet that should contain an int.
public static DecodePacketInt ( Packet p, int index ) : int
p Packet The packet
index int The byte index to start searching for the int
리턴 int

DecodePacketString() 공개 정적인 메소드

Decodes a packet to a string.
public static DecodePacketString ( Packet p, int index ) : String
p Packet The packet to decode.
index int
리턴 String