  #ifndef sighandler_t
  typedef void (*sighandler_t)(int sig);
  #endif
  
  #define ARRAYSIZE(x) (sizeof(x)/sizeof(x[0]))
  
  #undef ALIGN
  #define ALIGN(x, align) (((x) + (align)-1) & ~((align)-1))
  
  // Reads a file into a newly allocated buffer.
  //
 
</s> remove     err = sensor_write_regs(s, init_array_imx298, ARRAYSIZE(init_array_imx298), MSM_CAMERA_I2C_BYTE_DATA);
 </s> add     err = sensor_write_regs(s, init_array_imx298, std::size(init_array_imx298), MSM_CAMERA_I2C_BYTE_DATA); </s> remove   int err = sensor_write_regs(s, start_reg_array, ARRAYSIZE(start_reg_array), MSM_CAMERA_I2C_BYTE_DATA);
 </s> add   int err = sensor_write_regs(s, start_reg_array, std::size(start_reg_array), MSM_CAMERA_I2C_BYTE_DATA); </s> remove   assert(camera_id < ARRAYSIZE(cameras_supported));
 </s> add   assert(camera_id < std::size(cameras_supported)); </s> remove     .size = ARRAYSIZE(stop_reg_array),
 </s> add     .size = std::size(stop_reg_array), </s> remove   return sensor_write_regs(s, reg_array, ARRAYSIZE(reg_array), MSM_CAMERA_I2C_BYTE_DATA);
 </s> add   return sensor_write_regs(s, reg_array, std::size(reg_array), MSM_CAMERA_I2C_BYTE_DATA);
  #ifndef sighandler_t
  typedef void (*sighandler_t)(int sig);
  #endif
  


  #undef ALIGN
  #define ALIGN(x, align) (((x) + (align)-1) & ~((align)-1))
  
  // Reads a file into a newly allocated buffer.
  //
keep keep keep keep replace replace keep keep keep keep keep
 Use std::size for element counts (#20654) 
selfdrive/common/util.h