NiimbotPacket

class NiimbotPacket(val type: Int, val data: ByteArray)(source)

One packet of the Niimbot label printer protocol, as the printer sends and receives it: 55 55 · type · length · data · checksum · AA AA, where the checksum XORs the type, the length and every data byte.

Constructors

Link copied to clipboard
constructor(type: Int, data: ByteArray)

Properties

Link copied to clipboard
Link copied to clipboard
val type: Int

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String