mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
Use ToArray instead of GetBuffer
Buffer normally contain lots of extra zero bytes
This commit is contained in:
parent
0ff9980cc9
commit
77d7bb8c0c
|
|
@ -31,7 +31,7 @@ namespace TeleSharp.TL
|
|||
Serialize(bw);
|
||||
bw.Close();
|
||||
m.Close();
|
||||
return m.GetBuffer();
|
||||
return m.ToArray();
|
||||
}
|
||||
}
|
||||
public void Serialize(BinaryWriter writer)
|
||||
|
|
|
|||
Loading…
Reference in a new issue