def length_prefix(length, offset):
 if (length < 56):
  return chr((offset + length))
 else:
  length_string = int_to_big_endian(length)
  return (chr((((offset + 56) - 1) + len(length_string))) + length_string)

def length_prefix ( length , offset ) : if ( length < 56 ) : return chr ( ( offset + length ) ) else : length_string = int_to_big_endian ( length ) return ( chr ( ( ( ( offset + 56 ) - 1 ) + len ( length_string ) ) ) + length_string )
construct the prefix to lists or strings denoting their length .