ZapText

class ZapText(val str: String, val charset: ZapCharset = ZapCharset.UTF_8) : Zapable

Represent simple text.

+------------------+--------------+
| charset (8 bits) | str (n bits) |
+------------------+--------------+

Constructors

Link copied to clipboard
constructor(str: String, charset: ZapCharset = ZapCharset.UTF_8)

Types

Link copied to clipboard

Properties

Link copied to clipboard

A character set of str. (default: UTF-8)

Link copied to clipboard
open override val resource: ZapResource

A resource type of the object.

Link copied to clipboard
val str: String

Just string.

Functions

Link copied to clipboard
operator fun component1(): String
Link copied to clipboard
operator fun component2(): ZapCharset
Link copied to clipboard
open override fun toPayload(): ZappPayload

Convert Zapable to ZappPayload and return it.