DoxigAlpha

final

Function parameters

Parameters

#

Functions in this namespace

Functions

#

Source

Implementation

#
pub fn final(self: Self) W {
    var c = self.crc;
    if (algorithm.reflect_input != algorithm.reflect_output) {
        c = @bitReverse(c);
    }
    if (!algorithm.reflect_output) {
        c >>= @bitSizeOf(I) - @bitSizeOf(W);
    }
    return @as(W, @intCast(c ^ algorithm.xor_output));
}