(encoder, datum, schema, named_schemas, fname)
Arrays are encoded as a series of blocks.

    Each block consists of a long count value, followed by that many array
    items.  A block with count zero indicates the end of the array.  Each item
    is encoded per the array's item schema.

    If a block's count is negative, then the count is followed immediately by a
    long block size, indicating the number of bytes in the block.  The actual
    count in this case is the absolute value of the count written.
Arrays are encoded as a series of blocks.
Arrays are encoded as a series of blocks .
def write_array(encoder, datum, schema, named_schemas, fname):
    """Arrays are encoded as a series of blocks.

    Each block consists of a long count value, followed by that many array
    items.  A block with count zero indicates the end of the array.  Each item
    is encoded per the array's item schema.

    If a block's count is negative, then the count is followed immediately by a
    long block size, indicating the number of bytes in the block.  The actual
    count in this case is the absolute value of the count written."""
    encoder.write_array_start()
    if len(datum) > 0:
        encoder.write_item_count(len(datum))
        dtype = schema["items"]
        for item in datum:
            write_data(encoder, item, dtype, named_schemas, fname)
            encoder.end_item()
    encoder.write_array_end()
def write_array ( encoder , datum , schema , named_schemas , fname ) : encoder . write_array_start ( ) if len ( datum ) > 0 : encoder . write_item_count ( len ( datum ) ) dtype = schema [ "items" ] for item in datum : write_data ( encoder , item , dtype , named_schemas , fname ) encoder . end_item ( ) encoder . write_array_end ( )