mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 00:30:57 +00:00
a slight oopsie on the location of WriteFloat and friends :P plus nq is now
endian/size clean.
This commit is contained in:
parent
39872aad5b
commit
c350bb2b1b
4 changed files with 106 additions and 102 deletions
|
@ -66,6 +66,18 @@ int LongNoSwap (int l);
|
|||
float FloatSwap (float f);
|
||||
float FloatNoSwap (float f);
|
||||
|
||||
//NOTE: thes /always/ read and write /little/ endian entities.
|
||||
struct VFile_s;
|
||||
void WriteFloat (struct VFile_s *file, float f);
|
||||
void WriteByte (struct VFile_s *file, int b);
|
||||
void WriteShort (struct VFile_s *file, unsigned int s);
|
||||
void WriteLong (struct VFile_s *file, unsigned int l);
|
||||
float ReadFloat (struct VFile_s *file);
|
||||
byte ReadByte (struct VFile_s *file);
|
||||
unsigned short ReadShort (struct VFile_s *file);
|
||||
unsigned long ReadLong (struct VFile_s *file);
|
||||
|
||||
|
||||
//============================================================================
|
||||
|
||||
#endif // __qendian_h
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue