mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-08-03 06:38:47 +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 MemoryStream ms = new(data);
|
||||||
using BinaryWriter writer = new(ms);
|
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);
|
byte[] serverUrlAsBytes = Encoding.ASCII.GetBytes(serverUrl);
|
||||||
|
|
||||||
foreach(string url in ToBePatched) {
|
foreach(string url in ToBePatched) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue