TransmissionBatch
class TransmissionBatch(val payload: ByteArray, val requestId: Long, val batchIndex: Int, val batchCount: Int)
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
Verifies whether the given acknowledge data matches the current object's requestId and batchIndex.