Str

class Str(val bytes: ByteArray) : Entry

A byte string (<len>:<bytes>).

Constructors

Link copied to clipboard
constructor(bytes: ByteArray)

Properties

Link copied to clipboard
Link copied to clipboard

The bytes decoded as UTF-8, for the text fields (announce URLs, names…).

Functions

Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun findKey(key: String): Entry?

Dictionary lookup; returns null if this isn't a dict or the key is absent.

Link copied to clipboard
operator fun get(key: String): Entry

Dictionary index/insert. Throws if this entry is not a dict.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun integer(): Long
Link copied to clipboard
Link copied to clipboard
operator fun set(key: String, value: Entry)
Link copied to clipboard
fun string(): String
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String