MqttEncoding class

Encoding implementation that can encode and decode strings in the MQTT string format.

The MQTT string format is simply a pascal string with ANSI character encoding. The first 2 bytes define the length of the string, and they are followed by the string itself.

Constructors

MqttEncoding()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getByteCount(String chars) int
Calculates the number of bytes produced by encoding the characters in the specified.
getBytes(String s) → Uint8Buffer
Encodes all the characters in the specified string into a sequence of bytes.
getCharCount(Uint8Buffer bytes) int
When overridden in a derived class, calculates the number of characters produced by decoding all the bytes in the specified byte array.
getString(Uint8Buffer bytes) String
Decodes the bytes in the specified byte array into a string.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited