All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.ag.granular.tiff.compression.RawCompression.kt Maven / Gradle / Ivy

The newest version!
package ag.granular.tiff.compression

import ag.granular.io.ByteOrder

/**
 * Raw / no compression
 */
class RawCompression : CompressionDecoder,
    CompressionEncoder {

    /**
     * {@inheritDoc}
     */
    override fun decode(bytes: ByteArray, byteOrder: ByteOrder): ByteArray {
        return bytes
    }

    /**
     * {@inheritDoc}
     */
    override fun rowEncoding(): Boolean {
        return false
    }

    /**
     * {@inheritDoc}
     */
    override fun encode(bytes: ByteArray, byteOrder: ByteOrder): ByteArray {
        return bytes
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy