# AmfBoolean

class AmfBoolean(var value: Boolean = false) : AmfData

Created by pedro on 20/04/21.

Only 1 byte of size where 0 is false and another value is true

## Constructors

AmfBoolean
Link copied to clipboard
constructor(value: Boolean = false)

## Properties

value
Link copied to clipboard
var value: Boolean

## Functions

getSize
Link copied to clipboard
open override fun getSize(): Int
getType
Link copied to clipboard
open override fun getType(): AmfType
readBody
Link copied to clipboard
open override fun readBody(input: InputStream)
readHeader
Link copied to clipboard
fun readHeader(input: InputStream): AmfType
toString
Link copied to clipboard
open override fun toString(): String
writeBody
Link copied to clipboard
open override fun writeBody(output: OutputStream)
writeHeader
Link copied to clipboard
fun writeHeader(output: OutputStream)