Skip to content

Commit 207df87

Browse files
committed
use hashes for fund types
1 parent 10cb133 commit 207df87

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/red4ext/Utils.hpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,77 +20,77 @@ template<> void RedTypeFromString<bool>(bool * pointer, const RED4ext::CString&
2020
RED4ext::RawBuffer buffer;
2121
buffer.data = (void*)str.c_str();
2222
buffer.size = str.length;
23-
RTTITYPE(Bool)->FromString(pointer, buffer);
23+
RTTITYPE(3443526637)->FromString(pointer, buffer);
2424
}
2525

2626
template<> void RedTypeFromString<int8_t>(int8_t * pointer, const RED4ext::CString& str) {
2727
RED4ext::RawBuffer buffer;
2828
buffer.data = (void*)str.c_str();
2929
buffer.size = str.length;
30-
RTTITYPE(Int8)->FromString(pointer, buffer);
30+
RTTITYPE(3415542724)->FromString(pointer, buffer);
3131
}
3232

3333
template<> void RedTypeFromString<int16_t>(int16_t * pointer, const RED4ext::CString& str) {
3434
RED4ext::RawBuffer buffer;
3535
buffer.data = (void*)str.c_str();
3636
buffer.size = str.length;
37-
RTTITYPE(Int16)->FromString(pointer, buffer);
37+
RTTITYPE(3592162291)->FromString(pointer, buffer);
3838
}
3939

4040
template<> void RedTypeFromString<int32_t>(int32_t * pointer, const RED4ext::CString& str) {
4141
RED4ext::RawBuffer buffer;
4242
buffer.data = (void*)str.c_str();
4343
buffer.size = str.length;
44-
RTTITYPE(Int32)->FromString(pointer, buffer);
44+
RTTITYPE(3590851569)->FromString(pointer, buffer);
4545
}
4646

4747
template<> void RedTypeFromString<int64_t>(int64_t * pointer, const RED4ext::CString& str) {
4848
RED4ext::RawBuffer buffer;
4949
buffer.data = (void*)str.c_str();
5050
buffer.size = str.length;
51-
RTTITYPE(Int64)->FromString(pointer, buffer);
51+
RTTITYPE(3594652662)->FromString(pointer, buffer);
5252
}
5353

5454
template<> void RedTypeFromString<uint8_t>(uint8_t * pointer, const RED4ext::CString& str) {
5555
RED4ext::RawBuffer buffer;
5656
buffer.data = (void*)str.c_str();
5757
buffer.size = str.length;
58-
RTTITYPE(Uint8)->FromString(pointer, buffer);
58+
RTTITYPE(3648392249)->FromString(pointer, buffer);
5959
}
6060

6161
template<> void RedTypeFromString<uint16_t>(uint16_t * pointer, const RED4ext::CString& str) {
6262
RED4ext::RawBuffer buffer;
6363
buffer.data = (void*)str.c_str();
6464
buffer.size = str.length;
65-
RTTITYPE(Uint16)->FromString(pointer, buffer);
65+
RTTITYPE(3832679528)->FromString(pointer, buffer);
6666
}
6767

6868
template<> void RedTypeFromString<uint32_t>(uint32_t * pointer, const RED4ext::CString& str) {
6969
RED4ext::RawBuffer buffer;
7070
buffer.data = (void*)str.c_str();
7171
buffer.size = str.length;
72-
RTTITYPE(Uint32)->FromString(pointer, buffer);
72+
RTTITYPE(3831368806)->FromString(pointer, buffer);
7373
}
7474

7575
template<> void RedTypeFromString<uint64_t>(uint64_t * pointer, const RED4ext::CString& str) {
7676
RED4ext::RawBuffer buffer;
7777
buffer.data = (void*)str.c_str();
7878
buffer.size = str.length;
79-
RTTITYPE(Uint64)->FromString(pointer, buffer);
79+
RTTITYPE(3835169899)->FromString(pointer, buffer);
8080
}
8181

8282
template<> void RedTypeFromString<float>(float * pointer, const RED4ext::CString& str) {
8383
RED4ext::RawBuffer buffer;
8484
buffer.data = (void*)str.c_str();
8585
buffer.size = str.length;
86-
RTTITYPE(Float)->FromString(pointer, buffer);
86+
RTTITYPE(3665562711)->FromString(pointer, buffer);
8787
}
8888

8989
template<> void RedTypeFromString<double>(double * pointer, const RED4ext::CString& str) {
9090
RED4ext::RawBuffer buffer;
9191
buffer.data = (void*)str.c_str();
9292
buffer.size = str.length;
93-
RTTITYPE(Double)->FromString(pointer, buffer);
93+
RTTITYPE(3892120764)->FromString(pointer, buffer);
9494
}
9595

9696
template<> void RedTypeFromString<RED4ext::CName>(RED4ext::CName * pointer, const RED4ext::CString& str) {

0 commit comments

Comments
 (0)