31 std::shared_ptr<rs2_raw_data_buffer> json_data(
42 results.insert(results.begin(), start, start + size);
47 void load_json(
const std::string& json_content)
const 52 (
unsigned int)json_content.size(),
void load_json(const std::string &json_content) const
Definition: rs_serializable_device.hpp:47
const unsigned char * rs2_get_raw_data(const rs2_raw_data_buffer *buffer, rs2_error **error)
void rs2_load_json(rs2_device *dev, const void *json_content, unsigned content_size, rs2_error **error)
Definition: rs_context.hpp:11
void rs2_delete_raw_data(const rs2_raw_data_buffer *buffer)
int rs2_get_raw_data_size(const rs2_raw_data_buffer *buffer, rs2_error **error)
std::string serialize_json() const
Definition: rs_serializable_device.hpp:26
rs2_raw_data_buffer * rs2_serialize_json(rs2_device *dev, rs2_error **error)
int rs2_is_device_extendable_to(const rs2_device *device, rs2_extension extension, rs2_error **error)
const std::shared_ptr< rs2_device > & get() const
Definition: rs_device.hpp:162
std::shared_ptr< rs2_device > _dev
Definition: rs_device.hpp:207
serializable_device(rs2::device d)
Definition: rs_serializable_device.hpp:15
static void handle(rs2_error *e)
Definition: rs_types.hpp:162
Definition: rs_types.h:184
struct rs2_error rs2_error
Definition: rs_types.h:229
Definition: rs_device.hpp:19
Definition: rs_serializable_device.hpp:12