bounding_box<uint32_t> get_identity::scan_area (void) const { const byte *p = dat_ + size () - 4; return point<uint32_t> (to_uint16_t (p), to_uint16_t (p + 2)); }
bounding_box<uint32_t> get_command_parameters::scan_area (void) const { point<uint32_t> offset (to_uint16_t (dat_ + 8), to_uint16_t (dat_ + 10)); point<uint32_t> extent (to_uint16_t (dat_ + 12), to_uint16_t (dat_ + 14)); return bounding_box<uint32_t> (offset, point<uint32_t> (extent.x () + offset.x (), extent.y () + offset.y ())); }
std::set<uint32_t> get_identity::resolutions (void) const { std::set<uint32_t> result; const byte *p = dat_ + 2; while (p < dat_ + size () - 5) { result.insert (to_uint16_t (p + 1)); p += 3; } return result; }
point<uint32_t> get_command_parameters::resolution (void) const { return point<uint32_t> (to_uint16_t (dat_ + 3), to_uint16_t (dat_ + 5)); }