final public getPaddingLength ( ) : integer | ||
return | integer |
public final function getPaddingLength()
{
return $this->paddingLength;
}
/** * 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); }