# Data

abstract class Data(timeStamp: Int, streamId: Int, basicHeader: BasicHeader) : RtmpMessage

Created by pedro on 21/04/21.

#### Inheritors

DataAmf0
DataAmf3

## Constructors

Data
Link copied to clipboard
constructor(timeStamp: Int, streamId: Int, basicHeader: BasicHeader)

## Properties

header
Link copied to clipboard
val header: RtmpHeader

## Functions

getSize
Link copied to clipboard
open override fun getSize(): Int
getType
Link copied to clipboard
abstract fun getType(): MessageType
readBody
Link copied to clipboard
abstract fun readBody(input: InputStream)
storeBody
Link copied to clipboard
abstract fun storeBody(): ByteArray
updateHeader
Link copied to clipboard
fun updateHeader(rtmpHeader: RtmpHeader)
writeBody
Link copied to clipboard
suspend fun writeBody(socket: RtmpSocket)
writeHeader
Link copied to clipboard
suspend fun writeHeader(socket: RtmpSocket)