TransmissionBatch

class TransmissionBatch(val payload: ByteArray, val requestId: Long, val batchIndex: Int, val batchCount: Int)

Constructors

Link copied to clipboard
constructor(payload: ByteArray, requestId: Long, batchIndex: Int, batchCount: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Generates a byte array containing the requestId and batchIndex for verifying at a later stage. The first byte represents a preamble (ACK), identifying the acknowledge data as such.

Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard

Verifies whether the given acknowledge data matches the current object's requestId and batchIndex.