/// /// NativeBuffer.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.camera import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "NativeBuffer". */ @DoNotStrip @Keep data class NativeBuffer( @DoNotStrip @Keep val pointer: Long, @DoNotStrip @Keep val release: Func_void ) { /** * Create a new instance of NativeBuffer from Kotlin */ constructor(pointer: ULong, release: () -> Unit): this(pointer.toLong(), Func_void_java(release)) override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is NativeBuffer) return false return Objects.deepEquals(this.pointer, other.pointer) && Objects.deepEquals(this.release, other.release) } override fun hashCode(): Int { return arrayOf( pointer, release ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(pointer: Long, release: Func_void): NativeBuffer { return NativeBuffer(pointer, release) } } }