doabs tag wip

This commit is contained in:
2016-08-17 15:14:29 +07:00
parent 2b42735fe9
commit 9e24c12422
13 changed files with 895 additions and 35 deletions

View File

@@ -66,7 +66,9 @@ namespace FlashTools.Internal.SwfTools {
}
public byte[] ReadBytes(int count) {
return _binaryReader.ReadBytes(count);
return count <= 0
? new byte[0]
: _binaryReader.ReadBytes(count);
}
public char ReadChar() {
@@ -74,7 +76,9 @@ namespace FlashTools.Internal.SwfTools {
}
public char[] ReadChars(int count) {
return _binaryReader.ReadChars(count);
return count <= 0
? new char[0]
: _binaryReader.ReadChars(count);
}
public short ReadInt16() {