CyclicRedundancyCheckBlock

abstract class CyclicRedundancyCheckBlock(clientCrc: IntArray)

CRC blocks are helper structures used for the server to verify that the CRC is up-to-date. As the client transmits less CRCs than there are cache indices, we provide validation methods through this abstract class at the respective revision's decoder level, so we can perform checks that correspond to the information received from the client, and not what the server fully knows of.

Constructors

Link copied to clipboard
constructor(clientCrc: IntArray)

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
Link copied to clipboard
abstract fun validate(serverCrc: IntArray): Boolean