Go to the documentation of this file.
3 #ifndef __ZMQ_DECODER_HPP_INCLUDED__
4 #define __ZMQ_DECODER_HPP_INCLUDED__
29 template <
typename T,
typename A = c_single_allocator>
87 (
static_cast<T *
> (
this)->*
_next) (
data_ + bytes_used_);
94 while (bytes_used_ < size_) {
96 const size_t to_copy = std::min (
_to_read, size_ - bytes_used_);
105 bytes_used_ += to_copy;
111 (
static_cast<T *
> (
this)->*
_next) (
data_ + bytes_used_);
128 typedef int (
T::*
step_t) (
unsigned char const *);
134 _read_pos =
static_cast<unsigned char *
> (read_pos_);
~decoder_base_t() ZMQ_OVERRIDE
#define T(upbtypeconst, upbtype, ctype, default_value)
void resize_buffer(std::size_t new_size_) ZMQ_FINAL
void get_buffer(unsigned char **data_, std::size_t *size_) ZMQ_FINAL
#define ZMQ_NON_COPYABLE_NOR_MOVABLE(classname)
int(T::* step_t)(unsigned char const *)
int decode(const unsigned char *data_, std::size_t size_, std::size_t &bytes_used_) ZMQ_FINAL
decoder_base_t(const size_t buf_size_)
unsigned char * _read_pos
void next_step(void *read_pos_, std::size_t to_read_, step_t next_)
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:49