Added WriteUC wrapper to safewrite for unsigned char.
This commit is contained in:
parent
6a64df6c68
commit
8ed02530f6
3 changed files with 19 additions and 14 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue