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

io.github.binaryfoo.tlv.PrimitiveBerTlv.kt Maven / Gradle / Ivy

There is a newer version: 0.1.8
Show newest version
package io.github.binaryfoo.tlv

import kotlin.collections.listOf

/**
 * The V is just some bytes.
 */
class PrimitiveBerTlv(tag: Tag, private val value: ByteArray) : BerTlv(tag) {

    override fun getValue(): ByteArray = value

    override fun findTlv(tag: Tag): BerTlv? {
        return null
    }

    override fun findTlvs(tag: Tag): List {
        return listOf()
    }

    override fun getChildren(): List {
        return listOf()
    }

    override fun toString(): String = "$tag: ${ISOUtil.hexString(value)}"
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy