aboutsummaryrefslogtreecommitdiff
path: root/src/types
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2020-01-10 16:07:59 +0100
committerMax Audron <audron@cocaine.farm>2020-01-10 16:07:59 +0100
commitbe7d85b0b27c35dd733c66f5ca5a8067e1eb935f (patch)
treef17f8231074fc3226de39e5e77f3633854b5e4d2 /src/types
init
Diffstat (limited to 'src/types')
-rw-r--r--src/types/basic.rs41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/types/basic.rs b/src/types/basic.rs
new file mode 100644
index 0000000..f7a505a
--- /dev/null
+++ b/src/types/basic.rs
@@ -0,0 +1,41 @@
+pub const VOID: u32 = 0x00000000;
+pub const BOOL: u32 = 0x00000001;
+pub const INT: u32 = 0x00000002; // int32_t
+pub const UINT: u32 = 0x00000003; // uint32_t
+pub const QCHAR: u32 = 0x00000007;
+pub const QVARIANTMAP: u32 = 0x00000008;
+pub const QVARIANTLIST: u32 = 0x00000009;
+pub const QSTRING: u32 = 0x0000000a;
+pub const QSTRINGLIST: u32 = 0x0000000b;
+pub const QBYTEARRAY: u32 = 0x0000000c;
+pub const QTIME: u32 = 0x0000000f;
+pub const QDATETIME: u32 = 0x00000010;
+pub const USERTYPE: u32 = 0x0000007f;
+pub const LONG: u32 = 0x00000081; // int64_t
+pub const SHORT: u32 = 0x00000082; // int16_t
+pub const CHAR: u32 = 0x00000083; // int8_t
+pub const ULONG: u32 = 0x00000084; // uint64_t
+pub const USHORT: u32 = 0x00000085; // uint16_t
+pub const UCHAR: u32 = 0x00000086; // uint8_t
+pub const QVARIANT: u32 = 0x00000090;
+
+// Void 0x00000000
+// Bool 0x00000001
+// Int 0x00000002 int32_t
+// UInt 0x00000003 uint32_t
+// QChar 0x00000007
+// QVariantMap 0x00000008
+// QVariantList 0x00000009
+// QString 0x0000000a
+// QStringList 0x0000000b
+// QByteArray 0x0000000c
+// QTime 0x0000000f
+// QDateTime 0x00000010
+// UserType 0x0000007f
+// Long 0x00000081 int64_t
+// Short 0x00000082 int16_t
+// Char 0x00000083 int8_t
+// ULong 0x00000084 uint64_t
+// UShort 0x00000085 uint16_t
+// UChar 0x00000086 uint8_t
+// QVariant 0x00000090