mirror of
https://github.com/tildearrow/furnace.git
synced 2024-10-31 18:12:40 +00:00
fix missing big endian writeI_BE
This commit is contained in:
parent
628ddc91ca
commit
347b3cf2b1
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue