Compare commits
2 commits
42d904c2f2
...
0da6cc4242
Author | SHA1 | Date | |
---|---|---|---|
0da6cc4242 | |||
387a90edff |
2 changed files with 8 additions and 1 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[Dd]ebug
|
||||||
|
[Rr]elease
|
||||||
|
*.userprefs
|
|
@ -26,7 +26,6 @@ namespace AdrianKousz.Util
|
||||||
else Write((Int32)0);
|
else Write((Int32)0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: What gets actually written here?
|
|
||||||
public void WriteZStringRaw(string value) { WriteStringRaw(value + "\0"); }
|
public void WriteZStringRaw(string value) { WriteStringRaw(value + "\0"); }
|
||||||
public void WriteZStringInt16(string value) { WriteStringInt16(value + "\0"); }
|
public void WriteZStringInt16(string value) { WriteStringInt16(value + "\0"); }
|
||||||
public void WriteZStringInt32(string value) { WriteStringInt32(value + "\0"); }
|
public void WriteZStringInt32(string value) { WriteStringInt32(value + "\0"); }
|
||||||
|
@ -64,5 +63,10 @@ namespace AdrianKousz.Util
|
||||||
{
|
{
|
||||||
return encoding.GetByteCount(value);
|
return encoding.GetByteCount(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int GetZByteCount(string value)
|
||||||
|
{
|
||||||
|
return encoding.GetByteCount(value + "\0");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue