fn guess_size(&self) -> usize {
        match self.payload {
            PropertyPayload::ColorMap { colors, .. } => {
                /* apparently due to a GIMP bug sometimes self.length will be n + 4 */
                3 * colors + 4
            },
            // this is the best we can do otherwise
            _ => self.length,
        }
    }
// TODO: GIMP usually calculates sizes based on data and goes from that instead of the reported
// property length... (for known properties)
GIMP usually calculates sizes based on data and goes from that instead of the reported
property length... (for known properties)
GIMP usually calculates sizes based on data and goes from that instead of the reported property length ... ( for known properties )
fn guess_size(&self) -> usize {
        match self.payload {
            PropertyPayload::ColorMap { colors, .. } => {
                /* apparently due to a GIMP bug sometimes self.length will be n + 4 */
                3 * colors + 4
            },
            // this is the best we can do otherwise
            _ => self.length,
        }
    }
fn guess_size ( & self ) -> usize { match self . payload { PropertyPayload :: ColorMap { colors , .. } => { /* apparently due to a GIMP bug sometimes self.length will be n + 4 */ 3 * colors + 4 } , // this is the best we can do otherwise _ => self . length , } }
TODO: GIMP usually calculates sizes based on data and goes from that instead of the reported
property length... (for known properties)
TODO : GIMP usually calculates sizes based on data and goes from that instead of the reported property length ... ( for known properties )
&self
&self