mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-04-23 13:05:17 +00:00
Add comment explaining why length as byte is problematic
This commit is contained in:
parent
a081d9b384
commit
69280c1213
1 changed files with 2 additions and 1 deletions
|
@ -23,7 +23,8 @@ namespace UnionPatcher {
|
|||
using MemoryStream ms = new(data);
|
||||
using BinaryWriter writer = new(ms);
|
||||
|
||||
// using writer.Write(string) writes the length as a byte beforehand which is problematic
|
||||
// using writer.Write(string) writes the length as a byte beforehand which is problematic because
|
||||
// LBP uses null-terminated strings, not length-defined strings
|
||||
byte[] serverUrlAsBytes = Encoding.ASCII.GetBytes(serverUrl);
|
||||
|
||||
foreach(string url in ToBePatched) {
|
||||
|
|
Loading…
Add table
Reference in a new issue