fix missing big endian writeI_BE

This commit is contained in:
tildearrow 2023-08-28 05:32:09 -05:00
parent 628ddc91ca
commit 347b3cf2b1
1 changed files with 4 additions and 0 deletions

View File

@ -87,6 +87,10 @@ int SafeWriter::writeS(short val) {
return write(bytes,2);
}
int SafeWriter::writeI_BE(int val) {
return write(&val,4);
}
int SafeWriter::writeI(int val) {
unsigned char bytes[4];
bytes[0]=((unsigned int)val)&0xff;