py_zipkin/thrift/__init__.py
def encode_bytes_list(binary_thrift_obj_list):  # pragma: no cover
    """
    Returns a TBinaryProtocol encoded list of Thrift objects.

    :param binary_thrift_obj_list: list of TBinaryProtocol objects to encode.
    :returns: bynary object representing the encoded list.
    """
    transport = TMemoryBuffer()
    write_list_begin(transport, TType.STRUCT, len(binary_thrift_obj_list))
    for thrift_bin in binary_thrift_obj_list:
        transport.write(thrift_bin)

    return bytes(transport.getvalue())
def encode_bytes_list(binary_thrift_obj_list):  # pragma: no cover
    transport = TMemoryBuffer()
    write_list_begin(transport, TType.STRUCT, len(binary_thrift_obj_list))
    for thrift_bin in binary_thrift_obj_list:
        transport.write(thrift_bin)

    return bytes(transport.getvalue())
def encode_bytes_list ( binary_thrift_obj_list ) : # pragma: no cover transport = TMemoryBuffer ( ) write_list_begin ( transport , TType . STRUCT , len ( binary_thrift_obj_list ) ) for thrift_bin in binary_thrift_obj_list : transport . write ( thrift_bin ) return bytes ( transport . getvalue ( ) )
Returns a TBinaryProtocol encoded list of Thrift objects.

    :param binary_thrift_obj_list: list of TBinaryProtocol objects to encode.
    :returns: bynary object representing the encoded list.
Returns a TBinaryProtocol encoded list of Thrift objects .