Request parameters for append requests.
More...
#include <Append.h>
Request parameters for append requests.
Definition at line 46 of file Append.h.
Hypertable::FsBroker::Lib::Request::Parameters::Append::Append |
( |
| ) |
|
|
inline |
Constructor.
Empty initialization for decoding.
Definition at line 51 of file Append.h.
Hypertable::FsBroker::Lib::Request::Parameters::Append::Append |
( |
int32_t |
fd, |
|
|
uint32_t |
size, |
|
|
uint8_t |
flags |
|
) |
| |
|
inline |
Constructor.
Initializes with parameters for encoding. Sets m_fd to fd
, m_size to size
, and #m_flush to flush
.
- Parameters
-
fd | File descriptor |
size | Size of data buffer |
flags | Flags (FLUSH or SYNC) |
Definition at line 60 of file Append.h.
void Append::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 51 of file Append.cc.
void Append::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 Append.cc.
size_t Append::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 Append.cc.
uint8_t Append::encoding_version |
( |
| ) |
const |
|
overrideprivatevirtual |
int32_t Hypertable::FsBroker::Lib::Request::Parameters::Append::get_fd |
( |
| ) |
|
|
inline |
Gets file descriptor.
- Returns
- File descriptor
Definition at line 65 of file Append.h.
uint8_t Hypertable::FsBroker::Lib::Request::Parameters::Append::get_flags |
( |
| ) |
|
|
inline |
Gets flags.
- Returns
- Flags
Definition at line 73 of file Append.h.
uint32_t Hypertable::FsBroker::Lib::Request::Parameters::Append::get_size |
( |
| ) |
|
|
inline |
Gets size of data buffer.
- Returns
- Size of data buffer
Definition at line 69 of file Append.h.
int32_t Hypertable::FsBroker::Lib::Request::Parameters::Append::m_fd |
|
private |
File descriptor to which append applies.
Definition at line 87 of file Append.h.
uint8_t Hypertable::FsBroker::Lib::Request::Parameters::Append::m_flags {} |
|
private |
Flags (FLUSH or SYNC)
Definition at line 93 of file Append.h.
uint32_t Hypertable::FsBroker::Lib::Request::Parameters::Append::m_size {} |
|
private |
Size of data buffer.
Definition at line 90 of file Append.h.
The documentation for this class was generated from the following files:
- /home/doug/src/hypertable/src/cc/FsBroker/Lib/Request/Parameters/Append.h
- /home/doug/src/hypertable/src/cc/FsBroker/Lib/Request/Parameters/Append.cc