/// /// EncodedImageData.kt /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. /// https://github.com/mrousavy/nitro /// Copyright © Marc Rousavy @ Margelo /// package com.margelo.nitro.image import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects import com.margelo.nitro.core.ArrayBuffer /** * Represents the JavaScript object/struct "EncodedImageData". */ @DoNotStrip @Keep data class EncodedImageData( @DoNotStrip @Keep val buffer: ArrayBuffer, @DoNotStrip @Keep val width: Double, @DoNotStrip @Keep val height: Double, @DoNotStrip @Keep val imageFormat: ImageFormat ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is EncodedImageData) return false return Objects.deepEquals(this.buffer, other.buffer) && Objects.deepEquals(this.width, other.width) && Objects.deepEquals(this.height, other.height) && Objects.deepEquals(this.imageFormat, other.imageFormat) } override fun hashCode(): Int { return arrayOf( buffer, width, height, imageFormat ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(buffer: ArrayBuffer, width: Double, height: Double, imageFormat: ImageFormat): EncodedImageData { return EncodedImageData(buffer, width, height, imageFormat) } } }