mirror of
https://github.com/MaskRay/ccls.git
synced 2024-12-01 20:07:08 +00:00
Serialize int/long/long long instead of int32_t/int64_t
This commit is contained in:
parent
f93eaa74a2
commit
bffe9203eb
@ -28,31 +28,45 @@ void Reflect(Writer& visitor, int16_t& value) {
|
|||||||
visitor.Int(value);
|
visitor.Int(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Reflect(Reader& visitor, int32_t& value) {
|
void Reflect(Reader& visitor, int& value) {
|
||||||
value = visitor.GetInt();
|
value = visitor.GetInt();
|
||||||
}
|
}
|
||||||
void Reflect(Writer& visitor, int32_t& value) {
|
void Reflect(Writer& visitor, int& value) {
|
||||||
visitor.Int(value);
|
visitor.Int(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Reflect(Reader& visitor, uint32_t& value) {
|
void Reflect(Reader& visitor, unsigned& value) {
|
||||||
value = visitor.GetUint32();
|
value = visitor.GetUint32();
|
||||||
}
|
}
|
||||||
void Reflect(Writer& visitor, uint32_t& value) {
|
void Reflect(Writer& visitor, unsigned& value) {
|
||||||
visitor.Uint32(value);
|
visitor.Uint32(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Reflect(Reader& visitor, int64_t& value) {
|
void Reflect(Reader& visitor, long& value) {
|
||||||
value = visitor.GetInt64();
|
value = visitor.GetInt64();
|
||||||
}
|
}
|
||||||
void Reflect(Writer& visitor, int64_t& value) {
|
void Reflect(Writer& visitor, long& value) {
|
||||||
visitor.Int64(value);
|
visitor.Int64(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Reflect(Reader& visitor, uint64_t& value) {
|
void Reflect(Reader& visitor, unsigned long& value) {
|
||||||
value = visitor.GetUint64();
|
value = visitor.GetUint64();
|
||||||
}
|
}
|
||||||
void Reflect(Writer& visitor, uint64_t& value) {
|
void Reflect(Writer& visitor, unsigned long& value) {
|
||||||
|
visitor.Uint64(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Reflect(Reader& visitor, long long& value) {
|
||||||
|
value = visitor.GetInt64();
|
||||||
|
}
|
||||||
|
void Reflect(Writer& visitor, long long& value) {
|
||||||
|
visitor.Int64(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Reflect(Reader& visitor, unsigned long long& value) {
|
||||||
|
value = visitor.GetUint64();
|
||||||
|
}
|
||||||
|
void Reflect(Writer& visitor, unsigned long long& value) {
|
||||||
visitor.Uint64(value);
|
visitor.Uint64(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -152,17 +152,23 @@ void Reflect(Writer& visitor, uint8_t& value);
|
|||||||
void Reflect(Reader& visitor, int16_t& value);
|
void Reflect(Reader& visitor, int16_t& value);
|
||||||
void Reflect(Writer& visitor, int16_t& value);
|
void Reflect(Writer& visitor, int16_t& value);
|
||||||
|
|
||||||
void Reflect(Reader& visitor, int32_t& value);
|
void Reflect(Reader& visitor, int& value);
|
||||||
void Reflect(Writer& visitor, int32_t& value);
|
void Reflect(Writer& visitor, int& value);
|
||||||
|
|
||||||
void Reflect(Reader& visitor, uint32_t& value);
|
void Reflect(Reader& visitor, unsigned& value);
|
||||||
void Reflect(Writer& visitor, uint32_t& value);
|
void Reflect(Writer& visitor, unsigned& value);
|
||||||
|
|
||||||
void Reflect(Reader& visitor, int64_t& value);
|
void Reflect(Reader& visitor, long& value);
|
||||||
void Reflect(Writer& visitor, int64_t& value);
|
void Reflect(Writer& visitor, long& value);
|
||||||
|
|
||||||
void Reflect(Reader& visitor, uint64_t& value);
|
void Reflect(Reader& visitor, unsigned long& value);
|
||||||
void Reflect(Writer& visitor, uint64_t& value);
|
void Reflect(Writer& visitor, unsigned long& value);
|
||||||
|
|
||||||
|
void Reflect(Reader& visitor, long long& value);
|
||||||
|
void Reflect(Writer& visitor, long long& value);
|
||||||
|
|
||||||
|
void Reflect(Reader& visitor, unsigned long long& value);
|
||||||
|
void Reflect(Writer& visitor, unsigned long long& value);
|
||||||
|
|
||||||
void Reflect(Reader& visitor, double& value);
|
void Reflect(Reader& visitor, double& value);
|
||||||
void Reflect(Writer& visitor, double& value);
|
void Reflect(Writer& visitor, double& value);
|
||||||
|
Loading…
Reference in New Issue
Block a user