fix missing big endian writeI_BE

This commit is contained in:
tildearrow 2023-08-28 05:32:09 -05:00
parent 628ddc91ca
commit 347b3cf2b1

View file

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