SWC-DB
v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
Remove.cc
Go to the documentation of this file.
1
/*
2
* SWC-DB© Copyright since 2019 Alex Kashirin <kashirin.alex@gmail.com>
3
* License details at <https://github.com/kashirin-alex/swc-db/#license>
4
*/
5
6
7
#include "
swcdb/fs/Broker/Protocol/params/Remove.h
"
8
9
10
namespace
SWC
{
namespace
Comm {
namespace
Protocol {
11
namespace
FsBroker {
namespace
Params {
12
13
14
size_t
RemoveReq::internal_encoded_length
()
const
{
15
return
Serialization::encoded_length_bytes
(
fname
.size());
16
}
17
18
void
RemoveReq::internal_encode
(uint8_t** bufp)
const
{
19
Serialization::encode_bytes
(bufp,
fname
.c_str(),
fname
.size());
20
}
21
22
void
RemoveReq::internal_decode
(
const
uint8_t** bufp,
size_t
* remainp) {
23
fname
=
Serialization::decode_bytes_string
(bufp, remainp);
24
}
25
26
27
}}}}}
SWC::Serialization::encoded_length_bytes
constexpr SWC_CAN_INLINE size_t encoded_length_bytes(size_t len) noexcept
Definition:
Serialization.h:537
SWC::Comm::Protocol::FsBroker::Params::RemoveReq::internal_encoded_length
size_t SWC_PURE_FUNC internal_encoded_length() const override
Definition:
Remove.cc:14
SWC::Serialization::encode_bytes
SWC_CAN_INLINE void encode_bytes(uint8_t **bufp, const void *data, size_t len)
Definition:
Serialization.h:542
SWC::Comm::Protocol::FsBroker::Params::RemoveReq::internal_encode
void internal_encode(uint8_t **bufp) const override
Definition:
Remove.cc:18
SWC::Comm::Protocol::FsBroker::Params::RemoveReq::internal_decode
void internal_decode(const uint8_t **bufp, size_t *remainp) override
Definition:
Remove.cc:22
SWC
The SWC-DB C++ namespace 'SWC'.
Definition:
main.cc:12
SWC::Comm::Protocol::FsBroker::Params::RemoveReq::fname
std::string fname
Definition:
Remove.h:28
Remove.h
SWC::Serialization::decode_bytes_string
SWC_CAN_INLINE std::string decode_bytes_string(const uint8_t **bufp, size_t *remainp)
Definition:
Serialization.h:558
lib
swcdb
fs
Broker
Protocol
params
Remove.cc
Generated on Sat Jun 3 2023 18:00:09 for SWC-DB by
1.8.20