def _RemainingDataSize(input_buffer):
 current_position = input_buffer.tell()
 input_buffer.seek(0, 2)
 remaining_data_size = (input_buffer.tell() - current_position)
 input_buffer.seek(current_position)
 return remaining_data_size

def _RemainingDataSize ( input_buffer ) : current_position = input_buffer . tell ( ) input_buffer . seek ( 0 , 2 ) remaining_data_size = ( input_buffer . tell ( ) - current_position ) input_buffer . seek ( current_position ) return remaining_data_size
computes how much data is remaining in the buffer .