# DataAmf0

class DataAmf0(name: String = "", timeStamp: Int = 0, streamId: Int = 0, basicHeader: BasicHeader = BasicHeader(ChunkType.TYPE_0, ChunkStreamId.OVER_CONNECTION.mark)) : Data

Created by pedro on 21/04/21.

## Constructors

DataAmf0
Link copied to clipboard
constructor(name: String = "", timeStamp: Int = 0, streamId: Int = 0, basicHeader: BasicHeader = BasicHeader(ChunkType.TYPE_0, ChunkStreamId.OVER_CONNECTION.mark))

## Properties

header
Link copied to clipboard
val header: RtmpHeader

## Functions

addData
Link copied to clipboard
fun addData(amfData: AmfData)
getSize
Link copied to clipboard
open override fun getSize(): Int
getType
Link copied to clipboard
open override fun getType(): MessageType
readBody
Link copied to clipboard
open override fun readBody(input: InputStream)
storeBody
Link copied to clipboard
open override fun storeBody(): ByteArray
toString
Link copied to clipboard
open override fun toString(): String
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)