Fixed a bug related to encoding; Added useless debugging file-types to .gitignore.

This commit is contained in:
Radfordhound 2017-03-09 00:05:41 -06:00 committed by Skyth
parent 8b2333eecf
commit 96c65d2d33
6 changed files with 4 additions and 2 deletions

4
.gitignore vendored
View File

@ -241,4 +241,6 @@ ModelManifest.xml
.paket/paket.exe
# FAKE - F# Make
.fake/
.fake/
*.config
[Rr]elease/*.xml

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -41,7 +41,7 @@ namespace SonicAudioLib.IO
long position = length;
items.Add(new StringItem() { Value = value, Position = position });
length += value.Length + 1;
length += encoding.GetByteCount(value) + 1;
return position;
}