# File lib/dbus/marshall.rb, line 286
    def array(type)
      # Thanks to Peter Rullmann for this line
      align(4)
      sizeidx = @packet.size
      @packet += "ABCD"
      align(type.alignment)
      contentidx = @packet.size
      yield
      sz = @packet.size - contentidx
      raise InvalidPacketException if sz > 67108864
      @packet[sizeidx...sizeidx + 4] = [sz].pack("L")
    end