# Package-level declarations

## Types

Constants
Link copied to clipboard
object Constants

Created by pedro on 22/8/23.

CRC32
Link copied to clipboard
object CRC32

Created by pedro on 28/8/23.

EncryptInfo
Link copied to clipboard
data class EncryptInfo(val keyBasedEncryption: KeyBasedEncryption, val cipher: CipherType, val salt: ByteArray, val key: ByteArray, val keyLength: Int)

Created by pedro on 13/11/23.

EncryptionUtil
Link copied to clipboard
class EncryptionUtil(val type: EncryptionType, passphrase: String)

Created by pedro on 12/11/23. Need API 26+

SrtSocket
Link copied to clipboard
class SrtSocket(type: SocketType, host: String, port: Int, timeout: Long)

Created by pedro on 22/8/23.

## Functions

chunkPackets
Link copied to clipboard
fun List<ByteArray>.chunkPackets(size: Int): List<ByteArray>
startWith
Link copied to clipboard
fun ByteBuffer.startWith(byteArray: ByteArray): Boolean
toBoolean
Link copied to clipboard
fun Int.toBoolean(): Boolean
toByteArray
Link copied to clipboard
fun Int.toByteArray(): ByteArray
toCodec
Link copied to clipboard
fun AudioCodec.toCodec(): Codec
fun VideoCodec.toCodec(): Codec
toInt
Link copied to clipboard
fun Boolean.toInt(): Int