Request parameters for seek requests.
More...
#include <Seek.h>
Request parameters for seek requests.
Definition at line 46 of file Seek.h.
Hypertable::FsBroker::Lib::Request::Parameters::Seek::Seek |
( |
| ) |
|
|
inline |
Constructor.
Empty initialization for decoding.
Definition at line 51 of file Seek.h.
Hypertable::FsBroker::Lib::Request::Parameters::Seek::Seek |
( |
int32_t |
fd, |
|
|
uint64_t |
offset |
|
) |
| |
|
inline |
Constructor.
Initializes with parameters for encoding. Sets m_fd to fd
and m_offset to offset
.
- Parameters
-
fd | File descriptor |
offset | File offset |
Definition at line 58 of file Seek.h.
void Seek::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 50 of file Seek.cc.
void Seek::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 Seek.cc.
size_t Seek::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 Seek.cc.
uint8_t Seek::encoding_version |
( |
| ) |
const |
|
overrideprivatevirtual |
int32_t Hypertable::FsBroker::Lib::Request::Parameters::Seek::get_fd |
( |
| ) |
|
|
inline |
Gets file descriptor.
- Returns
- File descriptor
Definition at line 62 of file Seek.h.
uint64_t Hypertable::FsBroker::Lib::Request::Parameters::Seek::get_offset |
( |
| ) |
|
|
inline |
Gets file offset.
- Returns
- File offset
Definition at line 66 of file Seek.h.
int32_t Hypertable::FsBroker::Lib::Request::Parameters::Seek::m_fd {} |
|
private |
File descriptor to which seek applies.
Definition at line 80 of file Seek.h.
uint64_t Hypertable::FsBroker::Lib::Request::Parameters::Seek::m_offset |
|
private |
File offset.
Definition at line 83 of file Seek.h.
The documentation for this class was generated from the following files:
- /home/doug/src/hypertable/src/cc/FsBroker/Lib/Request/Parameters/Seek.h
- /home/doug/src/hypertable/src/cc/FsBroker/Lib/Request/Parameters/Seek.cc