Well i've read Korvacs wiki About packets Its Pretty Amazing So i checked How packet being build i decided i to look At Passwordcryptography Seed Strcuture i Found its like that in My Source
But what i Did is making Private ushort variable Named Seed Then Recalled it like that
So The question is They r build in 2 ways but Same Result at final So does methods Affect on Socket ?? and is the 2nd way which i used is better then the 1st one or they r Exact same ?
Code:
byte[] Buffer;
public PasswordCryptographySeed()
{
Buffer = new byte[8];
Writer.WriteUInt16(8, 0, Buffer);
Writer.WriteUInt16(1059, 2, Buffer);
}
public int Seed
{
get
{
return BitConverter.ToInt32(Buffer, 4);
}
set
{
Network.Writer.WriteInt32(value, 4, Buffer);
}
}
Code:
byte[] Buffer;
private ushort Seed;
public PasswordCryptographySeed()
{
Buffer = new byte[8];
Writer.WriteUInt16(8, 0, Buffer);
Writer.WriteUInt16(1059, 2, Buffer);
Writer.WriteUInt16(Seed, 4, Buffer);
}