.mod import
This commit is contained in:
parent
372f2a20a2
commit
87f225074c
10 changed files with 432 additions and 10 deletions
|
|
@ -91,10 +91,10 @@ short SafeReader::readS() {
|
|||
}
|
||||
|
||||
short SafeReader::readS_BE() {
|
||||
if (curSeek+1>len) throw EndOfFileException(this,len);
|
||||
if (curSeek+2>len) throw EndOfFileException(this,len);
|
||||
short ret=*(short*)(&buf[curSeek]);
|
||||
curSeek+=2;
|
||||
return (ret>>8)|((ret&0xff)<<8);
|
||||
return ((ret>>8)&0xff)|(ret<<8);
|
||||
}
|
||||
|
||||
int SafeReader::readI() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue