Request parameters for sync requests.
More...
#include <Sync.h>
|
| Sync () |
| Constructor. More...
|
|
| Sync (int32_t fd) |
| Constructor. More...
|
|
int32_t | get_fd () |
| Gets file descriptor. More...
|
|
virtual size_t | encoded_length () const |
| Returns serialized object length. More...
|
|
virtual void | encode (uint8_t **bufp) const |
| Writes serialized representation of object to a buffer. More...
|
|
virtual void | decode (const uint8_t **bufp, size_t *remainp) |
| Reads serialized representation of object from a buffer. More...
|
|
|
int32_t | m_fd {} |
| File descriptor to which sync applies. More...
|
|
Request parameters for sync requests.
Definition at line 46 of file Sync.h.
Hypertable::FsBroker::Lib::Request::Parameters::Sync::Sync |
( |
| ) |
|
|
inline |
Constructor.
Empty initialization for decoding.
Definition at line 51 of file Sync.h.
Hypertable::FsBroker::Lib::Request::Parameters::Sync::Sync |
( |
int32_t |
fd | ) |
|
|
inline |
Constructor.
Initializes with parameters for encoding. Sets m_fd to fd
.
- Parameters
-
Definition at line 57 of file Sync.h.
void Sync::decode_internal |
( |
uint8_t |
version, |
|
|
const uint8_t ** |
bufp, |
|
|
size_t * |
remainp |
|
) |
| |
|
overrideprivatevirtual |
Reads serialized representation of object from a buffer.
This function is to be overridden by derived classes and should decode the object per-se as encoded with encode_internal().
- Parameters
-
version | Encoding version |
bufp | Address of destination buffer pointer (advanced by call) |
remainp | Address of integer holding amount of serialized encoding remaining |
- See also
- encode_internal() for encoding format
Implements Hypertable::Serializable.
Definition at line 49 of file Sync.cc.
void Sync::encode_internal |
( |
uint8_t ** |
bufp | ) |
const |
|
overrideprivatevirtual |
Writes serialized representation of object to a buffer.
This function is to be overridden by derived classes and should encode the object per-se.
- Parameters
-
bufp | Address of destination buffer pointer (advanced by call) |
Implements Hypertable::Serializable.
Definition at line 45 of file Sync.cc.
size_t Sync::encoded_length_internal |
( |
| ) |
const |
|
overrideprivatevirtual |
Returns internal serialized length.
This function is to be overridden by derived classes and should return the length of the the serialized object per-se.
- Returns
- Internal serialized length
- See also
- encode_internal() for encoding format
Implements Hypertable::Serializable.
Definition at line 41 of file Sync.cc.
uint8_t Sync::encoding_version |
( |
| ) |
const |
|
overrideprivatevirtual |
int32_t Hypertable::FsBroker::Lib::Request::Parameters::Sync::get_fd |
( |
| ) |
|
|
inline |
Gets file descriptor.
- Returns
- File descriptor
Definition at line 61 of file Sync.h.
int32_t Hypertable::FsBroker::Lib::Request::Parameters::Sync::m_fd {} |
|
private |
File descriptor to which sync applies.
Definition at line 75 of file Sync.h.
The documentation for this class was generated from the following files:
- /home/doug/src/hypertable/src/cc/FsBroker/Lib/Request/Parameters/Sync.h
- /home/doug/src/hypertable/src/cc/FsBroker/Lib/Request/Parameters/Sync.cc