void MultiRatePadding::pad(unsigned int rate, MessageQueue& queue) const { queue.appendBit(1); queue.appendZeroes(rate - 1 - (queue.lastBlockSize() % rate)); queue.appendBit(1); }
void PaddingRule::append10star(unsigned int blockSize, MessageQueue& queue) const { queue.appendBit(1); if ((queue.lastBlockSize() % blockSize) != 0) queue.appendZeroes(blockSize - (queue.lastBlockSize() % blockSize)); }