/// /// RawPixelData.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 "RawPixelData". */ @DoNotStrip @Keep data class RawPixelData( @DoNotStrip @Keep val buffer: ArrayBuffer, @DoNotStrip @Keep val width: Double, @DoNotStrip @Keep val height: Double, @DoNotStrip @Keep val pixelFormat: PixelFormat ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is RawPixelData) return false return Objects.deepEquals(this.buffer, other.buffer) && Objects.deepEquals(this.width, other.width) && Objects.deepEquals(this.height, other.height) && Objects.deepEquals(this.pixelFormat, other.pixelFormat) } override fun hashCode(): Int { return arrayOf( buffer, width, height, pixelFormat ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(buffer: ArrayBuffer, width: Double, height: Double, pixelFormat: PixelFormat): RawPixelData { return RawPixelData(buffer, width, height, pixelFormat) } } }