SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
Seek.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 
8 
9 
10 namespace SWC { namespace Comm { namespace Protocol {
11 namespace FsBroker { namespace Params {
12 
13 
17 }
18 
19 void SeekReq::internal_encode(uint8_t** bufp) const {
22 }
23 
24 void SeekReq::internal_decode(const uint8_t** bufp, size_t* remainp) {
25  fd = Serialization::decode_vi32(bufp, remainp);
26  offset = Serialization::decode_vi64(bufp, remainp);
27 }
28 
29 
30 
33 }
34 
35 void SeekRsp::internal_encode(uint8_t** bufp) const {
37 }
38 
39 void SeekRsp::internal_decode(const uint8_t** bufp, size_t* remainp) {
40  offset = Serialization::decode_vi64(bufp, remainp);
41 }
42 
43 
44 }}}}}
SWC::Comm::Protocol::FsBroker::Params::SeekReq::internal_encode
void internal_encode(uint8_t **bufp) const override
Definition: Seek.cc:19
SWC::Serialization::encoded_length_vi32
constexpr SWC_CAN_INLINE uint8_t encoded_length_vi32(uint32_t val) noexcept
Definition: Serialization.h:234
SWC::Comm::Protocol::FsBroker::Params::SeekRsp::offset
uint64_t offset
Definition: Seek.h:52
SWC::Comm::Protocol::FsBroker::Params::SeekReq::offset
uint64_t offset
Definition: Seek.h:28
Seek.h
SWC
The SWC-DB C++ namespace 'SWC'.
Definition: main.cc:12
SWC::Comm::Protocol::FsBroker::Params::SeekRsp::internal_decode
void internal_decode(const uint8_t **bufp, size_t *remainp) override
Definition: Seek.cc:39
SWC::Comm::Protocol::FsBroker::Params::SeekRsp::internal_encoded_length
size_t SWC_PURE_FUNC internal_encoded_length() const override
Definition: Seek.cc:31
SWC::Serialization::encoded_length_vi64
constexpr SWC_CAN_INLINE uint8_t encoded_length_vi64(uint64_t val) noexcept
Definition: Serialization.h:272
SWC::Comm::Protocol::FsBroker::Params::SeekReq::fd
int32_t fd
Definition: Seek.h:27
SWC::Serialization::decode_vi64
constexpr SWC_CAN_INLINE uint64_t decode_vi64(const uint8_t **bufp, size_t *remainp)
Definition: Serialization.h:302
SWC::Serialization::encode_vi32
constexpr SWC_CAN_INLINE void encode_vi32(uint8_t **bufp, uint32_t val)
Definition: Serialization.h:243
SWC::Comm::Protocol::FsBroker::Params::SeekRsp::internal_encode
void internal_encode(uint8_t **bufp) const override
Definition: Seek.cc:35
SWC::Comm::Protocol::FsBroker::Params::SeekReq::internal_decode
void internal_decode(const uint8_t **bufp, size_t *remainp) override
Definition: Seek.cc:24
SWC::Serialization::encode_vi64
constexpr SWC_CAN_INLINE void encode_vi64(uint8_t **bufp, uint64_t val)
Definition: Serialization.h:286
SWC::Comm::Protocol::FsBroker::Params::SeekReq::internal_encoded_length
size_t SWC_PURE_FUNC internal_encoded_length() const override
Definition: Seek.cc:14
SWC::Serialization::decode_vi32
constexpr SWC_CAN_INLINE uint32_t decode_vi32(const uint8_t **bufp, size_t *remainp)
Definition: Serialization.h:254