Returns the size of padding length
final public getPaddingLength ( ) : integer | ||
Результат | integer |
/** * Padding size should resize the packet size to the 8 bytes boundary for optimal performance */ public function testAutomaticCalculationOfPaddingLength() { $record = new Record(); $record->setContentData('12345'); $this->assertEquals($record->getPaddingLength(), 3); $record->setContentData('12345678'); $this->assertEquals($record->getPaddingLength(), 0); }