mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Added 64 bit types.
This commit is contained in:
parent
14e4b0c6fe
commit
2e8b0a60b6
3 changed files with 52 additions and 7 deletions
|
@ -104,6 +104,30 @@ public:
|
|||
return Read32(Buffer, Count);
|
||||
}
|
||||
|
||||
lcuint64 ReadU64()
|
||||
{
|
||||
lcuint64 Value;
|
||||
Read64(&Value, 1);
|
||||
return Value;
|
||||
}
|
||||
|
||||
size_t ReadU64(lcuint64* Buffer, size_t Count)
|
||||
{
|
||||
return Read64(Buffer, Count);
|
||||
}
|
||||
|
||||
lcint64 ReadS64()
|
||||
{
|
||||
lcint64 Value;
|
||||
Read64(&Value, 1);
|
||||
return Value;
|
||||
}
|
||||
|
||||
size_t ReadS64(lcint64* Buffer, size_t Count)
|
||||
{
|
||||
return Read64(Buffer, Count);
|
||||
}
|
||||
|
||||
float ReadFloat()
|
||||
{
|
||||
float Value;
|
||||
|
@ -188,6 +212,26 @@ public:
|
|||
return Write32(Buffer, Count);
|
||||
}
|
||||
|
||||
void WriteU64(const lcuint64& Value)
|
||||
{
|
||||
Write64(&Value, 1);
|
||||
}
|
||||
|
||||
size_t WriteU64(const lcuint64* Buffer, size_t Count)
|
||||
{
|
||||
return Write64(Buffer, Count);
|
||||
}
|
||||
|
||||
void WriteS64(const lcint64& Value)
|
||||
{
|
||||
Write64(&Value, 1);
|
||||
}
|
||||
|
||||
size_t WriteS64(const lcint64* Buffer, size_t Count)
|
||||
{
|
||||
return Write64(Buffer, Count);
|
||||
}
|
||||
|
||||
void WriteFloat(const float& Value)
|
||||
{
|
||||
Write32(&Value, 1);
|
||||
|
|
|
@ -1366,7 +1366,6 @@ void CMainFrame::UpdateMenuAccelerators()
|
|||
{
|
||||
LC_KEYBOARD_COMMAND& Cmd = KeyboardShortcuts[i];
|
||||
WORD ID = CmdToID[Cmd.ID];
|
||||
String str;
|
||||
|
||||
if (ID == 0)
|
||||
continue;
|
||||
|
|
14
win/config.h
14
win/config.h
|
@ -14,12 +14,14 @@
|
|||
#define LC_INSTALL_PREFIX "C:\\leocad"
|
||||
#define LC_POINTER_TO_INT(p) ((lcint32)(p))
|
||||
|
||||
typedef signed char lcint8;
|
||||
typedef unsigned char lcuint8;
|
||||
typedef signed short lcint16;
|
||||
typedef unsigned short lcuint16;
|
||||
typedef signed int lcint32;
|
||||
typedef unsigned int lcuint32;
|
||||
typedef __int8 lcint8;
|
||||
typedef unsigned __int8 lcuint8;
|
||||
typedef signed __int16 lcint16;
|
||||
typedef unsigned __int16 lcuint16;
|
||||
typedef signed __int32 lcint32;
|
||||
typedef unsigned __int32 lcuint32;
|
||||
typedef signed __int64 lcint64;
|
||||
typedef unsigned __int64 lcuint64;
|
||||
|
||||
#define LC_LITTLE_ENDIAN
|
||||
#define LCUINT16(val) val
|
||||
|
|
Loading…
Reference in a new issue