potrzebuje pomocy w wyjaśnieniu części kodu. Z góry dzięki
private string zmienna1(BinaryReader czytaj, int ile)
{
byte[] n = new byte[ile];
czytaj.Read(n, 0, n.Length);
return Encoding.ASCII.GetString(n, 0, n.Length);
}
private string zmienna2(BinaryReader czytaj, int ile)
{
byte[] m = new byte[ile];
czytaj.Read(m, 0, m.Length);
int temp;
if (ile == 4)
temp = BitConverter.ToInt32(m, 0);
else
temp = BitConverter.ToInt16(m, 0);
return temp.ToString();
}