commonMain.net.iriscan.sdk.io.image.ImageSerializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of biometric-sdk Show documentation
Show all versions of biometric-sdk Show documentation
Biometric SDK Kotlin Multiplatform library (android + ios)
package net.iriscan.sdk.io.image
import net.iriscan.sdk.core.image.Image
/**
* @author Slava Gornostal
*
* Implement this interface for custom image format serializer
*
* @see Image
* @see net.iriscan.sdk.BiometricSdkConfig
*/
interface ImageSerializer {
val format: ImageFormat
fun canRead(data: ByteArray): Boolean
fun read(data: ByteArray): Image
fun write(image: Image): ByteArray
}