mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-14 00:47:25 +00:00
Misc optimization
This commit is contained in:
parent
a4bfc9700f
commit
9664c30e45
1 changed files with 9 additions and 6 deletions
|
@ -20,6 +20,7 @@
|
|||
// limitations under the License.
|
||||
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using SteamKit2;
|
||||
using SteamKit2.Internal;
|
||||
|
||||
|
@ -35,10 +36,11 @@ namespace ArchiSteamFarm.CMsgs {
|
|||
return;
|
||||
}
|
||||
|
||||
BinaryReader binaryReader = new BinaryReader(stream);
|
||||
using (BinaryReader binaryReader = new BinaryReader(stream, Encoding.UTF8, true)) {
|
||||
ClanID = binaryReader.ReadUInt64();
|
||||
AcceptInvite = binaryReader.ReadBoolean();
|
||||
}
|
||||
}
|
||||
|
||||
EMsg ISteamSerializableMessage.GetEMsg() => EMsg.ClientAcknowledgeClanInvite;
|
||||
|
||||
|
@ -49,9 +51,10 @@ namespace ArchiSteamFarm.CMsgs {
|
|||
return;
|
||||
}
|
||||
|
||||
BinaryWriter binaryWriter = new BinaryWriter(stream);
|
||||
using (BinaryWriter binaryWriter = new BinaryWriter(stream, Encoding.UTF8, true)) {
|
||||
binaryWriter.Write(ClanID);
|
||||
binaryWriter.Write(AcceptInvite);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue