void Packetinterface.decode(byte[] packet, ref int offset) { clientId_ = PacketUtil.decodeUInt64(packet, ref offset); name_ = PacketUtil.decodestring(packet, ref offset); pointX_ = PacketUtil.decodefloat(packet, ref offset); pointY_ = PacketUtil.decodefloat(packet, ref offset); result_ = PacketUtil.decodeByte(packet, ref offset); }
public static Char[] decodeCharArray(Byte[] data, ref Int32 offset) { Int32 strLen = PacketUtil.decodeInt32(data, ref offset); Char[] val = new char[strLen]; for (int i = 0; i < strLen; i++) { val[i] = (char)PacketUtil.decodeByte(data, ref offset); } return(val); }
void PacketInterface.decode(byte[] packet, ref int offset) { clientId_ = PacketUtil.decodeUInt64(packet, ref offset); oidAccountId_ = PacketUtil.decodeUInt64(packet, ref offset); result_ = PacketUtil.decodeByte(packet, ref offset); }
void Packetinterface.decode(byte[] packet, ref int offset) { result_ = PacketUtil.decodeByte(packet, ref offset); }