mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 02:04:12 +08:00
mdbx++: добавление вариантов buffer::key_from()
с явным именованием по типу данных.
This commit is contained in:
parent
fdb2b5b0f1
commit
8a44d57fab
36
mdbx.h++
36
mdbx.h++
@ -2663,41 +2663,65 @@ public:
|
||||
return buffer(::std::move(src));
|
||||
}
|
||||
|
||||
static buffer key_from(const double ieee754_64bit) {
|
||||
static buffer key_from_double(const double ieee754_64bit) {
|
||||
return wrap(::mdbx_key_from_double(ieee754_64bit));
|
||||
}
|
||||
|
||||
static buffer key_from(const double ieee754_64bit) {
|
||||
return key_from_double(ieee754_64bit);
|
||||
}
|
||||
|
||||
static buffer key_from(const double *ieee754_64bit) {
|
||||
return wrap(::mdbx_key_from_ptrdouble(ieee754_64bit));
|
||||
}
|
||||
|
||||
static buffer key_from(const uint64_t unsigned_int64) {
|
||||
static buffer key_from_u64(const uint64_t unsigned_int64) {
|
||||
return wrap(unsigned_int64);
|
||||
}
|
||||
|
||||
static buffer key_from(const int64_t signed_int64) {
|
||||
static buffer key_from(const uint64_t unsigned_int64) {
|
||||
return key_from_u64(unsigned_int64);
|
||||
}
|
||||
|
||||
static buffer key_from_i64(const int64_t signed_int64) {
|
||||
return wrap(::mdbx_key_from_int64(signed_int64));
|
||||
}
|
||||
|
||||
static buffer key_from(const int64_t signed_int64) {
|
||||
return key_from_i64(signed_int64);
|
||||
}
|
||||
|
||||
static buffer key_from_jsonInteger(const int64_t json_integer) {
|
||||
return wrap(::mdbx_key_from_jsonInteger(json_integer));
|
||||
}
|
||||
|
||||
static buffer key_from(const float ieee754_32bit) {
|
||||
static buffer key_from_float(const float ieee754_32bit) {
|
||||
return wrap(::mdbx_key_from_float(ieee754_32bit));
|
||||
}
|
||||
|
||||
static buffer key_from(const float ieee754_32bit) {
|
||||
return key_from_float(ieee754_32bit);
|
||||
}
|
||||
|
||||
static buffer key_from(const float *ieee754_32bit) {
|
||||
return wrap(::mdbx_key_from_ptrfloat(ieee754_32bit));
|
||||
}
|
||||
|
||||
static buffer key_from(const uint32_t unsigned_int32) {
|
||||
static buffer key_from_u32(const uint32_t unsigned_int32) {
|
||||
return wrap(unsigned_int32);
|
||||
}
|
||||
|
||||
static buffer key_from(const int32_t signed_int32) {
|
||||
static buffer key_from(const uint32_t unsigned_int32) {
|
||||
return key_from_u32(unsigned_int32);
|
||||
}
|
||||
|
||||
static buffer key_from_i32(const int32_t signed_int32) {
|
||||
return wrap(::mdbx_key_from_int32(signed_int32));
|
||||
}
|
||||
|
||||
static buffer key_from(const int32_t signed_int32) {
|
||||
return key_from_i32(signed_int32);
|
||||
}
|
||||
};
|
||||
|
||||
template <class ALLOCATOR, class CAPACITY_POLICY,
|
||||
|
Loading…
x
Reference in New Issue
Block a user