(self)
return expected_len - self.buffer_len
Zero or lower indicates that a fragment is available
Zero or lower indicates that a fragment is available
Zero or lower indicates that a fragment is available
def bytes_needed(self):
        '''Zero or lower indicates that a fragment is available'''
        expected_len = self.record_s.size
        if self.get_header():
            expected_len += self.record_hdr[2]
        return expected_len - self.buffer_len
def bytes_needed ( self ) : expected_len = self . record_s . size if self . get_header ( ) : expected_len += self . record_hdr [ 2 ] return expected_len - self . buffer_len