From 883ce3fc5630307ddf60379da28a99e5502c08e8 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 26 Dec 2025 21:23:23 +0000 Subject: [PATCH] Refactor: Avoid copying PixelDataInfo Refactored the code to avoid dereferencing the pointer i when creating pixelDataValue, preventing a struct copy. - Changed the `PixelDataInfo` field in the `pixelDataValue` struct to a pointer: `*PixelDataInfo`. - Updated the `NewValue` function in `element.go` to handle `PixelDataInfo` and `*PixelDataInfo` cases correctly. - Refactored the `readPixelData` function in `read.go` to return a pointer to `pixelDataValue` without dereferencing the `PixelDataInfo` pointer. - Updated `pixelDataValue` methods in `element.go` to dereference the `PixelDataInfo` pointer.