Added WriteUC wrapper to safewrite for unsigned char.

This commit is contained in:
ZeroByteOrg 2022-06-07 22:08:04 -05:00
parent 6a64df6c68
commit 8ed02530f6
3 changed files with 19 additions and 14 deletions

View file

@ -77,6 +77,10 @@ int SafeWriter::writeC(signed char val) {
return write(&val,1);
}
int SafeWriter::writeUC(unsigned char val) {
return write(&val,1);
}
int SafeWriter::writeS(short val) {
return write(&val,2);
}
@ -139,4 +143,4 @@ void SafeWriter::finish() {
delete[] buf;
buf=NULL;
operative=false;
}
}