47 const uint8_t *ptr =
m_event->payload;
48 size_t remain =
m_event->payload_len;
53 params.
decode(&ptr, &remain);
55 if (
m_event->header.alignment) {
56 size_t padding =
m_event->header.alignment - (ptr -
m_event->payload);
70 cb.
error(e.
code(),
"Error handling APPEND message");
Request parameters for append requests.
#define HT_THROW_INPUT_OVERRUN(_s_)
Application handler for append function.
Abstract base class for a filesystem.
Flags
Enumeration type for append flags.
uint32_t get_size()
Gets size of data buffer.
virtual void append(Response::Callback::Append *cb, uint32_t fd, uint32_t amount, const void *data, Filesystem::Flags flags)=0
Append data to open file.
int32_t get_fd()
Gets file descriptor.
Logging routines and macros.
Compatibility Macros for C/C++.
Broker * m_broker
Pointer to file system broker object.
Functions to serialize/deserialize primitives to/from a memory buffer.
virtual void decode(const uint8_t **bufp, size_t *remainp)
Reads serialized representation of object from a buffer.
Declarations for Append response callback.
virtual int error(int error, const String &msg)
Sends a standard error response back to the client.
uint8_t get_flags()
Gets flags.
This is a generic exception class for Hypertable.
EventPtr m_event
MESSAGE Event from which handler was initialized.
virtual void run()
Invokes the append function.
File system broker framework and client library.
Comm * m_comm
Pointer to comm layer.
Error codes, Exception handling, error logging.
Declarations for Append request parameters.
Declarations for Append request handler.
int code() const
Returns the error code.