text
stringlengths
27
775k
using UnityEditor; using UnityEngine; using mulova.commons; namespace mulova.unicore { public class ScriptableObjectGen { [MenuItem("Assets/Create/ScriptableObject")] public static void GenerateScriptableObject() { Object scriptableObj = Selection.activeObject; string selPath = AssetDatabase.GetAssetPath(scriptableObj); string path = PathUtil.GetDirectory(selPath); EditorAssetUtil.CreateScriptableObject(scriptableObj.name, path+scriptableObj.name+".asset"); } [MenuItem("Assets/Create/ScriptableObject", true)] public static bool IsGenerateScriptableObject() { if (Selection.activeObject != null && Selection.activeObject.GetType() == typeof(MonoScript)) { MonoScript script = Selection.activeObject as MonoScript; var cls = script.GetClass(); if (cls != null) { return cls.IsSubclassOf(typeof(ScriptableObject)) && !cls.IsSubclassOf(typeof(Editor)); } } return false; } } }
<html> <head> <style type="text/css"> body{ margin-top: 2px; margin-left: 2px; margin-right: 2px; margin-bottom: 2px; } </style> </head> <body onload="window.parent.sl('<?php echo $_GET['urlno']; ?>');"> <iframe name="site1" width="100%" frameborder="0" height="100%" src="<?php echo $_GET['url']; ?>"></iframe> </body> </html>
<?php namespace Urb\Procedure\Data; use Exception; interface DataExceptionInterface { /** * add Exception to ObjectStorage * * @param Exception $exception * @return $this */ public function addExceptions(Exception $exception); /** * Returns an object storage of all exceptions captured * * @return \SplObjectStorage */ public function getExceptions(); }
using FOS.Website.Feature.ContentBlocks.Data; using FOS.Website.Feature.ContentBlocks.Helpers; using Sitecore.Analytics.Commons; using Synthesis.FieldTypes.Interfaces; namespace FOS.Website.Feature.ContentBlocks.Models { public class ImageModel : ContentBlockModelBase { public I_ImageItem ImageItem { get; set; } } }
@if (isset($follows) && $follows) <?php $type = NULL;?> <ul class='list'> @foreach ($follows as $follow) <?php $object = $follow->getObject();?> @include('entities.single', ['entity' => $entity]) @endforeach </ul> @else <p><i>None listed</i></p> @endif
system "title RubyGL Demo" system "@echo off" system "cls" while true do system "COLOR 1f" sleep(1) system "COLOR 2f" sleep(1) system "COLOR 3f" sleep(1) system "COLOR 4f" sleep(1) system "COLOR 5f" sleep(1) system "COLOR 6f" sleep(1) system "COLOR 7f" sleep(1) system "COLOR 8f" sleep(1) end
import 'package:flutter/material.dart'; import 'package:ulusoyapps_flutter/002-navigator-2/entity/shape_border_type.dart'; import 'package:ulusoyapps_flutter/002-navigator-2/widgets/shaped_container.dart'; import 'package:ulusoyapps_flutter/resources/dimens/app_dimens.dart'; class ShapeBorderGridView extends StatelessWidget { final Function(ShapeBorderType) onShapeTap; final ScrollPhysics scrollPhysics; final Color color; final SliverGridDelegate sliverGridDelegate; const ShapeBorderGridView({ Key key, @required this.color, @required this.onShapeTap, this.scrollPhysics = const AlwaysScrollableScrollPhysics(), this.sliverGridDelegate = const SliverGridDelegateWithMaxCrossAxisExtent( maxCrossAxisExtent: 400, crossAxisSpacing: AppDimens.SIZE_SPACING_MEDIUM, mainAxisSpacing: AppDimens.SIZE_SPACING_MEDIUM, childAspectRatio: 3, ), }) : super(key: key); @override Widget build(BuildContext context) { List<ShapeBorderType> shapeBorders = ShapeBorderType.values; return Center( child: Padding( padding: const EdgeInsets.all(AppDimens.SIZE_SPACING_MEDIUM), child: GridView.builder( itemCount: shapeBorders.length, physics: scrollPhysics, itemBuilder: (BuildContext context, int index) { final shapeBorderType = shapeBorders[index]; return ShapedButton( shapeBorderType: shapeBorderType, color: color, onPressed: () { onShapeTap(shapeBorderType); }, ); }, shrinkWrap: true, gridDelegate: sliverGridDelegate, ), ), ); } }
import React, { Component } from 'react'; import AudioContext from './AudioContext'; import playblink from '../buttons/play-blink.svg'; import play from '../buttons/play.svg'; const audioCtx = AudioContext.getAudioContext(); export default class Playing extends Component { componentDidMount() { audioCtx.resume(); let source = audioCtx.createBufferSource(); source.buffer = this.props.revBuff; source.connect(audioCtx.destination); source.start(); } playAgain = () => { let source = audioCtx.createBufferSource(); source.buffer = this.props.revBuff; source.connect(audioCtx.destination); source.start(); } render() { return ( <div> <div> <img onClick={this.playAgain} src={play} alt='playing' /> <br/> PLAY AGAIN </div> <div> <img onClick={() => this.props.handlePlaying("ready")} src={playblink} alt='playing' /> <br/> START AGAIN </div> </div> ); }; };
# Kafka-UI UI for Apache Kafka management ## Table of contents - [Getting started](#getting-started) - [Links](#links) ## Getting started Install packages ``` npm install ``` Set correct URL to your API server in `.env`. ``` REACT_APP_API_URL=http://api.your-kafka-rest-api.com:3004 ``` Start JSON Server if you prefer to use default full fake REST API. ``` npm run mock ``` Start application ``` npm start ``` ## Links * [JSON Server](https://github.com/typicode/json-server) - Fake REST API. * [Bulma](https://bulma.io/documentation/) - free, open source CSS framework based on Flexbox * [Create React App](https://github.com/facebook/create-react-app)
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class FeatureA extends Controller { // public function validate(Request $request, array $rules, array $messages = [], array $customAttributes = []) { $a ="12345"; } }
//! Query batching utility extern crate batch_recv; extern crate crossbeam_channel as chan; extern crate futures; extern crate itertools; extern crate worker_sentinel; use std::fmt::Debug; use futures::sync::oneshot; use itertools::Itertools; use worker_sentinel::{Work, WorkFactory}; use batch_recv::BatchRecv; /// Trait for values which is identifiable by unique `Key` /// /// Values must be cloneable because a single value will be cloned to the respective /// multiple callers if some callers request by the same key. pub trait Value: Debug + Clone + Send { /// Key is used to route the values to the caller. type Key: Ord + Clone + Send + 'static; /// Returns a `Key` fn key(&self) -> &Self::Key; } /// Trait for querier backend pub trait Backend: Send + 'static { type Value: Value; type Error: Debug + Clone + Send; /// This function provides the actual data fetching logic. fn batch_load<'a, I>(&self, keys: I) -> Result<Vec<Self::Value>, Self::Error> where I: Iterator<Item = &'a <Self::Value as Value>::Key> + 'a; } pub trait NewBackend: Send + Sync + 'static { type Backend: Backend; fn new_backend(&self) -> Self::Backend; } impl<F, B> NewBackend for F where B: Backend, F: Fn() -> B + Send + Sync + 'static, { type Backend = B; fn new_backend(&self) -> Self::Backend { self() } } type LoadResult<B> = Result<Option<<B as Backend>::Value>, <B as Backend>::Error>; type Message<B> = ( <<B as Backend>::Value as Value>::Key, oneshot::Sender<LoadResult<B>>, ); type QueueTx<B> = chan::Sender<Message<B>>; type QueueRx<B> = chan::Receiver<Message<B>>; /// Batched data loader interface /// /// Loader is composed of the queue which associated to the backend. #[derive(Clone)] pub struct Loader<B> where B: Backend, { queue_tx: QueueTx<B>, } impl<B> Loader<B> where B: Backend, { /// Create new loader /// /// `concurrent` sets the number of threads which runs the backend. /// `new_backend` will be called in spawning the new thread. pub fn new<N>(new_backend: N, batch_size: usize, concurrent: usize) -> Loader<B> where N: NewBackend<Backend = B> + 'static, { let (queue_tx, queue_rx) = chan::unbounded(); let work_factory = BackendWorkFactory { queue_rx, new_backend, batch_size, }; worker_sentinel::spawn(concurrent, work_factory); Loader { queue_tx } } /// Load value by key /// /// This function writes the key to the queue and returns a Future to wait the result. pub fn load( &self, key: <B::Value as Value>::Key, ) -> Result<oneshot::Receiver<LoadResult<B>>, chan::SendError<<B::Value as Value>::Key>> { let (cb_tx, cb_rx) = oneshot::channel(); self.queue_tx.send((key, cb_tx)).map_err(|err| { let (key, _) = err.into_inner(); chan::SendError(key) })?; Ok(cb_rx) } } struct BackendWork<B> where B: Backend, { queue_rx: QueueRx<B>, backend: B, batch_size: usize, } impl<B> Work for BackendWork<B> where B: Backend, { fn work(self) -> Option<Self> { let mut requests: Vec<_> = self.queue_rx.batch_recv(self.batch_size).ok()?.collect(); requests.sort_by(|&(ref left, _), &(ref right, _)| left.cmp(&right)); let req_groups_by_key = requests.into_iter().group_by(|&(ref key, _)| key.clone()); let req_groups_by_key_vec: Vec<_> = req_groups_by_key.into_iter().collect(); let ret = { let keys_iter = req_groups_by_key_vec.iter().map(|&(ref key, _)| key); self.backend.batch_load(keys_iter) }; let mut values = match ret { Ok(values) => values, Err(err) => { for (_, req_group) in req_groups_by_key_vec { for (_, cb) in req_group { cb.send(Err(err.clone())).expect("return error as result"); } } return Some(self); } }; values.sort_by(|ref left, ref right| left.key().cmp(right.key())); let joined = req_groups_by_key_vec .into_iter() .merge_join_by(values.into_iter(), |&(ref key, _), value| { key.cmp(value.key()) }); for pair in joined { use itertools::EitherOrBoth::{Both, Left}; match pair { Left((_, req_group)) => for (_, cb) in req_group { cb.send(Ok(None)).expect("respond to caller"); }, Both((_, req_group), value) => for (_, cb) in req_group { cb.send(Ok(Some(value.clone()))).expect("respond to caller"); }, _ => unreachable!(), } } Some(self) } } struct BackendWorkFactory<N> where N: NewBackend, { queue_rx: QueueRx<N::Backend>, new_backend: N, batch_size: usize, } impl<N> WorkFactory for BackendWorkFactory<N> where N: NewBackend, { type Work = BackendWork<N::Backend>; fn build(&self) -> Self::Work { let backend = self.new_backend.new_backend(); let queue_rx = self.queue_rx.clone(); let batch_size = self.batch_size; BackendWork { backend, queue_rx, batch_size, } } } #[cfg(test)] mod teet { use futures::{future, Future}; use super::{Backend, Loader, Value}; #[derive(Debug, Clone, PartialEq)] struct HalfValue { key: u32, half: u32, } impl Value for HalfValue { type Key = u32; fn key(&self) -> &u32 { &self.key } } struct HalfBackend; impl Backend for HalfBackend { type Value = HalfValue; type Error = (); fn batch_load<'a, I>(&self, keys: I) -> Result<Vec<Self::Value>, Self::Error> where I: Iterator<Item = &'a <Self::Value as Value>::Key> + 'a, { let ret = keys.filter_map(|&key| { if key % 2 == 0 { Some(HalfValue { key, half: key / 2 }) } else { None } }).collect(); Ok(ret) } } #[test] fn test_loader() { let loader = Loader::new(|| HalfBackend, 10, 1); let f1 = loader .load(1) .unwrap() .map(|v| assert!(v.unwrap().is_none())); let f3 = loader .load(3) .unwrap() .map(|v| assert!(v.unwrap().is_none())); let f2 = loader.load(2).unwrap().map(|v| { assert_eq!(v.unwrap().unwrap(), HalfValue { key: 2, half: 1 }) }); let f4 = loader.load(4).unwrap().map(|v| { assert_eq!(v.unwrap().unwrap(), HalfValue { key: 4, half: 2 }) }); future::join_all(vec![ Box::new(f1) as Box<Future<Item = _, Error = _>>, Box::new(f2) as Box<_>, Box::new(f3) as Box<_>, Box::new(f4) as Box<_>, ]).wait() .unwrap(); } }
from fabric.api import task from fabric.api import local from time import sleep from boto.ec2.connection import EC2Connection @task def create_aws_instance(): '''Initialize an AWS instance''' print('Creating an AWS instance...') conn = EC2Connection() # start an instance of Ubuntu 10.04 ami_ubuntu10_04 = conn.get_all_images(image_ids=['ami-3202f25b']) reservation = ami_ubuntu10_04[0].run( \ key_name='ec2-keypair', \ security_groups=['OCG_group'], \ instance_type='m1.large', \ ) instance = reservation.instances[0] sleep(1) while instance.state!=u'running': print("Instance state = {0}".format(instance.state)) instance.update() sleep(5) print("Instance state = {0}".format(instance.state)) sleep(5) # add a tag to name the instance instance.add_tag('Name','OpenClimateGIS') print("PUBLIC_DNS={0}".format(instance.dns_name)) local('export PUBLIC_DNS={0}'.format(instance.dns_name)) local('export INSTANCE_ID={0}'.format(instance.id)) return instance.id def get_instance(instance_id): '''Retrieves an AWS instance''' conn = EC2Connection() reservation = conn.get_all_instances(instance_ids=[instance_id])[0] return reservation.instances[0] @task def reboot_instance(instance_id): '''Reboot an AWS instance''' instance = get_instance(instance_id) instance.reboot() @task def associate_address(id, ip): '''Associate an IP address with an AWS instance''' conn = EC2Connection() instance = get_instance(id) if conn.associate_address(instance.id, ip): print('Success. Instance is now available at:{0}'.format(ip)) else: print('Failed. Unable to associate instance with the IP.')
<?php namespace App\Core\Security; use App\Core\BaseController; use App\Core\HTTP\Request; use App\Entities\User; use App\Core\Database\QueryBuilder; use Exception; class TokenController extends BaseController { private SecurityController $securityController; public function __construct() { parent::__construct(); $this->securityController = new SecurityController(); } public function generate(User $user, string $type, int $length = 64, int $duration = 3600*24): string { $this->deleteByUser($user, $type); $token = new Token(); $token->setUser($user); $token->setType($type); $token->setHash($this->securityController->createHash($length)); $token->setExpireAt(date('Y-m-d H:i:s', time()+$duration)); $token->save(); return $token->getHash(); } public function deleteByUser(User $user, ?string $type = null): void { $q = new QueryBuilder(); if ($type === null) { $q->delete('tokens')->where('id_user = '.$user->getId())->execute(); } else { $q->delete('tokens')->where('id_user = '.$user->getId(), 'type = "'.$type.'"')->execute(); } } /** * @return bool|mixed */ public function findActiveByType(string $type, User $user) { $q = new QueryBuilder(); return $q->select() ->from('tokens') ->where('type = "'.$type.'"', 'id_user = '.$user->getId(), 'expire_at > NOW()') ->limit(1) ->execute(get_class(new Token())); } /** * @throws Exception */ public function checkToken(string $type): bool { $request = new Request(); if ($request->isGetExists('id') && $request->isGetExists('token')) { $user = new User(); $user = $user->find($request->getGetData('id')); $token = $this->findActiveByType($type, $user); return $token && $token->getHash() === trim($request->getGetData('token'), '/') && !$token->isExpired(); } else { return false; } } }
from DRecPy.Recommender import CDAE from DRecPy.Recommender.EarlyStopping import MaxValidationValueRule from DRecPy.Dataset import get_train_dataset from DRecPy.Dataset import get_test_dataset from DRecPy.Evaluation.Processes import ranking_evaluation from DRecPy.Evaluation.Splits import leave_k_out from DRecPy.Evaluation.Metrics import NDCG from DRecPy.Evaluation.Metrics import HitRatio from DRecPy.Evaluation.Metrics import Precision import time ds_train = get_train_dataset('ml-100k') ds_test = get_test_dataset('ml-100k') ds_train, ds_val = leave_k_out(ds_train, k=1, min_user_interactions=10, seed=0) def epoch_callback_fn(model): return {'val_' + metric: v for metric, v in ranking_evaluation(model, ds_val, n_pos_interactions=1, n_neg_interactions=100, generate_negative_pairs=True, k=10, verbose=False, seed=10, metrics=[HitRatio(), NDCG()]).items()} start_train = time.time() cdae = CDAE(hidden_factors=50, corruption_level=0.2, loss='bce', seed=10) cdae.fit(ds_train, learning_rate=0.001, reg_rate=0.001, epochs=100, batch_size=64, neg_ratio=5, epoch_callback_fn=epoch_callback_fn, epoch_callback_freq=10, early_stopping_rule=MaxValidationValueRule('val_HitRatio'), early_stopping_freq=10) print("Training took", time.time() - start_train) print(ranking_evaluation(cdae, ds_test, k=[1, 5, 10], novelty=True, n_pos_interactions=1, n_neg_interactions=100, generate_negative_pairs=True, seed=10, metrics=[HitRatio(), NDCG(), Precision()], max_concurrent_threads=4, verbose=True))
'use strict'; var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }; var _expect = require('expect.js'); var _expect2 = _interopRequireWildcard(_expect); var _Disposable = require('../Disposable'); var _Disposable2 = _interopRequireWildcard(_Disposable); var _SerialDisposable = require('../SerialDisposable'); var _SerialDisposable2 = _interopRequireWildcard(_SerialDisposable); var _CompositeDisposable = require('../CompositeDisposable'); var _CompositeDisposable2 = _interopRequireWildcard(_CompositeDisposable); var _isDisposable = require('../isDisposable'); var _isDisposable2 = _interopRequireWildcard(_isDisposable); describe('isDisposable', function () { it('checks for dispose function', function () { _expect2['default'](_isDisposable2['default'](new _Disposable2['default']())).to.equal(true); _expect2['default'](_isDisposable2['default'](new _SerialDisposable2['default']())).to.equal(true); _expect2['default'](_isDisposable2['default'](new _CompositeDisposable2['default']())).to.equal(true); _expect2['default'](_isDisposable2['default']({ dispose: function dispose() {} })).to.equal(true); _expect2['default'](_isDisposable2['default']({ dispose: 42 })).to.equal(false); _expect2['default'](_isDisposable2['default'](function () {})).to.equal(false); }); });
export * from './build-scan-input' export * from './scan'
//! These tests don't really assert anything, they just exercise the API. //! This is primarily intended to be run under miri as a sanitizer. #![allow(unused)] use {rc_borrow::ArcBorrow, std::sync::Arc}; #[test] fn doc_example() { type Resource = u128; fn acquire_resource() -> Arc<Resource> { Arc::new(0) } fn use_resource(_resource: &Resource) { /* ... */ } let resource: Arc<Resource> = acquire_resource(); let borrowed: ArcBorrow<'_, Resource> = (&resource).into(); let reference: &Resource = ArcBorrow::downgrade(borrowed); let cloned: Arc<Resource> = ArcBorrow::upgrade(borrowed); use_resource(&borrowed); }
#!/usr/bin/env bash KUBECONFIG=${1-openshift.local.clusterup/openshift-apiserver/admin.kubeconfig} echo "Using KUBECONFIG '$KUBECONFIG'" oc login -u system:admin oc project default oc apply -f deploy/rbac.yaml oc apply -f deploy/crd.yaml WATCH_NAMESPACE="default" ./build/_output/bin/infinispan-operator -kubeconfig $KUBECONFIG
#!/usr/bin/env bash set -euo pipefail # dir should be lowercase so we don't conflict with # script defined DIR variable dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" . "$dir/ansi" if [ "${CI:-0}" = "1" ]; then ansi --red "Skipping post_install due to CI variable set to 1" exit 0 fi
export function score(input: number[]): number { var result: number = 0; var currentBallIndex: number = 0; for (var frame: number = 0; frame < 10; frame++) { result += input[currentBallIndex]; if (input[currentBallIndex] === 10) { result += input[currentBallIndex + 1] + input[currentBallIndex + 2]; currentBallIndex++; } else { if ((input[currentBallIndex] + input[currentBallIndex + 1]) === 10) { result += input[currentBallIndex + 1] + input[currentBallIndex + 2]; } else { result += input[currentBallIndex + 1] } currentBallIndex += 2; } } return result; }
--- title: People permalink: /2022/people/ --- ## <span style="color:#267CB9"> Organizing committee</span> * [Shabnam Tafreshi](https://www.linkedin.com/in/shabnamtafreshi), University of Maryland: ARLIS * [João Sedoc](https://www.stern.nyu.edu/faculty/bio/joao-sedoc), New York University * [Anna Rogers](http://www.annargrs.github.io/), University of Copenhagen * [Aleksandr Drozd](https://blackbird.pw/), RIKEN * [Anna Rumshisky](http://www.cs.uml.edu/~arum/), University of Massachusetts Lowell / Amazon Alexa Contact: [insights-workshop-organizers@googlegroups.com](mailto:insights-workshop-organizers@googlegroups.com) ## <span style="color:#267CB9"> Invited speakers (in alphabetical order) </span> * [Barbara Plank](https://bplank.github.io/), IT University of Copenhagen * [Tal Linzen](https://tallinzen.net/), NYU ## <span style="color:#267CB9"> Program committee (in alphabetical order) </span> TBA
<?php declare(strict_types=1); namespace AkioSarkiz\Traits; use AkioSarkiz\Contracts\ProxyDataInterface; use GuzzleHttp\Client; use Throwable; trait HasCheckerProxy { /** * Check proxy is live. * * @param ProxyDataInterface $proxyData * @param int $timeout * @return bool */ protected function checkProxyLive(ProxyDataInterface $proxyData, int $timeout): bool { try { $client = new Client(['timeout' => $timeout]); $response = $client->get(config('proxy_finder.verify_host'), ['proxy' => (string) $proxyData,]); return $response->getStatusCode() === 200; } catch (Throwable) { return false; } } }
--- layout: post title: FLAGs to be destroyed. date: 2020-10-01 00:08:07 +0800 categories: tags: --- > 记录待做的总结部分,可以视为立FLAG. - [x] Pytorch- Tensor的基本操作 - [x] Pytorch- TensorIterator - [x] Pytorch- Vectorization - [x] Neon- How to get ARM Neon Intrinsics well worked? - [x] *Attention is all you need* Summary - [x] ML-CNN 入门 - [x] ML-RNN 入门 - [ ] BERT - [x] GPT-2 - [ ] MNN Source Code - [ ] Pytorch Source Code
txtrader readme --------------- The Interactive Brokers TWS API interface uses the IbPy module These libraries are derived from an automated conversion of the IB java project files into a python wrapper. An up-to-date as of 2015-03-25 copy is found at https://github.com/rstms/IbPy This is a fork of the github master project https://github.com/blampe/IbPy The original (out of date) converter project is h.t.t.p.s://code.google.com/p/ibpy/
# name: notepad-plugin # about: Notepad-plugin for making notes in Discourse # version: 0.0.1 # authors: Tanvi Guttula, Julie Hang, Andrew Tedijanto enabled_site_setting :notepad_enabled after_initialize do load File.expand_path('../app/controllers/notepad-plugin_controller.rb', __FILE__) Discourse::Application.routes.append do get '/notepad' => 'notepad#index' end end
<?php namespace App\Models; use Illuminate\Support\Facades\DB; class User extends AppModel { // protected $table = "users"; public function user_level() { return $this->hasOne(UserLevel::class,"user_id",'id'); } /** * Created by Eric-Nothing. * @param int $type * @return mixed * 计算指定时间用户总数 */ public static function calc_user_count($type = 0) { switch ($type){ case 1://日 $item = self::whereBetween("created_at" ,[date('Y-m-d 00:00:00'),date('Y-m-d 23:59:59')])->count(); break; case 2://月 $item = self::whereBetween("created_at" ,[date('Y-m-1 00:00:00'),date('Y-m-31 23:59:59')])->count(); break; default: $item = self::count(); } return $item; } /** * Created by Eric-Nothing. * 近30天会员数量变化 */ public static function calc_user_in_30() { $firstday = date("Y-m-d 00:00:00",strtotime("-30 day")); $lastday = date("Y-m-d 23:59:59",strtotime("-1 day")); $between_dates = between_dates($firstday,$lastday); $user = self::whereBetween("created_at",[$firstday,$lastday]) ->select([DB::raw('DATE_FORMAT(created_at,"%c-%e") as time'),DB::raw('COUNT("*") as count')]) ->groupBy(DB::raw('DATE_FORMAT(created_at,"%c-%e")'))->get()->toArray(); $arr = array_column($user,"count","time"); $between_dates = array_fill_keys($between_dates, 0); $user = array_merge($between_dates,$arr); $time = array_keys($user); $count = array_values($user); return [$time,$count]; } }
/****************************************************************************** ** Copyright (c) 2015, Intel Corporation ** ** All rights reserved. ** ** ** ** Redistribution and use in source and binary forms, with or without ** ** modification, are permitted provided that the following conditions ** ** are met: ** ** 1. Redistributions of source code must retain the above copyright ** ** notice, this list of conditions and the following disclaimer. ** ** 2. Redistributions in binary form must reproduce the above copyright ** ** notice, this list of conditions and the following disclaimer in the ** ** documentation and/or other materials provided with the distribution. ** ** 3. Neither the name of the copyright holder nor the names of its ** ** contributors may be used to endorse or promote products derived ** ** from this software without specific prior written permission. ** ** ** ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ** ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT ** ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ** ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT ** ** HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ** ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED ** ** TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR ** ** PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF ** ** LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING ** ** NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS ** ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ******************************************************************************/ /* Narayanan Sundaram (Intel Corp.), Satya Gautam Vadlamudi (Intel Corp). * ******************************************************************************/ // Author: Satya Gautam Vadlamudi #include "stdio.h" #include <climits> template <class E=int> class MatrixDC { public: // MatrixDC(int _m, int _n, int _nnz, int _isColumn) { // m = _m; // n = _n; // nnz = _nnz; // isColumn = _isColumn; // nzx = 0; // lock = 0; // int numx = (m < nnz || nnz == 0) ? m : nnz; // Assumption for worst-case. // long int max = nnz; // if (nnz == 0) { // printf("Block with zero nnz\n"); // if (n > 400) { // max = m * 400; // Guess // } else { // max = m * n; // } // } // //printf("%d %d %ld %d %d %d %ld\n", m, n, nnz, isColumn, nzx, numx, max); // xindex = (int*) _mm_malloc(numx*sizeof(int), 64); // starty = (int*) _mm_malloc(numx*sizeof(int), 64); // yindex = (int*) _mm_malloc(max*sizeof(int), 64); // value = (E*) _mm_malloc(max*sizeof(E), 64); // #ifdef __ASSERT // assert(xindex); // assert(starty); // assert(yindex); // assert(value); // #endif // } MatrixDC(int _m, int _n, int _nnz, int _isColumn, int _nzx, int * _xindex, int * _starty, int * _yindex, E * _value) { m = _m; n = _n; nnz = _nnz; //isColumn = _isColumn; nzx = _nzx; //lock = 0; xindex = (int*) _xindex; starty = (int*) _starty; yindex = (int*) _yindex; value = (E*) _value; // xindexfull = (int*)malloc(sizeof(int)*nnz); // for (int i = 0; i < nzx; i++) { // int end = (i == nzx - 1 ? nnz : starty[i + 1]); // for (int j = starty[i]; j < end; j++) { // xindexfull[j] = xindex[i]; // } // } #ifdef __ASSERT assert(xindex); assert(starty); assert(yindex); assert(value); #endif } ~MatrixDC() { _mm_free(xindex); _mm_free(yindex); _mm_free(starty); _mm_free(value); } // static MatrixDC* ReadDCSXRev(int** A, int* Ag, int m, int n, int tid) { // int nnz = Ag[tid + 1] - Ag[tid]; // MatrixDC* M = new MatrixDC(n, m, nnz, false); // M->ReadRev(A, Ag[tid]); // return M; // } void print() { printf("\n-------------------\n"); printf("m: %d, n: %d, nzx: %d, nnz: %ld, isColumn: %d\n", m, n, nzx, nnz, isColumn); for (int i = 0; i < nzx; i++) { int end = i == nzx - 1 ? nnz : starty[i + 1]; for (int j = starty[i]; j < end; j++) { printf("%d %d %d\n", xindex[i], yindex[j], value[j]); } } printf("\n-------------------\n"); } void printStats() { printf("\n-------------------\n"); printf("m: %d, n: %d, nzx: %d, nnz: %ld, isColumn: %d\n", m, n, nzx, nnz, isColumn); int minx, miny, maxx, maxy; minx = INT_MAX; miny = INT_MAX; maxx = 0; maxy = 0; for (int i = 0; i < nzx; i++) { int end = i == nzx - 1 ? nnz : starty[i + 1]; for (int j = starty[i]; j < end; j++) { //printf("%d %d %d\n", xindex[i], yindex[j], value[j]); minx = std::min(minx, xindex[i]); maxx = std::max(maxx, xindex[i]); miny = std::min(miny, yindex[j]); maxy = std::max(maxy, yindex[j]); } } printf("Range :: X %d to %d, Y %d to %d \n", minx, maxx, miny, maxy); printf("\n-------------------\n"); } // void Add(int i, int j, E& v, int* pi, int* xindi, unsigned long* startyi) { // #ifdef __ASSERT // if (i < *pi) { // printf("ERROR: i:%d, pi:%d\n", i, *pi); // assert(0); // } // assert(*xindi < m); // assert(*startyi < m * 1000); // #endif // if (i == *pi) { // yindex[*startyi] = j; // value[*startyi] = v; // (*startyi)++; // } else { // *pi = i; // (*xindi)++; // xindex[*xindi] = i; // starty[*xindi] = *startyi; // yindex[*startyi] = j; // value[*startyi] = v; // (*startyi)++; // } // nzx = *xindi + 1; // //printf("nzx in add: %d\n", nzx); // nnz++; // } private: // void ReadRev(int** A, int offset) { // int **M = (int**) _mm_malloc(sizeof(int*) * 3, 64); // M[0] = (int*) _mm_malloc(sizeof(int) * nnz, 64); // M[1] = (int*) _mm_malloc(sizeof(int) * nnz, 64); // M[2] = (int*) _mm_malloc(sizeof(int) * nnz, 64); // int *t = (int*) _mm_malloc(sizeof(int) * (m + 1), 64); // for (int i = 0; i <= m; i++) { // t[i] = 0; // } // for (int i = 0; i < nnz; i++) { // t[A[1][i + offset]]++; // } // int *j = (int*) _mm_malloc(sizeof(int) * (m + 1), 64); // j[0] = 0; // for (int i = 1; i <= m; i++) { // j[i] = 0; // t[i] += t[i-1]; // } // for (int i = 0; i < nnz; i++) { // int x = t[A[1][i + offset]-1] + j[A[1][i + offset]]; // M[0][x] = A[1][i + offset]; // M[1][x] = A[0][i + offset]; // M[2][x] = A[2][i + offset]; // j[A[1][i + offset]]++; // } // int xindi = -1; // unsigned long startyi = 0; // int pi = -1; // //printf("nnz: %ld\n", nnz); // unsigned long _nnz = nnz; // nnz = 0; // for (int k = 0; k < _nnz; k++) { // Add(M[0][k], M[1][k], M[2][k], &pi, &xindi, &startyi); // } // #ifdef __ASSERT // assert(_nnz == nnz); // #endif // _mm_free(t); // _mm_free(j); // _mm_free(M[0]); // _mm_free(M[1]); // _mm_free(M[2]); // _mm_free(M); // } public: int m, n, nzx; //isColumn; unsigned long nnz; int* xindex; int* starty; int* yindex; E* value; //int* xindexfull; //volatile int lock; };
# [Question 1 - Blue-Red Permutation](https://codeforces.com/problemset/problem/1607/D) --- # [Question 2 - K-Concatenation](https://www.codechef.com/JAN18/problems/KCON) ---
struct FractionVector{T,V} <: AbstractVector{T} vec::V val::T end #= Fraction Vector useful when expressing fractions in n-1 components. the last component is calculated at build time. it allocates less than creating a new vector or appending. =# ## function FractionVector(v::AbstractVector) a = one(eltype(v)) # any(x->x<0,v) && throw(DomainError(v,"all elements of a fraction vector should be positive.")) a -=sum(v) # a < 0 && throw(DomainError(a,"the values of the input vector add to more than one")) return FractionVector(v,a) end function FractionVector(v::Real) a = one(v) # (v < zero(v)) && throw(DomainError(v,"all elements of a fraction vector should be positive.")) a -= v # a < 0 && throw(DomainError(a,"the values of the input vector add to more than one")) return FractionVector(v,a) end @inline Base.eltype(v::FractionVector{T}) where T = T @inline Base.length(v::FractionVector)::Int = Base.length(v.vec) + 1 @inline function Base.length(v::FractionVector{T,<:Real})::Int where T return 2 end @inline Base.size(v::FractionVector) = (length(v),) @inline function Base.getindex(v::FractionVector,i::Int) @boundscheck checkbounds(v, i) return ifelse(length(v)==i,v.val,v.vec[min(length(v.vec),i)]) end @inline function Base.getindex(v::FractionVector{T,<:Real},i::Int) where T @boundscheck checkbounds(v, i) return ifelse(i==1,v.vec,v.val) end Base.IndexStyle(::Type{<:FractionVector}) = IndexLinear() ## struct CompressedAssocMatrix{T} values::Vector{T} outer_indices::Vector{Tuple{Int,Int}} #index of components inner_indices::Vector{Tuple{Int,Int}} #index of sites outer_size::Tuple{Int,Int} #size of component matrix inner_size::Tuple{Int,Int} #size of sites matrices end function Base.show(io::IO,mime::MIME"text/plain",m::CompressedAssocMatrix{T}) where T n = length(m.values) println(io,typeof(m)," with ",n," entr",(n == 1 ? "y:" : "ies:")) for (idx,(i,j),(a,b)) in indices(m) if idx != 1 println(io) end print(io," ",(i,a)," >=< ",(j,b),": ",m.values[idx]) end end function Base.show(io::IO,m::CompressedAssocMatrix{T}) where T print(io,typeof(m)) print(io,m.values) end function CompressedAssocMatrix{T}() where T return CompressedAssocMatrix(T[],Tuple{Int,Int}[],Tuple{Int,Int}[],(0,0),(0,0)) end const MatrixofMatrices{T} = AbstractMatrix{<:AbstractMatrix{T}} where T function CompressedAssocMatrix(x::MatrixofMatrices{T}) where T outer_size = size(x) is1, is2 = 0, 0 os1, os2 = outer_size for i in eachindex(x) _is1,_is2 = size(x[i]) is1,is2 = max(_is1,is1),max(_is2,is2) end inner_size = (is1,is2) values = T[] inner_indices = Tuple{Int,Int}[] outer_indices = Tuple{Int,Int}[] if iszero(os1) & iszero(os2) return CompressedAssocMatrix(values,outer_indices,inner_indices,outer_size,inner_size) end #self association for i in 1:os1 for j in i:os2 #there can be self association xi = x[i,j] if iszero(length(xi)) continue end a1,a2 = size(xi) for a in 1:a1 start = ifelse(i == j,a,1) for b in start:a2 #this includes (i,i)(a,a) (sCKSAFT) if !_iszero(xi[a,b]) push!(values,xi[a,b]) push!(outer_indices,(i,j)) push!(inner_indices,(a,b)) end end end end end return CompressedAssocMatrix(values,outer_indices,inner_indices,outer_size,inner_size) end function Base.getindex(m::CompressedAssocMatrix,i::Int,j::Int) i,j = minmax(i,j) @inbounds begin idx = searchsorted(m.outer_indices,(i,j)) return AssocView(view(m.values,idx),view(m.inner_indices,idx),m.inner_size) end end #Base.eltype(m::CompressedAssocMatrix{T}) where T = T function Base.setindex!(m::CompressedAssocMatrix,val,i::Int) @inbounds begin m.values[i] = val end end struct AssocView{T,V,I} <: AbstractMatrix{T} values::V indices::I size::Tuple{Int,Int} end function AssocView(V::Vi,I::Ii,s) where Ii where Vi <:AbstractVector{<:T} where T return AssocView{T,Vi,Ii}(V,I,s) end Base.size(m::AssocView) = m.size Base.eltype(m::AssocView{T}) where T = T function Base.getindex(m::AssocView{T},i::Int,j::Int) where T @inbounds begin idxs = searchsorted(m.indices,(i,j)) if iszero(length(idxs)) idxs = searchsorted(m.indices,(j,i)) iszero(length(idxs)) && return zero(T) end idx = first(idxs) return m.values[idx] end end function zero_assoc(m::CompressedAssocMatrix,::Type{T} = Float64) where T <:Number newvalues = zeros(T,length(m.values)) return CompressedAssocMatrix(newvalues,m.outer_indices,m.inner_indices,m.outer_size,m.inner_size) end function zero_assoc(m::Matrix{<:Matrix},a::Type{T} = Float64) where T <:Number return zero_assoc(CompressedAssocMatrix(m),a) end #= function zero_assoc(m::CompressedAssocMatrix,x::T = 0.0) where T <:Number newvalues = fill(x,length(m.values)) return CompressedAssocMatrix(newvalues,m.outer_indices,m.inner_indices,m.outer_size,m.inner_size) end =# function indices(x::CompressedAssocMatrix) return zip(1:length(x.values),x.outer_indices,x.inner_indices) end function indices(x::PackedVofV) return x.p end #= (1, 1) (1, 3) (1, 3) (1, 3) (1, 3) (1, 3) (1, 3) (2, 2) (3, 3) =#
CREATE VIEW KTSUsers AS SELECT X2.ID, p.FirstName, p.Surname, p.Email, u.LogonName, X2.X2AUserID KTSID, d.SerialNumber FROM X2 JOIN UserAccounts u ON X2.OwnerID = u.ID JOIN People p ON u.PersonID = p.ID LEFT JOIN Devices d ON u.ID = d.UserAccountID go
-- e_fkey.test -- -- execsql { -- INSERT INTO song VALUES(2, 'Elvis Presley', NULL, 'Fever'); -- INSERT INTO song VALUES(3, NULL, 'Elvis Is Back', 'Soldier Boy'); -- } INSERT INTO song VALUES(2, 'Elvis Presley', NULL, 'Fever'); INSERT INTO song VALUES(3, NULL, 'Elvis Is Back', 'Soldier Boy');
@php( $models = $models ?? collect() ) @if( !$models->count() ) @alertinfo("We couldn't find any results.") @else <div class="pagination-wrap"> <div class="items-count"> Found {{ $models->total() }} items. </div> {{ $models->links() }} </div> @endif <style> .pagination-wrap{font-size: 0.9rem; display: flex; justify-content: space-between;} </style> <script> $(document).ready(() => { const $pagination = $('.pagination'); if( $pagination.length === 0 ) return; $pagination.find('li').addClass('page-item'); $pagination.find('a,span').addClass('page-link'); }); </script>
// Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. package com.ubergeek42.WeechatAndroid.relay import android.graphics.Typeface import android.text.Spannable import android.text.SpannableString import android.text.Spanned import android.text.style.BackgroundColorSpan import android.text.style.ForegroundColorSpan import android.text.style.LeadingMarginSpan import android.text.style.StyleSpan import android.text.style.UnderlineSpan import androidx.annotation.AnyThread import com.ubergeek42.WeechatAndroid.service.P import com.ubergeek42.WeechatAndroid.upload.i import com.ubergeek42.WeechatAndroid.utils.Linkify.linkify import com.ubergeek42.weechat.Color import com.ubergeek42.weechat.ColorScheme import java.lang.Long.toHexString open class Line constructor( @JvmField val pointer: Long, @JvmField val type: LineSpec.Type, @JvmField val timestamp: Long, private val rawPrefix: String, private val rawMessage: String, @JvmField val nick: String?, @JvmField val isVisible: Boolean, @JvmField val isHighlighted: Boolean, @JvmField val displayAs: LineSpec.DisplayAs, @JvmField val notifyLevel: LineSpec.NotifyLevel ) { @AnyThread fun ensureSpannable() { if (_spannable != null) return val encloseNick = P.encloseNick && displayAs == LineSpec.DisplayAs.Say val color = Color(timestampString, rawPrefix, rawMessage, encloseNick, isHighlighted, P.maxWidth, P.align) val spannable: Spannable = SpannableString(color.lineString) if (type == LineSpec.Type.Other && P.dimDownNonHumanLines) { spannable.setSpan(ForegroundColorSpan(ColorScheme.get().chat_inactive_buffer[0] or -0x1000000), 0, spannable.length, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE) } else { for (span in color.finalSpanList) { val droidSpan = when (span.type) { Color.Span.FGCOLOR -> ForegroundColorSpan(span.color or -0x1000000) Color.Span.BGCOLOR -> BackgroundColorSpan(span.color or -0x1000000) Color.Span.ITALIC -> StyleSpan(Typeface.ITALIC) Color.Span.BOLD -> StyleSpan(Typeface.BOLD) Color.Span.UNDERLINE -> UnderlineSpan() else -> continue } spannable.setSpan(droidSpan, span.start, span.end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE) } } if (P.align != Color.ALIGN_NONE) { val marginSpan = LeadingMarginSpan.Standard(0, (P.letterWidth * color.margin).i) spannable.setSpan(marginSpan, 0, spannable.length, Spanned.SPAN_INCLUSIVE_INCLUSIVE) } linkify(spannable, color.messageString) _prefixString = color.prefixString _messageString = color.messageString _spannable = spannable } @AnyThread fun invalidateSpannable() { _spannable = null _messageString = null _prefixString = null } @Volatile private var _spannable: Spannable? = null open val spannable get(): Spannable { ensureSpannable() return _spannable!! } private val timestampString get() = P.dateFormat?.let { dateFormat -> StringBuilder().also { builder -> dateFormat.printTo(builder, this.timestamp) } } // can't simply do ensureSpannable() here as this can be called for a highlights when there's no // activity (after OOM kill). this would parse the spannable using incorrect colors, and this // spannable wouldn't get reset by P if the buffer's not open. private var _prefixString: String? = null open val prefixString get() = _prefixString ?: Color().parseColors(rawPrefix).toString() private var _messageString: String? = null open val messageString get() = _messageString ?: Color().parseColors(rawMessage).toString() // caching this method (for the purpose of speeding up search) // yields about 5ms for searches of 4096 lines, despite what the flame chart shows val ircLikeString get() = if (displayAs == LineSpec.DisplayAs.Say) "<$prefixString> $messageString" else "$prefixString $messageString" val timestampedIrcLikeString: String get() = timestampString?.let { timestamp -> "$timestamp $ircLikeString" } ?: ircLikeString override fun toString() = "Line(0x${toHexString(pointer)}: $ircLikeString)" }
{-# LANGUAGE OverloadedStrings #-} module Exam.IO where import Exam.Type import Exam.Parse import Exam.XML import System.IO import qualified Data.ByteString.Lazy.Char8 as BSL import qualified Data.Text.IO as TI readAndPrintExam :: FilePath -> IO () readAndPrintExam fp = do readExam fp >>= printExam return () readExam :: FilePath -> IO Exam readExam fp = do et <- TI.readFile fp case parseExam fp et of Left err -> hPutStrLn stderr err *> return (Exam "" "" []) Right e -> return e printExam :: Exam -> IO () printExam = BSL.putStrLn . examToXML
namespace Files.FileSystems.WindowsStorage.Tests { using System; using System.Diagnostics; using Microsoft.VisualStudio.TestPlatform.TestExecutor; using Windows.ApplicationModel.Activation; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; public sealed partial class App { public App() { InitializeComponent(); } protected override void OnLaunched(LaunchActivatedEventArgs e) { if (!(Window.Current.Content is Frame rootFrame)) { rootFrame = new Frame(); rootFrame.NavigationFailed += (sender, e) => throw new Exception("Failed to load Page " + e.SourcePageType.FullName); Window.Current.Content = rootFrame; } DebugSettings.EnableFrameRateCounter = Debugger.IsAttached; UnitTestClient.CreateDefaultUI(); Window.Current.Activate(); UnitTestClient.Run(e.Arguments); } } }
use crate::gen::SchemaGenerator; use crate::schema::*; use crate::JsonSchema; use std::num::*; macro_rules! nonzero_unsigned_impl { ($type:ty => $primitive:ty) => { impl JsonSchema for $type { no_ref_schema!(); fn schema_name() -> String { stringify!($type).to_owned() } fn json_schema(gen: &mut SchemaGenerator) -> Schema { let zero_schema: Schema = SchemaObject { const_value: Some(0.into()), ..Default::default() } .into(); let mut schema: SchemaObject = <$primitive>::json_schema(gen).into(); schema.subschemas().not = Some(Box::from(zero_schema)); schema.into() } } }; } nonzero_unsigned_impl!(NonZeroI8 => i8); nonzero_unsigned_impl!(NonZeroI16 => i16); nonzero_unsigned_impl!(NonZeroI32 => i32); nonzero_unsigned_impl!(NonZeroI64 => i64); nonzero_unsigned_impl!(NonZeroI128 => i128); nonzero_unsigned_impl!(NonZeroIsize => isize);
package scala.build.postprocessing import scala.build.{GeneratedSource, Logger} case object ByteCodePostProcessor extends PostProcessor { def postProcess( generatedSources: Seq[GeneratedSource], mappings: Map[String, (String, Int)], workspace: os.Path, output: os.Path, logger: Logger ): Unit = AsmPositionUpdater.postProcess(mappings, output, logger) }
# --- # title: 1028. Recover a Tree From Preorder Traversal # id: problem1028 # author: Tian Jun # date: 2020-10-31 # difficulty: Hard # categories: Tree, Depth-first Search # link: <https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/description/> # hidden: true # --- # # We run a preorder depth-first search (DFS) on the `root` of a binary tree. # # At each node in this traversal, we output `D` dashes (where `D` is the depth # of this node), then we output the value of this node. If the depth of a node # is `D`, the depth of its immediate child is `D + 1`. The depth of the `root` # node is `0`. # # If a node has only one child, that child is guaranteed to be **the left # child**. # # Given the output `S` of this traversal, recover the tree and return _its_ # `root`. # # # # **Example 1:** # # ![](https://assets.leetcode.com/uploads/2019/04/08/recover-a-tree-from- # preorder-traversal.png) # # # # Input: S = "1-2--3--4-5--6--7" # Output: [1,2,5,3,4,6,7] # # # **Example 2:** # # ![](https://assets.leetcode.com/uploads/2019/04/11/screen- # shot-2019-04-10-at-114101-pm.png) # # # # Input: S = "1-2--3---4-5--6---7" # Output: [1,2,5,3,null,6,null,4,null,7] # # # **Example 3:** # # ![](https://assets.leetcode.com/uploads/2019/04/11/screen- # shot-2019-04-10-at-114955-pm.png) # # # # Input: S = "1-401--349---90--88" # Output: [1,401,null,349,88,90] # # # # # **Constraints:** # # * The number of nodes in the original tree is in the range `[1, 1000]`. # * `1 <= Node.val <= 109` # # ## @lc code=start using LeetCode ## add your code here: ## @lc code=end
#!/bin/bash set -e echo docker pull continuumio/anaconda3 docker pull continuumio/anaconda3 echo docker build -t pybay-workflow-2a . docker build -t pybay-workflow-2a . echo "Entering docker shell, type \"exit\" to return back to host shell" echo docker run -it --rm -v `pwd`:/host pybay-workflow-2a:latest /bin/bash docker run -it --rm -v `pwd`:/host pybay-workflow-2a:latest /bin/bash
--- layout: post title: oop_Set comments: true categories: [Development Environment/Java] tags: [Java] --- <br> # <center> Set </center> --- <br> * __Set__ * __HashSet__ * __TreeSet__ * __LinkedHashSet__ <br> ## 1. HashSet <br> > set은 순서를 신경쓰지 않고 데이터를 저장한다 > 순서가 필요없고 중복은 불허한다 ```java import java.util.HashSet; public class HashSetEx { public static void main(String[] args) { HashSet list = new HashSet(); list.add("사자"); list.add("호랑이"); list.add("코끼리"); list.add("토끼"); list.add("고양이"); list.add("고양이"); // 중복 값 넣으면 알아서 피해줌 System.out.println(list); //set은 순서를 저장하지 않는다 // 중복값 들어가지 않는다 } } ``` <br> > HashSet 활용 ```java public class HashSetLotto { public static void main(String[] args) { // 중복을 피하는 HashSet 이용하여 lotto 중복없이 출력 HashSet<Integer> lotto = new HashSet<Integer>(); while(lotto.size() < 6){ // for(i=0; i<6 ; i++) 를 사용하였을 경우 중복값 발생 시 5개만 출력되기 때문에 while 사용 int su = (int)(Math.random()*45)+1; lotto.add(su); } // System.out.println(lotto); // 정렬까지 ArrayList<Integer> li = new ArrayList<Integer>(lotto); // set -> ArrayList Collections.sort(li); // collections.sort 에 인자로 list만 들어올수 있음 set안됨 System.out.println(li); } } ```
/** * Format a value to a valid price * * @param value * @param decimalPlaces */ export const formatPrice = (value: number, decimalPlaces: number = 2): string => `$${Number(value.toFixed(decimalPlaces))}`;
#!/usr/bin/bash set -ue function test_process() { if [[ $# -ne 1 ]]; then actual="invalid parameters -> usage : test_port <PORT>" return 1 fi processname=$1 actual=$(ps ax | grep -qie "[ /]${processname}" ) if [ $? != 0 ]; then actual="${processname} not running" return 1 fi actual="${processname} running" return 0 }
// This program is free software: you can use, modify and/or redistribute it // under the terms of the simplified BSD License. You should have received a // copy of this license along this program. If not, see // <http://www.opensource.org/licenses/bsd-license.html>. // // Copyright (C) 2017, Javier Sánchez Pérez <jsanchez@ulpgc.es> // All rights reserved. #include <stdio.h> /** * * Function to read a video in raw data * **/ size_t read_video( char *name, //file name unsigned char *I, //video to read int size //size of the video ) { FILE* file=fopen(name, "rb"); if(file != NULL) { size_t result=fread(I, sizeof(unsigned char), size, file); fclose(file); return result; } else return 0; } /** * * Function to read a video in raw data * **/ size_t write_video( char *name, //file name unsigned char *I, //video to write int size //size of the video ) { FILE* file=fopen(name, "wb"); if(file != NULL) { size_t result=fwrite(I, sizeof(unsigned char), size, file); fclose(file); return result; } else return 0; } /** * * Function to save transformations to a file * **/ void save_transform( char *name, //file name float *H, //transformation int nparams //number of parameters of the transformations ) { FILE *fd=fopen(name,"a"); if(fd!=NULL) { for(int j=0;j<nparams;j++) fprintf(fd, "%.10f ", H[j]); fprintf(fd, "\n"); fclose(fd); } }
# -*- ruby -*- namespace :highway do desc "Create initial self-signed CA certificate, or resign existing one" task :h1_bootstrap_ca => :environment do curve = HighwayKeys.ca.curve vendorprivkeyfile = HighwayKeys.ca.certdir.join("vendor_#{curve}.key") outfile = HighwayKeys.ca.certdir.join("vendor_#{curve}.crt") dnprefix = SystemVariable.string(:dnprefix) || "/DC=ca/DC=sandelman" dn = sprintf("%s/CN=%s CA", dnprefix, SystemVariable.string(:hostname)) puts "issuer is now: #{dn}" dnobj = OpenSSL::X509::Name.parse dn if !File.exist?(outfile) or ENV['RESIGN'] HighwayKeys.ca.sign_certificate("CA", dnobj, vendorprivkeyfile, outfile, dnobj) { |cert, ef| cert.add_extension(ef.create_extension("basicConstraints","CA:TRUE",true)) cert.add_extension(ef.create_extension("keyUsage","keyCertSign, cRLSign", true)) cert.add_extension(ef.create_extension("subjectKeyIdentifier","hash",false)) cert.add_extension(ef.create_extension("authorityKeyIdentifier","keyid:always",false)) } puts "CA Certificate writtten to: #{outfile}" end end desc "Create a certificate for the MASA to sign vouchers with" task :h2_bootstrap_masa => :environment do curve = MasaKeys.ca.curve certdir = MasaKeys.ca.certdir masaprivkeyfile= certdir.join("masa_#{curve}.key") outfile = certdir.join("masa_#{curve}.crt") dnprefix = SystemVariable.string(:dnprefix) || "/DC=ca/DC=sandelman" dn = sprintf("%s/CN=%s MASA", dnprefix, SystemVariable.string(:hostname)) if !File.exist?(outfile) or ENV['RESIGN'] HighwayKeys.ca.sign_end_certificate("MASA", masaprivkeyfile, outfile, dn) puts "MASA voucher signing certificate writtten to: #{outfile}" end end desc "Create a certificate for the MASA to sign MUD objects" task :h3_bootstrap_mud => :environment do curve = MudKeys.ca.curve certdir = HighwayKeys.ca.certdir mudprivkeyfile = certdir.join("mud_#{curve}.key") outfile=certdir.join("mud_#{curve}.crt") dnprefix = SystemVariable.string(:dnprefix) || "/DC=ca/DC=sandelman" dn = sprintf("%s/CN=%s MUD", dnprefix, SystemVariable.string(:hostname)) if !File.exist?(outfile) or ENV['RESIGN'] HighwayKeys.ca.sign_end_certificate("MUD", mudprivkeyfile, outfile, dn) puts "MUD file signing certificate writtten to: #{outfile}" end end desc "Create a certificate for the MASA web interface (EST) to answer requests" task :h4_masa_server_cert => :environment do curve = HighwayKeys.ca.client_curve certdir = HighwayKeys.ca.certdir serverprivkeyfile = certdir.join("server_#{curve}.key") outfile=certdir.join("server_#{curve}.crt") dnprefix = SystemVariable.string(:dnprefix) || "/DC=ca/DC=sandelman" dn = sprintf("%s/CN=%s", dnprefix, SystemVariable.string(:hostname)) dnobj = OpenSSL::X509::Name.parse dn if !File.exist?(outfile) or ENV['RESIGN'] mud_cert = HighwayKeys.ca.sign_certificate("SERVER", nil, serverprivkeyfile, outfile, dnobj) { |cert,ef| cert.add_extension(ef.create_extension("basicConstraints","CA:FALSE",true)) } puts "MASA SERVER certificate writtten to: #{outfile}" end end desc "Create an intermediate CA for signing SmartPledge IDevID devices" task :h5_idevid_ca => :environment do curve = IDevIDKeys.ca.curve dnprefix = SystemVariable.string(:dnprefix) || "/DC=ca/DC=sandelman" dn = sprintf("%s/CN=%s IDevID CA", dnprefix, SystemVariable.string(:hostname)) puts "issuer is now: #{dn}" dnobj = OpenSSL::X509::Name.parse dn outfile=IDevIDKeys.ca.idevid_pub_keyfile if !File.exist?(outfile) or ENV['RESIGN'] HighwayKeys.ca.sign_certificate("IDevID", nil, IDevIDKeys.ca.idevid_priv_keyfile, IDevIDKeys.ca.idevid_pub_keyfile, dnobj) { |cert, ef| cert.add_extension(ef.create_extension("basicConstraints","CA:TRUE",true)) cert.add_extension(ef.create_extension("keyUsage","keyCertSign, cRLSign", true)) cert.add_extension(ef.create_extension("subjectKeyIdentifier","hash",false)) cert.add_extension(ef.create_extension("authorityKeyIdentifier","keyid:always",false)) } puts "IDevID Certificate writtten to: #{outfile}" end end desc "Sign a IDevID certificate for a new device, EUI64=xx" task :signmic => :environment do eui64 = ENV['EUI64'] unless eui64 puts "must set EUI64= to a valid MAC address" exit end dev = Device.create_by_number(eui64) dev.gen_and_store_key end desc "Create an IDevID certificate based upon a Certificate Signing Request (CSR=). Output to CERT=" task :signcsr => :environment do input = ENV['CSR'] output= ENV['CERT'] dev = Device.create_from_csr_io(File.read(input)) File.open(output, "w") do |f| f.write dev.certificate.to_pem; end end desc "Sign voucher for device EUI64= to OWNER_ID=xx, with optional NONCE=xx, EXPIRES=yy" task :signvoucher => :environment do eui64 = ENV['EUI64'] ownerid = ENV['OWNER_ID'] nonce = ENV['NONCE'] expires=ENV['EXPIRES'].try(:to_date) unless eui64 puts "must set EUI64= to a valid MAC address" exit end device = Device.find_by_number(eui64) unless device puts "no device found with EUI64=#{eui64}" exit end unless ownerid puts "must set OWNER_ID= to a valid database ID" exit end owner = Owner.find(ownerid) voucher = Voucher.create_voucher(owner, device, Time.now, nonce, expires) puts "Voucher created and saved, #{voucher.id}, and fixture written to tmp" fw = FixtureWriter.new('tmp') voucher.savefixturefw(fw) fw.closefiles end end
package tpo1.tests.menu import org.openqa.selenium.WebElement import org.openqa.selenium.support.FindBy import tpo1.PresentationPage class InsertMenuTests(page: PresentationPage) : AbstractMenuTestSet("Insert menu", page) { @FindBy(id = "docs-insert-menu") override lateinit var menu: WebElement @FindBy(xpath = "//span[@aria-label='Анимация a']") lateinit var itemAnimation: WebElement @FindBy(xpath = "//span[contains(@aria-label,'Оставить комментарий m')]") lateinit var itemComment: WebElement @FindBy(xpath = "//span[@aria-label='Номера слайдов e']") lateinit var itemEnum: WebElement @FindBy(xpath = "//span[@aria-label='Диаграмма h']") lateinit var itemDiagram: WebElement @FindBy(xpath = "//span[@aria-label='Таблица b']") lateinit var itemTable: WebElement @FindBy(xpath = "//span[@aria-label='Текстовое поле t']") lateinit var itemTextField: WebElement @FindBy(xpath = "//span[@aria-label='Word Art w']") lateinit var itemWordArt: WebElement @Test("Animation") fun animationTest() { basicWindowTest(itemAnimation, "//div[@class='punch-animation-sidebar-header']//div[@title='Закрыть']/div") } @Test("Comment") fun commentTest() { basicWindowTest(itemComment, "//div[@data-tooltip='Отмена отправки комментария']") } @Test("Enum") fun enumTest() { basicEscapeTest(itemEnum, "//span[@class='modal-dialog-title-text'][contains(.,'Номера слайдов')]") } @Test("Diagram") fun diagramTest() { basicEscapeTest(itemDiagram, "//span[text()='Линейчатая']") } @Test("Table") fun tableTest() { basicEscapeTest(itemTable, "//div[text()='\u202A1 x 1\u202C']") } @Test("Text field") fun textFieldTest() { menu.click() itemTextField.click() page.findById("textboxButton")?.let { button -> if (button.getAttribute("aria-pressed") != "true") fail("Button doesn't press first time") menu.click() itemTextField.click() if (button.getAttribute("aria-pressed") != "false") fail("Button doesn't press second time") } ?: fail ("Doesn't open") } @Test("WordArt") fun wordArtTest() { basicEscapeTest(itemWordArt, "//textarea[@class='sketchy-bubble-textarea']") } }
import 'dart:ui'; import 'package:flutter/material.dart'; import 'dart:math' as math; class GraficaCurvas extends StatefulWidget { List<double> datos; double max; double min; double height; GraficaCurvas( {@required this.datos, @required this.max, @required this.min, this.height = 300}); @override _State createState() => _State(); } class _State extends State<GraficaCurvas> { List<double> party; @override void initState() { party = List(); var factor = widget.max - widget.min; for (var dato in widget.datos) { var value = (dato - widget.min) / factor; party.add(value); } super.initState(); } @override Widget build(BuildContext context) { return Stack( children: <Widget>[ Container( color: Colors.white, width: MediaQuery.of(context).size.width, height: widget.height + 40, child: Center( child: Text(''), ), ), Container( padding: const EdgeInsets.only(top: 20, bottom: 2.0), child: ClipPath( clipper: ClipplingClass(party: party, datos: widget.datos), child: Container( width: MediaQuery.of(context).size.width, height: widget.height + 10, child: Center( child: Text(''), ), decoration: BoxDecoration( gradient: LinearGradient( begin: Alignment.topCenter, end: Alignment.bottomCenter, stops: [0.5, 0.99], colors: [Colors.indigo[100], Colors.white], ), ), ), ), ), Container( padding: const EdgeInsets.only(top: 20, bottom: 2.0), child: CustomPaint( size: Size(MediaQuery.of(context).size.width, widget.height), painter: LinesGraph(party: party), ), ), ], ); } } class ClipplingClass extends CustomClipper<Path> { List<double> party; List<double> datos; ClipplingClass({@required this.party, @required this.datos}); SenoidalGraph senoidalGraph = SenoidalGraph(); @override Path getClip(Size size) { var path = Path(); var partx = size.width / (party.length - 1); var he = size.height - 2; var xa = 0.0; var ya = (he - (party[0] * he)); path.moveTo(0.0, ya); for (var c = 0; c < (party.length - 1); c++) { var x = partx * c; var y = (he - (party[c] * he)) + 5; var xn = partx * c + 1; var yn = (he - (party[c + 1] * he)) + 5; var valle = (y > ya); if (c > 0) { var yp = ((c + 1) < party.length) ? party[c + 1] : party[c]; var yph = (he - (yp * he)) + 5; var vA = [x, y]; var vB = [xa, ya]; var vC = [xn, yn]; var cAB = [(vB[0] - vA[0]), (vB[1] - vA[1])]; var cAC = [(vC[0] - vA[0]), (vC[1] - vA[1])]; var cBC = [(vC[0] - vB[0]), (vC[1] - vB[1])]; var mAB = math.sqrt(math.pow(cAB[0], 2) + math.pow(cAB[1], 2)); var mAC = math.sqrt(math.pow(cAC[0], 2) + math.pow(cAC[1], 2)); var mBC = math.sqrt(math.pow(cBC[0], 2) + math.pow(cBC[1], 2)); var escalarAB_AC = (cAB[0] * cAC[0]) + (cAB[1] * cAC[1]); var anguloA = math.acos(escalarAB_AC / (mAB * mAC)); var a = (1 - (anguloA / 128)) / (valle ? 22 : 12); var bnd = true; if (ya == y && yph == y) { bnd = false; } else if (ya < y && y < yph) { valle = true; bnd = false; } else if (ya > y && y > yph) { valle = true; bnd = false; } var xan = x - 20; if (bnd) { path.lineTo(xan, y); List<Offset> points = senoidalGraph.pointsCurve( a, xan, x, y, valle, ); senoidalGraph.SetPathPoints(path, points, valle); } else { path.lineTo(x, y); } } else { path.lineTo(x, y); } xa = x; ya = y; } var yf = (party.length > 0 ? (he - (party[party.length - 1] * he)) + 5 : 0); path.lineTo(size.width, yf); path.lineTo(size.width, he); path.lineTo(0, he); path.close(); return path; } @override bool shouldReclip(CustomClipper<Path> oldClipper) => false; } class LinesGraph extends CustomPainter { List<double> party; SenoidalGraph senoidalGraph = SenoidalGraph(); LinesGraph({@required this.party}); @override void paint(Canvas canvas, Size size) { var partx = size.width / (party.length - 1); final Paint paint = new Paint(); paint.color = Colors.indigo[900]; paint.strokeWidth = 4; final Paint paint2 = new Paint(); paint2.color = Colors.indigo[900]; paint2.strokeWidth = 2; var he = size.height - 2; var xa = 0.0; var ya = (he - (party[0] * he)); for (var c = 0; c < (party.length - 1); c++) { var x = partx * c; var y = (he - (party[c] * he)) + 5; var xn = partx * c + 1; var yn = (he - (party[c + 1] * he)) + 5; var valle = (y > ya); var xan = x - 20; if (c < party.length && c > 0) { var yp = ((c + 1) < party.length) ? party[c + 1] : party[c]; var yph = (he - (yp * he)) + 5; var vA = [x, y]; var vB = [xa, ya]; var vC = [xn, yn]; var cAB = [(vB[0] - vA[0]), (vB[1] - vA[1])]; var cAC = [(vC[0] - vA[0]), (vC[1] - vA[1])]; var cBC = [(vC[0] - vB[0]), (vC[1] - vB[1])]; var mAB = math.sqrt(math.pow(cAB[0], 2) + math.pow(cAB[1], 2)); var mAC = math.sqrt(math.pow(cAC[0], 2) + math.pow(cAC[1], 2)); var mBC = math.sqrt(math.pow(cBC[0], 2) + math.pow(cBC[1], 2)); var escalarAB_AC = (cAB[0] * cAC[0]) + (cAB[1] * cAC[1]); var anguloA = math.acos(escalarAB_AC / (mAB * mAC)); var a = (1 - (anguloA / 128)) / (valle ? 20 : 10); var bnd = true; if (ya == y && yph == y) { bnd = false; } else if (ya < y && y < yph) { bnd = false; valle = true; } else if (ya > y && y > yph) { valle = true; bnd = false; } if(bnd) { canvas.drawLine(new Offset(xa, ya), new Offset(xan, y), paint); List<Offset> points = senoidalGraph.pointsCurve( a, xan, x, y, valle, ); canvas.drawPoints(PointMode.points, points, paint2); } else { canvas.drawLine(new Offset(xa, ya), new Offset(x, y), paint); } } else { canvas.drawLine(new Offset(xa, ya), new Offset(x, y), paint); } xa = x; ya = y; } var yf = (party.length > 0 ? (he - (party[party.length - 1] * he)) + 5 : 0); canvas.drawLine(new Offset(xa, ya), new Offset(size.width, yf), paint); canvas.restore(); } @override bool shouldRepaint(CustomPainter oldDelegate) { return false; } } class SenoidalGraph extends CustomPainter { @override void paint(Canvas canvas, Size size) { final Paint paint = new Paint(); paint.color = Colors.indigo[900]; paint.strokeWidth = 5; final Paint paint2 = new Paint(); paint2.color = Colors.greenAccent; paint2.strokeWidth = 5; List<Offset> points = pointsCurve(0.06, 20, size.width - 20, size.height / 2, false); canvas.drawPoints(PointMode.points, points, paint); } List<Offset> pointsCurve( double a, double tStart, double tEnd, double lineaBase, bool esValle) { List<Offset> points = List<Offset>(); double fase = 0; double f = 1; double w = 2 * math.pi * f; var up = !esValle; if (up == true) { tEnd *= 2; tStart *= 2; for (double t = 1; t >= 0.5; t -= 0.001) { double yr = a * math.sin(w * t + fase); double y = (lineaBase * yr) + lineaBase; double x = ((tEnd - tStart) * t); x -= (tEnd / 2); x += tStart; var offset = Offset(x, y); points.add(offset); } } else { tEnd *= 2; for (double t = 0; t <= 0.5; t += 0.001) { double yr = a * math.sin(w * t + fase); double y = (lineaBase * yr) + lineaBase; double x = ((tEnd - (tStart * 2)) * t); x += tStart; var offset = Offset(x, y); points.add(offset); } } return points; } void SetPathPoints(Path path, List<Offset> points, bool valle) { if (valle) { for (var c = 0; c < points.length; c++) { path.lineTo(points[c].dx, points[c].dy); } } else { for (var c = (points.length - 1); c >= 0; c--) { path.lineTo(points[c].dx, points[c].dy); } } } @override bool shouldRepaint(CustomPainter oldDelegate) { return false; } }
package readbiomed.annotators.dictionary.pathogens.PrPSc; import org.apache.uima.analysis_engine.AnalysisEngineDescription; import org.apache.uima.analysis_engine.AnalysisEngineProcessException; import org.apache.uima.conceptMapper.DictTerm; import org.apache.uima.fit.component.JCasAnnotator_ImplBase; import org.apache.uima.fit.factory.AnalysisEngineFactory; import org.apache.uima.fit.util.JCasUtil; import org.apache.uima.jcas.JCas; import org.apache.uima.resource.ResourceInitializationException; import org.cleartk.ne.type.NamedEntityMention; public class PrPScDictionaryAnnotator extends JCasAnnotator_ImplBase { private static boolean checkPrion(JCas jCas) { return JCasUtil.select(jCas, DictTerm.class).stream() .anyMatch(e -> e.getDictCanon().equalsIgnoreCase("prpsc-prion") || e.getDictCanon().equalsIgnoreCase("prpsc-prpsc")); } @Override public void process(JCas jCas) throws AnalysisEngineProcessException { if (!checkPrion(jCas)) return; JCasUtil.select(jCas, DictTerm.class).stream() .filter(e -> e.getDictCanon().startsWith("prpsc-") && !(e.getDictCanon().equalsIgnoreCase("prpsc-prion") || e.getDictCanon().equalsIgnoreCase("prpsc-prpsc"))) .forEach(e -> { NamedEntityMention n = new NamedEntityMention(jCas); n.setBegin(e.getBegin()); n.setEnd(e.getEnd()); n.setMentionId(e.getDictCanon()); n.setMentionType("pathogen"); n.addToIndexes(jCas); }); } public static AnalysisEngineDescription getDescription() throws ResourceInitializationException { return AnalysisEngineFactory.createEngineDescription(PrPScDictionaryAnnotator.class); } }
import 'package:weather_excercise/core/models/city_weather_model.dart'; import 'package:weather_excercise/utils/network_util.dart'; class OpenWeatherService { /// Get 5 day forecast by city name, with an interval of 3h static Future<List<CityWeatherModel>> get5DayWeatherForecast(String cityName) async { List<CityWeatherModel> responseList = []; var response = await NetworkUtil.get( url: Uri.https(BASE_URL, API+"/forecast", {"q": cityName, "appid": API_KEY}), ); if(response["list"] != null){ responseList = get5DayForecastFromList(CityWeatherModel.mapList(response["list"])); } return responseList; } ///Reduce the forecasts to one forecast for the 5 days static List<CityWeatherModel> get5DayForecastFromList(List<CityWeatherModel> list){ List<CityWeatherModel> responseList = []; responseList.add(list[0]); responseList.add(list.firstWhere((element) => element.dtTxt! == list[0].dtTxt!.add(Duration(days: 1)))); responseList.add(list.firstWhere((element) => element.dtTxt! == list[0].dtTxt!.add(Duration(days: 2)))); responseList.add(list.firstWhere((element) => element.dtTxt! == list[0].dtTxt!.add(Duration(days: 3)))); responseList.add(list[list.length-1]); return responseList; } }
## # # CU/Boulder IP host table # # for assistance, please contact trouble@boulder # # DO NOT EDIT THIS FILE -- IT IS NOT THE MASTER # It is a distribution copy built from addhost data # # Last built: Fri Jun 7 00:06:42 MDT 1991 # on: paleolithic.Colorado.EDU # ## 127.0.0.1 localhost loghost # manual 128.138.240.104 news news.colorado.edu # manual ## # # Administrative Affiliation: averynet # ## 128.138.201.11 martini martini.colorado.edu # sparc 2, ecee1-80 128.138.207.2 badger badger.colorado.edu # hp 9000/370, ecee 1-19 128.138.207.20 vole vole.colorado.edu # hp 9000/340, ecee1-19 128.138.207.21 weasel weasel.colorado.edu # hp 9000/320, ecee4-1 128.138.207.22 hedgehog hedgehog.colorado.edu # hp 9000/340, ecee0-1 128.138.207.23 teledu teledu.colorado.edu # HP 700/X xterm, ECEE 1-19 128.138.207.25 pika pika.colorado.edu # HP 700/X xterm, ee0-1 128.138.237.1 muskrat-d muskrat-d.colorado.edu # hp 9000/320, ecee1-19 128.138.237.20 microlab microlab.colorado.edu # hp 9000/350, ecee0-17 128.138.237.22 microc microc.colorado.edu # hp 9000/350, ecee0-17 128.138.237.23 micron micron.colorado.edu # hp 9000/350, ecee0-17 128.138.237.24 micronw micronw.colorado.edu # hp 9000/340, ecee0-17 128.138.237.25 microsw microsw.colorado.edu # hp 9000/340, ecee0-17 128.138.237.26 micros micros.colorado.edu # hp 9000/350, ecee0-17 128.138.237.27 complab complab.colorado.edu # hp 9000/350, ecee0-25 128.138.237.28 micrown micrown.colorado.edu # hp 9000/340, ecee0-17 128.138.237.29 microen microen.colorado.edu # hp 9000/340, ecee0-17 128.138.237.30 micropc1 micropc1.colorado.edu # pc-at, ecee0-17 128.138.237.31 micropc2 micropc2.colorado.edu # pc-at, ecee0-25 128.138.237.32 micropc3 micropc3.colorado.edu # pc-386, ecee0-25 128.138.237.90 harris harris.colorado.edu # ?, ecee0-20, harris 128.138.237.95 reserved reserved.colorado.edu # hp 9000, ? 128.138.240.97 muskrat-gw muskrat-gw.colorado.edu # hp 9000/320, ecee1-19 128.138.243.201 garfield garfield.colorado.edu # hp9000/3XX, ? 128.138.245.43 solitude solitude.colorado.edu # hp, ecche1-3 128.138.245.48 bigsky bigsky.colorado.edu # hp, ecche1-3 128.138.245.50 vail vail.colorado.edu # hp 9000/350, ecche1-3 128.138.245.51 eldora eldora.colorado.edu # Hp, ecche1-3 128.138.245.52 maryjane maryjane.colorado.edu # Hp, ecche1-3 128.138.245.53 placid placid.colorado.edu # Hp, ecche1-3 128.138.245.54 abasin abasin.colorado.edu # Hp, ecche1-3 128.138.245.55 deepcrik deepcrik.colorado.edu # Hp, ecche1-3 128.138.245.56 zermatt zermatt.colorado.edu # Hp, ecche1-3 128.138.245.57 whistler whistler.colorado.edu # Hp, ecche1-3 128.138.245.58 mammoth mammoth.colorado.edu # Hp, ecche1-3 128.138.245.59 tahoe tahoe.colorado.edu # Hp, ecche1-3 128.138.245.60 cad500 cad500.colorado.edu 128.138.245.71 snowbird snowbird.colorado.edu # hp320, ecche1-5 128.138.247.1 muskrat muskrat.colorado.edu # hp 9000/320, ecee1-19 128.138.247.10 henry henry.colorado.edu # hp 9000/320, ecee2-22 128.138.247.11 hertz hertz.colorado.edu # hp 9000/320, ecee2-22 128.138.247.12 ampere ampere.colorado.edu # hp 9000/320, ecee2-22 128.138.247.13 coulomb coulomb.colorado.edu # hp 9000/320, ecee2-22 128.138.247.14 faraday faraday.colorado.edu # hp 9000/320, ecee2-22 128.138.247.15 ohm ohm.colorado.edu # hp 9000/320, ecee2-22 128.138.247.16 watt watt.colorado.edu # hp 9000/320, ecee2-22 128.138.247.17 edison edison.colorado.edu # hp 9000/320, ecee2-22 128.138.247.20 volta volta.colorado.edu # hp 9000/370, ecee2-22 128.138.247.79 badger-gw badger-gw.colorado.edu # hp 9000/370, ecee 1-19 128.138.247.80 mimicad mimicad.colorado.edu # hp 9000/370, ecee1-80j 128.138.247.81 kamikaze kamikaze.colorado.edu # hp 9000/330, ecee1-80east 128.138.247.82 zombie zombie.colorado.edu # hp 9000/319, ecee1-80east 128.138.247.83 twister twister.colorado.edu # hp 9000/319, ecee1-80east 128.138.247.84 sangria sangria.colorado.edu # hp 9000/340, ecee1-80east 128.138.247.85 toreador toreador.colorado.edu # hp 9000/319, ecee1-80east 128.138.247.86 banshee banshee.colorado.edu # hp 9000/375, ecee1-80east 128.138.247.87 mimosa mimosa.colorado.edu # hp 9000/375, ecee1-80east 128.138.247.91 medac medac.colorado.edu # ibmpc, ecee0-23 128.138.247.92 dsp dsp.colorado.edu # hp 9000/320, dsp lab 128.138.247.93 saltydog saltydog.colorado.edu # hp 9000/320, ecee2-15 128.138.247.94 gimlet gimlet.colorado.edu # hp 9000/320, ecee2-15 128.138.247.97 image image.colorado.edu # hp vectra, dsp lab 128.138.247.98 prony prony.colorado.edu # hp 9000/425t, dsp lab ## # # Administrative Affiliation: ccar # ## 128.138.201.7 valdemar valdemar.colorado.edu # sun4/65, ae 1-75 128.138.215.1 alchemist alchemist.colorado.edu # sun3/280, ccar 128.138.215.2 earth earth.colorado.edu # sun4/260, ccar 128.138.215.3 wind wind.colorado.edu # sun3/60, ccar 128.138.215.4 air air.colorado.edu # sun3/50, ccar 128.138.215.5 fire fire.colorado.edu # sun3/50, ccar 128.138.215.6 dirt dirt.colorado.edu # att/3b2, ccar 128.138.215.7 debris debris.colorado.edu # sun/SPARCstation, ccar 128.138.215.9 precip precip.colorado.edu # IBM PS/2, ccar 128.138.215.10 harrier harrier.colorado.edu # sunSLC, ccar 128.138.215.11 rain rain.colorado.edu # sun3/60, ccar 128.138.238.51 alchemist-gw alchemist-gw.colorado.edu # sun3/280, ccar ## # # Administrative Affiliation: ccarimag # ## 128.138.238.112 gandalf-gw gandalf-gw.colorado.edu # sun3/260, ecnt2-5 128.138.253.1 gandalf gandalf.colorado.edu # sun3/260, ecnt2-5 128.138.253.2 kurgan kurgan.colorado.edu # ds5000/200, ECNT2-5 128.138.253.3 frodo frodo.colorado.edu frodo1 # ds3100, ECNT2-5 128.138.253.4 elrond elrond.colorado.edu # vs3200, ecnt2-5 128.138.253.5 thorin thorin.colorado.edu # mac iix, ecnt2-5 128.138.253.6 strider strider.colorado.edu # mac iix, ecnt2-5 128.138.253.8 samwise samwise.colorado.edu # ds3100, ecnt2-5 128.138.253.9 pippin pippin.colorado.edu # ds3100, ecnt2-5 128.138.253.10 kurgan-tn kurgan-tn.colorado.edu # ds5000/200, ECNT2-5 128.138.253.11 shelob shelob.colorado.edu # SGI 4D/340VGX, ME 2-6 128.138.253.12 bilbo bilbo.colorado.edu bilbo1 # ds5000, ecnt2-5 128.138.253.14 mccloud mccloud.colorado.edu # ds3100, ecnt2-5 128.138.253.15 gatorbox01144 gatorbox01144.colorado.edu # Gateway for Macs, ecnt2-5 128.138.253.16 gollum gollum.colorado.edu # IBM PC Model 70, ecnt2-5 128.138.253.17 fangorn fangorn.colorado.edu # vs3100, ecnt2-5 128.138.253.50 gloin gloin.colorado.edu # MacIIci, ecnt2-5 128.138.253.51 balin balin.colorado.edu # MacIIci, ecnt2-5 128.138.253.52 dwalin dwalin.colorado.edu # MacIIci, ecnt2-8 128.138.253.53 bombur bombur.colorado.edu # MacIIci, ecnt2-9 128.138.253.54 emery emery.colorado.edu # MacII, ecnt2-9 128.138.253.55 galadriel galadriel.colorado.edu # mac iix, ecnt2-9 128.138.253.56 orc orc.colorado.edu # mac iifx, ecnt2-5 128.138.253.100 onizuka onizuka.colorado.edu # vs3100/40, AE 1-20 128.138.253.101 carpenter carpenter.colorado.edu # vs3100, AE 1-20 128.138.253.102 brand brand.colorado.edu # vs3100, AE 1-20 128.138.253.103 acton acton.colorado.edu # vs2000, AE 1-20 128.138.253.104 voss voss.colorado.edu # vs2000, AE 1-20 128.138.253.105 hieb hieb.colorado.edu # vs2000, AE 1-20 128.138.253.106 ivins ivins.colorado.edu # vs2000, AE 1-20 128.138.253.107 lounge lounge.colorado.edu # vs2000, AE 1-20 128.138.253.108 roosa roosa.colorado.edu # vs2000, AE 1-20 128.138.253.109 swigert swigert.colorado.edu # vs2000, AE 1-20 128.138.253.110 nelson nelson.colorado.edu # vs3100/30, AE 1-20 ## # # Administrative Affiliation: ccn # ## 128.138.222.100 ngdc1 ngdc1.colorado.edu # VAX 780, RL-3 128.138.222.110 ngdc2 ngdc2.colorado.edu # VAX 780, RL-3 ## # # Administrative Affiliation: chemistr # ## 128.138.119.1 challenger challenger.colorado.edu # sun4/280, chem rm 260 128.138.119.2 vxr5000 vxr5000.colorado.edu # sun3/60, chem rm 2 128.138.119.3 vxr300 vxr300.colorado.edu # sun3/110, chem rm 2 128.138.119.4 discovery discovery.colorado.edu # sun3/50, chem rm 360 128.138.134.6 challenger-gw challenger-gw.colorado.edu # sun4/280, chem rm 260 ## # # Administrative Affiliation: clipr-hp # ## 128.138.223.1 speech3 speech3.colorado.edu # hp bobcat, bradshaw 128.138.223.2 gabor gabor.colorado.edu 128.138.223.4 felix felix.colorado.edu # hp 9000/350, ? 128.138.223.5 rtlab1 rtlab1.colorado.edu # ibm/xt, ? 128.138.223.6 rtlab2 rtlab2.colorado.edu # ibm/xt, ? 128.138.223.7 mikesch mikesch.colorado.edu # hp bobcat, Muen D260F 128.138.223.8 speech4 speech4.colorado.edu # hp bobcat, bradshaw 128.138.223.9 wildthng wildthng.colorado.edu # hp bobcat, doane 128.138.223.10 kilgore kilgore.colorado.edu # hp bobcat, pennington 128.138.223.12 speech5 speech5.colorado.edu # mac ii, bradshaw 128.138.223.13 blab blab.colorado.edu # ibm/pc, bourne lab 128.138.223.14 rumpus rumpus.colorado.edu # hp-bobcat, muen E213B 128.138.223.15 psymac01 psymac01.colorado.edu # Apple Mac II, Muen E330 128.138.223.16 clipr_pc2 clipr_pc2.colorado.edu # IBM PC 386, Muen E330 128.138.223.17 triton triton.colorado.edu # hp bobcat, roushey 128.138.223.18 goms goms.colorado.edu # Mac II, Muenzinger 128.138.238.32 speech3-gw speech3-gw.colorado.edu # hp bobcat, bradshaw ## # # Administrative Affiliation: cns # ## 128.138.129.1 cns-gw-cns cns-gw-cns.colorado.edu # Cisco CGS, COMP 221 128.138.131.3 umshds umshds.colorado.edu # McData-gw, UMS 128.138.133.2 cycles cycles.colorado.edu # ?, Gamow F-317 128.138.133.3 foton foton.colorado.edu # DS3100, Duane F321 128.138.133.5 oasis oasis.colorado.edu # ?, Duane F-321 128.138.134.7 scatter scatter.colorado.edu # SGI W-4D20G, Chem 260 128.138.134.8 spin spin.colorado.edu # SGI W-4D25TG, Chem 260 128.138.134.9 stan stan.colorado.edu # S.G. Pers. Iris, Chem 253 128.138.134.21 eefus eefus.colorado.edu # RS6000, Chem 59 128.138.134.22 munro munro.colorado.edu # ?, Chem 128.138.134.30 lord lord.colorado.edu # Iris W4D25, Chem 304 128.138.134.31 serf1 serf1.colorado.edu # Iris W4D25S, Chem 304 128.138.134.32 serf2 serf2.colorado.edu # Iris W4D25S, Chem 304 128.138.180.1 haggis-gw haggis-gw.colorado.edu # sun sparc 1+, degrand 128.138.180.3 gopika gopika.colorado.edu # NeXT, Duane 325 128.138.188.17 charming charming.colorado.edu # ds3100, Duane 128.138.191.1 lemond-gw lemond-gw.colorado.edu # Sun470, Duane 128.138.191.2 hinault hinault.colorado.edu # SLC, Duane C223 128.138.209.1 anubis-chan anubis-chan.colorado.edu # es-1 channel, ? 128.138.209.2 anubis-console-chan anubis-console-chan.colorado.edu # sun, ? 128.138.213.2 naiad naiad.colorado.edu # sun3/60, ward 128.138.213.3 escher escher.colorado.edu # sun3/60c, allen 128.138.213.5 mastiff mastiff.colorado.edu # sparc 1+, cns, doug kerry 128.138.213.6 godel godel.colorado.edu # Sun 3/60C, ? 128.138.213.7 dozer dozer.colorado.edu # sun4, ward 128.138.213.8 attest attest.colorado.edu # AT&T 6386E/33, Comp 221 128.138.213.9 grayfox grayfox.colorado.edu # Mac IIcx, cns, doug kerry 128.138.213.100 q-bert q-bert.colorado.edu # next, giltner, cc 128.138.213.101 parts parts.colorado.edu # next, giltner, cc 128.138.213.254 westnet-cns westnet-cns.colorado.edu # cisco AGS, Comp 221 128.138.214.1 gaea gaea.colorado.edu # ISI, RL2 128.138.214.2 star star.colorado.edu # stellar, ? 128.138.214.3 eldo eldo.colorado.edu # sun3/50, ? 128.138.214.4 linx linx.colorado.edu # x-win station, ? 128.138.214.5 eldojr eldojr.colorado.edu # SUN sparc 1, ? 128.138.214.6 linxjr linxjr.colorado.edu # x-win station, ? 128.138.214.7 slick slick.colorado.edu # SLC, ? 128.138.214.8 slack slack.colorado.edu # SLC, ? 128.138.214.9 slice slice.colorado.edu # SLC, ? 128.138.218.1 noaacrd noaacrd.colorado.edu # sun4/280, RL2-266 128.138.221.1 erde-gw erde-gw.colorado.edu # sun3/160, RL2 161 watanab 128.138.221.2 carib carib.colorado.edu # Sun3/50, RL2 161 watanabe 128.138.221.3 cocos cocos.colorado.edu # Sun3/110, RL2 161 watanab 128.138.221.4 kula kula.colorado.edu # Sun3/50, RL2 161 watanabe 128.138.221.5 nazca nazca.colorado.edu # Sun3/50, RL2 161 watanabe 128.138.221.6 fuca fuca.colorado.edu # 386 PC, RL2 161 watanabe 128.138.221.7 pacific pacific.colorado.edu # Sun4/40C, RL2 watanbe 128.138.221.8 scotia scotia.colorado.edu # Solbourne S5, RL2 161 wat 128.138.221.9 lunch lunch.colorado.edu # Sun4/40GX, RL2 161 watana 128.138.221.10 kane kane.colorado.edu # Sun4/20, RL2 161 watanabe 128.138.221.11 china china.colorado.edu # Sun4/40GX, RL2 114 watana 128.138.221.12 paper paper.colorado.edu # Sun4/40, RL2 161 watanabe 128.138.221.13 home home.colorado.edu # Sun4/40, RL2 161 watanabe 128.138.221.14 caroline caroline.colorado.edu # 386 PC, RL2 130, watanabe 128.138.221.145 xtasy xtasy.colorado.edu # ncd17c xterm, RL2 161 wat 128.138.221.200 ali-baba ali-baba.colorado.edu # 386 PC, RL2 119 128.138.238.3 mcdb-iris mcdb-iris.colorado.edu 128.138.238.4 clipr_pc1 clipr_pc1.colorado.edu # PC, MUEN E317 128.138.238.5 clipr_gb1 clipr_gb1.colorado.edu # GatorBox, MUEN E331 128.138.238.6 ibgx01 ibgx01.colorado.edu # IBM X120, IBG 201 128.138.238.7 ics_simlab_4 ics_simlab_4.colorado.edu # ibmpc, psych,bradshaw 128.138.238.8 elegans elegans.colorado.edu # DS2100, IBG 207 128.138.238.9 speech1 speech1.colorado.edu # uvax, psych,bradshaw 128.138.238.10 speech2 speech2.colorado.edu # uvax, psych,bradshaw 128.138.238.12 koenig koenig.colorado.edu # Zenith-2325, koenig 128.138.238.14 wild wild.colorado.edu # sparc 1+, Jila A706 128.138.238.16 adam adam.colorado.edu # xerox, dandylion,clipr 128.138.238.19 icarus icarus.colorado.edu # pyr90x, duane g135 128.138.238.23 kaos kaos.colorado.edu # VAX-8800, Duane C219 128.138.238.24 fluidc fluidc.colorado.edu # IBM-6000, Duane 128.138.238.25 merckx merckx.colorado.edu # SLC, Duane 128.138.238.26 cozimo cozimo.colorado.edu # SLC, Duane F911 128.138.238.27 willard willard.colorado.edu # Zenith, Willard 128.138.238.30 stratus stratus.colorado.edu # SGI 4D/35 PI, RL2-216 128.138.238.36 westnet westnet.colorado.edu cu-gw cu-westnet-gw # cisco AGS, Comp 221 128.138.238.37 ajsh ajsh.colorado.edu # sun3, jila, a. hamilton 128.138.238.43 frehlich frehlich.colorado.edu # NCD19, RL2 128.138.238.44 xistential xistential.colorado.edu # NCD19, Cires 128.138.238.45 gamowgator1 gamowgator1.colorado.edu # GatorBox, Gamow F811 128.138.238.47 businessw businessw.colorado.edu. # IBM PC/AT, Business RM 11 128.138.238.48 businessgator businessgator.colorado.edu # GatorBox, ? 128.138.238.49 chemistrygator chemistrygator.colorado.edu # GatorBox, ? 128.138.238.50 terra terra.colorado.edu cires # 4/360, cires 240 128.138.238.52 erde erde.colorado.edu unavco # sun3/160, RL2 161 watanab 128.138.238.53 khonshu khonshu.colorado.edu # IPC, RL2-269 128.138.238.54 creep creep.colorado.edu # IPC, Ekeley 254 128.138.238.54 cirespyr cirespyr.colorado.edu # Pyr 90x, cires 238 128.138.238.55 quake quake.colorado.edu # sun3/50, cires 250d, kubi 128.138.238.56 stratocu stratocu.colorado.edu # pc-386, rl2-203, acd 128.138.238.57 educationgator educationgator.colorado.edu # GatorBox, ? 128.138.238.59 genie genie.colorado.edu # IBM RS6000, IBG 207 128.138.238.60 econ-gw econ-gw.colorado.edu # PC, Econ IT 128.138.238.61 clipr_gb2 clipr_gb2.colorado.edu # GatorBox, MUEN D342 128.138.238.62 ibgx02 ibgx02.colorado.edu # IBX-X120, IBG 112 128.138.238.64 cr2-28 cr2-28.colorado.edu # various, ECCR2-28 128.138.238.65 tesseract tesseract.colorado.edu # Next, Duane G230 128.138.238.66 madmax madmax.colorado.edu # RS6000, Duane G123 128.138.238.67 haggis haggis.colorado.edu # sun sparc 1+, degrand 128.138.238.68 jimwilson jimwilson.colorado.edu # Zeos-386, IBG 128.138.238.69 psyche psyche.colorado.edu # MacIIfx, Duane D133 128.138.238.70 astro astro.colorado.edu # 3b2, nt3-x 128.138.238.72 tagg-gw tagg-gw.colorado.edu # This appears to be gaea. 128.138.238.73 lust lust.colorado.edu # iris3130, me2-3, c. dough 128.138.238.74 xbeam xbeam.colorado.edu # Intel 80386SX, JILA B114 128.138.238.75 taurus taurus.colorado.edu # vs-II, Duane C324 128.138.238.76 cygnus cygnus.colorado.edu # vs-II, Duane C326 128.138.238.78 nepal nepal.colorado.edu # 3/50, Ekeley E250 128.138.238.79 talus talus.colorado.edu # iris, apas, mcginley 128.138.238.80 achates achates.colorado.edu # 3b2/400, dreitlein 128.138.238.81 aurinko aurinko.colorado.edu # sun, degrand 128.138.238.82 cass157 cass157.colorado.edu # SS2, Stadium 124B 128.138.238.83 jil690 jil690.colorado.edu # Xyplex, Duane 128.138.238.84 cires-at-gw cires-at-gw.colorado.edu # FastPath, CIRES 128.138.238.85 yonder yonder.colorado.edu # DS 2100, Duane C349 128.138.238.87 runt runt.colorado.edu # uVAX-II, Muen E331 128.138.238.89 sertan sertan.colorado.edu # DS5000/200, Duane D219 128.138.238.90 slip slip.colorado.edu # IPC, Ekeley 254 128.138.238.91 ums970 ums970.colorado.edu # Xyplex, Regent 128.138.238.93 lyra lyra.colorado.edu # Sun 3/180, SBO garmany/gl 128.138.238.95 daedalus daedalus.colorado.edu # sun3, apas 128.138.238.99 coleridge coleridge.colorado.edu # Sun 3/110, Duane E0037 128.138.238.101 prgator prgator.colorado.edu # GatorBox, Willard 128.138.238.102 byron byron.colorado.edu # Sun 3/180, Duane E0037 128.138.238.103 shelley shelley.colorado.edu # SGI 4d25TG, Duane E0037 128.138.238.104 noaacrd-gw noaacrd-gw.colorado.edu # sun4/280, RL2-266 128.138.238.105 longo longo.colorado.edu # SS2, Duane F721 128.138.238.107 keats keats.colorado.edu # SGI 4d25TG, Duane E0037 128.138.238.108 agena agena.colorado.edu # IBM AT, STAD 128.138.238.110 india india.colorado.edu # sun3/50, DPHY C127 128.138.238.111 reading reading.colorado.edu # Compaq386, IBG107 128.138.238.113 rgnt-pc-gw rgnt-pc-gw.colorado.edu # IBM PC, Regent Phone Clos 128.138.238.114 ums987 ums987.colorado.edu # Xyplex, 4780 Pearl 128.138.238.115 riskmgt riskmgt.colorado.edu # RS6000, 4780 Pearl 128.138.238.116 jilaz2 jilaz2.colorado.edu # vt1200, JILA S168 128.138.238.117 sam sam.colorado.edu # hp9k, clipr, roushey 128.138.238.122 ascanius ascanius.colorado.edu # 3b2, dreitlein, phys 128.138.238.123 cosmo cosmo.colorado.edu # 3b2, rosborough, ae1 128.138.238.124 bourne-lab bourne-lab.colorado.edu # z286, roberts, meun 128.138.238.125 clipr_ts3 clipr_ts3.colorado.edu # Xyplex 1500, Muen E331 128.138.238.127 spike spike.colorado.edu # pyr90x, mcdb, hartzell 128.138.238.128 clipr_ts2 clipr_ts2.colorado.edu # Xyplex 1500, Muen E331 128.138.238.129 norlingator norlingator.colorado.edu # GatorBox, Norlin 128.138.238.130 clipr_ts1 clipr_ts1.colorado.edu # Xyplex 1500, Muen E331 128.138.238.135 ariel ariel.colorado.edu # DS 5000/200, LASP 128.138.238.136 shapes shapes.colorado.edu # sg3130, landis ekeley m30 128.138.238.137 snow-gw snow-gw.colorado.edu # cisco IGS, RL2-15 128.138.238.138 aladdin aladdin.colorado.edu # PC-386, RL2-119 128.138.238.139 mensae mensae.colorado.edu # 4/470, Stad 120c 128.138.238.140 casa casa.colorado.edu # vs2000, ferguson, phys 128.138.238.143 restest01 restest01.colorado.edu # PC/AT, Willard 128.138.238.144 jilapz jilapz.colorado.edu # 386 laptop, JILA S168 128.138.238.148 nsidcx2 nsidcx2.colorado.edu # VT1200, rl2-268 128.138.238.149 morgul morgul.colorado.edu # sun3/60, cires 337, mccal 128.138.238.153 cookie cookie.colorado.edu # sun3/80, feehan, ecst0-3 128.138.238.155 neumann neumann.colorado.edu # ds3100, biringen, ecme2-3 128.138.238.156 dirichlet dirichlet.colorado.edu # ds3100, biringen, ecme2-3 128.138.238.158 frostbite frostbite.colorado.edu # sparc, troisi, rl2-214 128.138.238.160 nsidcx1 nsidcx1.colorado.edu # VT1200, rl2-268 128.138.238.161 stadiumgator stadiumgator.colorado.edu # GatorBox, STAD 128.138.238.164 bulle bulle.colorado.edu # pclim286,, wyss, cires 128.138.238.165 bbb bbb.colorado.edu # Sun 3/50, CIRES 341 128.138.238.167 raoul raoul.colorado.edu # DS 3100, NPL 130 128.138.238.168 isidis isidis.colorado.edu # DS 5000, Duane D215 128.138.238.169 sarada sarada.colorado.edu # RS6000, Ekeley 201 128.138.238.171 syrtis syrtis.colorado.edu # DS 5000, Duane E317 128.138.238.172 learning learning.colorado.edu # Compaq 286, IBG 107 128.138.238.173 dynamo dynamo.colorado.edu # Mac II, Duane 128.138.238.174 jilat1 jilat1.colorado.edu # xyplex1500, oneil, jila 128.138.238.175 bismark bismark.colorado.edu # sun3/60, mccallum, cires 128.138.238.177 regentgator regentgator.colorado.edu # GatorBox, Regent 128.138.238.179 godot godot.colorado.edu # IMB RS6000, Nuclear Physi 128.138.238.180 pcroute178 pcroute178.colorado.edu # IMB AT, Business Tel Clos 128.138.238.181 pcroute177 pcroute177.colorado.edu # IMB AT, ECCR2-21 (NAC) 128.138.238.189 lynx lynx.colorado.edu # vax8350, Duane D322 128.138.238.192 jello jello.colorado.edu # PC-386, JILA S275 128.138.238.194 risque risque.colorado.edu # DEC VT1200, JILA S279 128.138.238.196 kaveri kaveri.colorado.edu # ds3100, ecme 2-4e 128.138.238.198 ozzie ozzie.colorado.edu # IBM RS6000, Duane F631 128.138.238.199 apg-sparc-1 apg-sparc-1.colorado.edu # Sparc 1, Jila S140 128.138.238.201 snowy snowy.colorado.edu # sun 4/40, RL-1,116 128.138.238.203 jil680 jil680.colorado.edu # Xyplex-ts, Jila 128.138.238.204 jil681 jil681.colorado.edu # Xyplex-ts, Jila 128.138.238.205 jil682 jil682.colorado.edu # Xyplex-ts, Jila 128.138.238.206 jil683 jil683.colorado.edu # Xyplex-ts, Jila 128.138.238.207 jil684 jil684.colorado.edu # Xyplex-ts, Jila 128.138.238.208 jil685 jil685.colorado.edu # Xyplex-ts, Jila 128.138.238.209 jil686 jil686.colorado.edu # Xyplex-ts, Jila 128.138.238.210 jil687 jil687.colorado.edu # Xyplex-ts, Jila 128.138.238.211 jil688 jil688.colorado.edu # Xyplex-ts, Jila 128.138.238.212 jil689 jil689.colorado.edu # Xyplex-ts, Jila 128.138.238.213 mira mira.colorado.edu # PC-286, Stadium 117 128.138.238.216 armorygator armorygator.colorado.edu # GatorBox, ? 128.138.238.218 seaice seaice.colorado.edu # Sun IPC, Cires 205 128.138.238.223 zodiac zodiac.colorado.edu # cluster alias, Duane D322 128.138.238.225 hyades hyades.colorado.edu # VAXserver 3500, Duane C32 128.138.238.244 chem-gw chem-gw.colorado.edu chemgw # cisco IGS, Econ 15A 128.138.238.245 langlabgator langlabgator.colorado.edu # GatorBox, ? 128.138.238.248 helios helios.colorado.edu # Sparc 1+, Stad124 128.138.238.250 lemond lemond.colorado.edu # Sun470, Duane 128.138.238.251 xquisite xquisite.colorado.edu # NCD19, Cires 128.138.238.252 ciresannex ciresannex.colorado.edu # AnnexII, Cires 128.138.238.253 ciresgator ciresgator.colorado.edu # Cayman, Cires 128.138.238.254 cns-gw cns-gw.colorado.edu cnsgw # Cisco CGS, COMP 221 138.86.1.3 slinky slinky.colorado.edu unc # ?, Univ of Northern CO 192.70.192.2 gwhs gwhs.colorado.edu # ?, George Washington HS ## # # Administrative Affiliation: cns129 # ## 128.138.129.2 spot spot.colorado.edu directory culine # DS 5000, COMP 221 128.138.129.3 fang fang.colorado.edu # uvax, Comp 221 128.138.129.4 tramp tramp.colorado.edu # seq balance 21k, ? 128.138.129.5 elmerfudd elmerfudd.colorado.edu # MacII, cns212I 128.138.129.6 spleen spleen.colorado.edu # MAC-II, Duane 128.138.129.7 acspc1 acspc1.colorado.edu # PC w/3Com board, Comp 212 128.138.129.8 rover rover.colorado.edu # vs2000, Duane C123 128.138.129.9 vaxf vaxf.colorado.edu # uVAX-II, Comp 221 128.138.129.10 bronze bronze.colorado.edu cubldr # vax8850, Comp 221 128.138.129.13 cnsciscots1 cnsciscots1.colorado.edu # Cisco, ? 128.138.129.14 scans scans.colorado.edu # vs2000, Comp 219 128.138.129.15 ucans ucans.colorado.edu # vs2000, ? 128.138.129.16 crunch crunch.colorado.edu # vs3100, Comp 219 128.138.129.17 ops-net-stat ops-net-stat.colorado.edu # ibm/pc, ? 128.138.129.18 pogo pogo.colorado.edu # vs3100, Comp 219 128.138.129.19 fido fido.colorado.edu # vs3100, Comp 219 128.138.129.20 cabal cabal.colorado.edu # sun3/260, cns 128.138.129.21 rastro rastro.colorado.edu # vs3100, Comp 221 128.138.129.22 sparky sparky.colorado.edu # VS3100, CC 219A 128.138.129.23 cnskbox cnskbox.colorado.edu # kinetics, fp4 cns dcmwood 128.138.129.24 pandora pandora.colorado.edu # ds3100, buster, duane 128.138.129.25 cygnet cygnet.colorado.edu # ds3100, giltner 128.138.129.26 anubis-console anubis-console.colorado.edu # sun3/60, mcbryan 128.138.129.27 fenris fenris.colorado.edu # myrias sps-2, mcbryan 128.138.129.28 gold gold.colorado.edu # vax-8550, Comp 221 128.138.129.29 silver silver.colorado.edu # vax-6320, Comp 221 128.138.129.30 cufund cufund.colorado.edu # vax-6210, Comp 221 128.138.129.31 nutt nutt.colorado.edu # MAC-SE, CC201 128.138.129.32 tcans tcans.colorado.edu # VT1000, CC 219 128.138.129.33 azure azure.colorado.edu # PC AT, cns 128.138.129.34 hobbes hobbes.colorado.edu # vs3100, matthies 128.138.129.35 yogi yogi.colorado.edu # x-term, duane, buster 128.138.129.36 booboo booboo.colorado.edu # mipsx-term, duane, buster 128.138.129.37 auxbox auxbox.colorado.edu # MAC-II, CC212i 128.138.129.38 boltupright boltupright.colorado.edu # Mac-II, cns 128.138.129.39 django django.colorado.edu # VS2000, cns 128.138.129.40 dosip dosip.colorado.edu # Zenith386, cns 128.138.129.41 cnsgator1 cnsgator1.colorado.edu # gatorbox, cns 128.138.129.42 bimmer bimmer.colorado.edu # IBM, ? 128.138.129.43 farand farand.colorado.edu # uVAX-II, CC219 128.138.129.44 cowabunga cowabunga.colorado.edu # IBM AT, CC219 128.138.129.45 wicked wicked.colorado.edu # Mac-II, CC137 128.138.129.46 scooterdoo scooterdoo.colorado.edu # MacIIx, CNS 128.138.129.47 cocreator cocreator.colorado.edu # MacIIcx, CNS 128.138.129.49 pcroute183 pcroute183.colorado.edu # ?, COMP 128.138.129.50 beezus beezus.colorado.edu # VS2000, Duane 128.138.129.51 cclamp cclamp.colorado.edu # ?, Duane 128.138.129.52 drill drill.colorado.edu # VS3100, Duane 128.138.129.53 hammer hammer.colorado.edu # ?, Duane 128.138.129.54 hexkey hexkey.colorado.edu # ?, Duane 128.138.129.55 jigsaw jigsaw.colorado.edu # VS3100, Duane 128.138.129.56 lathe lathe.colorado.edu # ?, Duane 128.138.129.57 pliers pliers.colorado.edu # ?, Duane 128.138.129.58 prybar prybar.colorado.edu # ?, Duane 128.138.129.59 rasp rasp.colorado.edu # ?, Duane 128.138.129.60 sander sander.colorado.edu # ?, Duane 128.138.129.61 scribe scribe.colorado.edu # VS2000, Duane 128.138.129.62 wrench wrench.colorado.edu # VS3100, Duane C119 128.138.129.63 tonto tonto.colorado.edu # vs3100, Comp 219 128.138.129.64 tools tools.colorado.edu # VS2000, Duane 128.138.129.65 applesupport applesupport.colorado.edu # Mac, Comp 221 128.138.129.66 fanatic fanatic.colorado.edu # Zenith 386, Comp 212E 128.138.129.67 asg-gw asg-gw.colorado.edu # EtherRoute, Comp 137 128.138.129.68 pathworksgator pathworksgator.colorado.edu # Cayman GatorBox, Comp 220 128.138.129.69 scooby scooby.colorado.edu # Zenith 386, Comp 212K 128.138.129.70 crab crab.colorado.edu # Apple Mac II FX, CC 219 128.138.129.71 gems gems.colorado.edu # uVAX 3500, Comp 221 128.138.129.72 mongrel mongrel.colorado.edu # NeXT Cube, Duane C123 128.138.129.73 turbo-jesus turbo-jesus.colorado.edu # Apple Mac II, CNS 212C 128.138.129.74 cyrano cyrano.colorado.edu # PC 286, CNS 219 128.138.129.75 liver liver.colorado.edu # Apple Mac II, Duane C-119 128.138.129.76 lsmtmp lsmtmp.colorado.edu # ?, cc 128.138.129.77 cns928 cns928.colorado.edu # Xyplex, Comp 221 128.138.129.78 cns929 cns929.colorado.edu # Xyplex, Comp 221 128.138.129.79 cns930 cns930.colorado.edu # Xyplex, Comp 221 128.138.129.80 cns931 cns931.colorado.edu # Xyplex, Comp 221 128.138.213.1 cabal-gw cabal-gw.colorado.edu # sun3/260, cns ## # # Administrative Affiliation: cnsjones # ## 128.138.208.1 ceaex ceaex.colorado.edu # ?, CE1-7 128.138.208.2 ceae2 ceae2.colorado.edu # ?, CE1-7 128.138.208.3 ceae3 ceae3.colorado.edu # ?, CE1-7 128.138.208.4 ceae4 ceae4.colorado.edu # ?, CE1-7 128.138.208.5 ceae6 ceae6.colorado.edu # ?, CE1-7 128.138.208.5 ceae5 ceae5.colorado.edu # ?, CE1-7 128.138.220.1 chevy chevy.colorado.edu # dsp90, ce1-7 128.138.220.3 handel handel.colorado.edu # dn3000c, ce1-7 128.138.220.4 verdi verdi.colorado.edu # dn550, ce1-7 128.138.220.5 trinity trinity.colorado.edu # dn330, ce1-7 128.138.220.7 vivaldi vivaldi.colorado.edu # dn3000c, ce1-7 128.138.220.8 wagner wagner.colorado.edu # dn3000c, ce1-7 128.138.220.9 fenacs fenacs.colorado.edu # dn4500, ce1-7 128.138.220.10 corelli corelli.colorado.edu # dn3500, ce1-7 128.138.220.11 palestrina palestrina.colorado.edu # dn3500, ce1-7 128.138.228.1 bechtel bechtel.colorado.edu # sun4/470, ecce1-15 128.138.228.11 irons irons.colorado.edu # sun slc, ce 1-7 128.138.228.12 inglis inglis.colorado.edu # sun slc saouma, ? 128.138.228.51 albinoni albinoni.colorado.edu # sun ss1+, CE1-7 128.138.228.52 bizet bizet.colorado.edu # sun ss1+, ce 1-7 128.138.228.53 bernstein bernstein.colorado.edu # sun ss1+, ce 1-7 128.138.228.54 bach bach.colorado.edu # sun ss1+, ce 1-7 128.138.228.55 brahms brahms.colorado.edu # sun ss1+, ce 1-7 128.138.228.61 cage cage.colorado.edu # sun ipc , ce1-7 128.138.228.71 chopin chopin.colorado.edu # sun ipc , ce1-7 128.138.228.72 copland copland.colorado.edu # sun ipc , ce1-7 128.138.228.73 dvorak dvorak.colorado.edu # sun ipc , ce1-7 128.138.228.74 chavez chavez.colorado.edu # sun ipc , ce1-7 128.138.228.75 debussy debussy.colorado.edu # sun ipc , ce1-7 128.138.228.76 griffith griffith.colorado.edu # sun ipc , ce1-7 128.138.228.77 euler euler.colorado.edu # sun ipc, ce 1-7 128.138.228.78 darcy darcy.colorado.edu # sun ipc, ce1-7 128.138.228.79 newmark newmark.colorado.edu # sun ipc, ce1-7 128.138.228.80 karman karman.colorado.edu # sun ipc, ce1-7 128.138.228.81 sverdrup sverdrup.colorado.edu # sun ipc, ce1-7 128.138.228.82 enesco enesco.colorado.edu # sun ss1+, ce 1-7 128.138.228.83 falla falla.colorado.edu # sun ss1+, ce 1-7 128.138.228.84 faure faure.colorado.edu # sun ss1+, ce 1-7 128.138.228.85 foss foss.colorado.edu # sun ss1+, ce 1-7 128.138.228.86 haydn haydn.colorado.edu # sun ss1+, ce 1-7 128.138.238.20 pprince-gw pprince-gw.colorado.edu # sun3/160, duane e126 128.138.238.21 eprince-gw eprince-gw.colorado.edu # sun3/160c, ecche1-1 128.138.238.38 apollo apollo.colorado.edu # domain dsp90, ce1-7 128.138.238.126 civil civil.colorado.edu # dn3500, ce1-7 128.138.238.217 bechtel-gw bechtel-gw.colorado.edu # sun4/470, ecce1-15 128.138.251.1 eprince eprince.colorado.edu # sun3/160c, ecche1-1 128.138.251.3 littleprince littleprince.colorado.edu # sun3/50, ecche1-1 128.138.251.4 blueprince blueprince.colorado.edu # sun3/50, ecche1-1 128.138.251.101 magellan magellan.colorado.edu # sun3/280, ecche1-1 128.138.251.121 kepler kepler.colorado.edu # sun3/60, ecche1-1 128.138.251.122 bessel bessel.colorado.edu # sun3/60, ecche1-1 128.138.251.123 boyle boyle.colorado.edu # sun3/60, ecche1-1 128.138.251.131 kelvin kelvin.colorado.edu # sun3/50, ecche1-1 128.138.251.132 maxwell maxwell.colorado.edu # sun3/50, ecche1-1 128.138.251.133 reynolds reynolds.colorado.edu # sun3/50, ecche1-1 128.138.251.134 rayleigh rayleigh.colorado.edu # sun3/50, ecche1-1 128.138.251.135 prandtl prandtl.colorado.edu # sun3/50, ecche1-1 128.138.251.136 hooke hooke.colorado.edu # sun3/50, ecche1-1 128.138.251.137 cotes cotes.colorado.edu # sun4/60, ChemE 1-1 128.138.251.138 escalante escalante.colorado.edu # sun4/60, ChemE 1-1 128.138.251.139 lewis+clark lewis+clark.colorado.edu # sun4/60, ChemE 1-1 128.138.252.1 pprince pprince.colorado.edu # sun3/160, duane e126 128.138.252.2 fingerprince fingerprince.colorado.edu # sun3/50, duane e126 128.138.252.3 thumbprince thumbprince.colorado.edu # sun3/50, duane e126 128.138.252.5 reprince reprince.colorado.edu # sun3/50, duane e126 128.138.252.6 pion pion.colorado.edu # sun3/50, duane e126 128.138.252.7 muon muon.colorado.edu # sun3/50, duane e126 128.138.252.8 neutrino neutrino.colorado.edu # sun3/50, duane e126 128.138.252.9 neutron neutron.colorado.edu # sun3/50, duane e126 128.138.252.10 quark quark.colorado.edu # sun3/50, duane e126 128.138.252.11 proton proton.colorado.edu # sun3/50, duane e126 128.138.252.30 footprince footprince.colorado.edu # sun3/160, duane e126 128.138.252.100 maxim maxim.colorado.edu # Sparcstation 2, duane e12 ## # # Administrative Affiliation: cses # ## 128.128.132.124 raster raster.colorado.edu # Vaxstation 3400, RL-1, rm 128.138.132.1 rl3 rl3.colorado.edu 128.138.132.2 burn burn.colorado.edu cses # decstation, cires 238, me 128.138.132.3 crash crash.colorado.edu # decstation, cires 238, me 128.138.132.4 hiris hiris.colorado.edu # sgi , cires 238, medberry 128.138.132.5 bishop bishop.colorado.edu toolik jfrea # ds5000, RL-1, rm 101 128.138.132.6 mica mica.colorado.edu # DecStation 5000, RL-1, Rm 128.138.132.7 marble marble.colorado.edu # DecStation 5000, RL-1, Rm 128.138.132.8 magma magma.colorado.edu # DecStation 5000, RL-1, Rm 128.138.132.54 beetle beetle.colorado.edu # IBM XT, RL-1, Room 211 128.138.132.55 paleoman paleoman.colorado.edu # IBM XT, RL-1, Room 259 128.138.132.56 markgraf markgraf.colorado.edu # Compaq 286, RL-1, Room 24 128.138.132.57 soil soil.colorado.edu # Compaq 286, RL-1, Room 11 128.138.132.58 grizzly grizzly.colorado.edu # Compaq PC, RL-1, Room 255 128.138.132.59 gopher gopher.colorado.edu # Zeinith 386 PC, RL-1, Roo 128.138.132.60 alpine alpine.colorado.edu # IBM XT, RL-1, Room 275 128.138.132.61 arete arete.colorado.edu # Zenieth 386, RL-1, Room 2 128.138.132.62 datmgr datmgr.colorado.edu # Zenieth 386, RL-1, Room 2 128.138.132.63 culter culter.colorado.edu # Sun Sparcstation, RL-1, R 128.138.132.64 gneiss gneiss.colorado.edu # Wells America, RL-1, Room 128.138.132.65 csesgator csesgator.colorado.edu # Gator Box, RL-1 First Flo 128.138.132.86 mac1 mac1.colorado.edu # Macintosh, Rl-1 128.138.132.87 mac2 mac2.colorado.edu # Macintosh, Rl-1 128.138.132.88 mac3 mac3.colorado.edu # Macintosh, Rl-1 128.138.132.89 mac4 mac4.colorado.edu # Macintosh, Rl-1 128.138.132.90 mac5 mac5.colorado.edu # Macintosh, Rl-1 128.138.132.91 mac6 mac6.colorado.edu # Macintosh, Rl-1 128.138.132.92 mac7 mac7.colorado.edu # Macintosh, Rl-1 128.138.132.93 mac8 mac8.colorado.edu # Macintosh, Rl-1 128.138.132.94 mac9 mac9.colorado.edu # Macintosh, Rl-1 128.138.132.95 mac10 mac10.colorado.edu # Macintosh, Rl-1 128.138.132.96 mac11 mac11.colorado.edu # Macintosh, Rl-1 128.138.132.97 mac12 mac12.colorado.edu # Macintosh, Rl-1 128.138.132.98 mac13 mac13.colorado.edu # Macintosh, Rl-1 128.138.132.99 mac14 mac14.colorado.edu # Macintosh, Rl-1 128.138.132.100 mac15 mac15.colorado.edu # Macintosh, Rl-1 128.138.132.113 facies facies.colorado.edu # MicroVax, RL-1 128.138.132.114 cirque cirque.colorado.edu # Vaxstation 3600, rl-1 193 128.138.132.115 pingo pingo.colorado.edu # Vaxstation 3600, RL-1 #10 128.138.132.116 niwot niwot.colorado.edu # Vaxstation 3600, ? 128.138.132.117 albedo albedo.colorado.edu # Microvax II, RL-1 #193 128.138.132.118 illite illite.colorado.edu # MicroVax II, RL-1, rm 193 128.138.132.119 kaolin kaolin.colorado.edu # MicroVax II, RL1 #193 128.138.132.120 pixels pixels.colorado.edu # ?, RL-1, rm 193 128.138.132.121 pluton pluton.colorado.edu # MicroVax II, RL-1 #193 128.138.132.122 energy energy.colorado.edu # Vaxstation 3600, RL-1, RM 128.138.132.123 time time.colorado.edu # Vaxstation 3600, RL-1, RM 128.138.132.127 newmac newmac.colorado.edu # ?, RL-1 ## # # Administrative Affiliation: csn # ## 128.138.213.20 ucb-annex ucb-annex.csn.org # Annex Box, Marine St Comp 128.138.213.21 csn csn.org # Sun4, Marine St Comp Cntr 128.138.213.22 teal teal.csn.org # ?, ECEE 00-69 128.138.240.239 crimson crimson.csn.org # ?, Floating csn address ## # # Administrative Affiliation: csops # ## 1.1.1.1 tc1 tc1.cs.colorado.edu # test, ? 1.1.1.2 tc2 tc2.cs.colorado.edu # test, ? 1.1.1.3 tc3 tc3.cs.colorado.edu # test, ? 1.1.1.4 tc4 tc4.cs.colorado.edu # test, ? 128.138.192.20 snowmass snowmass.woz.colorado.edu # dec5000, ecee00-69 128.138.198.1 yaknow-sl yaknow-sl.colorado.edu # 4/20, ecee00-69b 128.138.198.11 amaze amaze.colorado.edu # NeXTcube, dyker 128.138.198.12 sauron sauron.colorado.edu # sun4/70, weaver 128.138.198.13 asdf asdf.colorado.edu # NeXTcube, nieusma - home 128.138.198.14 spirit spirit.colorado.edu # sun, nieusma - home 128.138.199.1 kibbles+bits kibbles+bits.colorado.edu k+b # sun4/60, eccr0-22 128.138.199.2 alpo alpo.colorado.edu # sun4/60c, eccr0-22 128.138.199.3 kalkan kalkan.colorado.edu # sun4/60c, eccr0-22 128.138.199.4 milkbones milkbones.colorado.edu milk # sun4/60c, eccr0-22 128.138.199.5 gravytrain gravytrain.colorado.edu gravy # sun4/60, eccr0-22 128.138.199.6 spruce spruce.colorado.edu # sun4/60, eccr0-22 128.138.199.7 palm palm.colorado.edu # sun4/60, eccr0-22 128.138.199.8 rubber rubber.colorado.edu # sun3/50, eccr0-22 128.138.199.50 lloaner8 lloaner8.colorado.edu # ncd 15b xterm, eccr0-22 128.138.199.51 ent ent.colorado.edu # ncd, ecot0-22 128.138.199.52 chainsaw chainsaw.colorado.edu # ncd, ecot0-22 128.138.204.1 engr-gw-ot engr-gw-ot.colorado.edu # cisco ags+, ecee00-71a 128.138.204.2 piper piper.colorado.edu # sun3/160c, ecee00-{69,71a 128.138.204.3 columbine-gw columbine-gw.colorado.edu # sun3/160, ecot7-25 128.138.204.10 yquem yquem.colorado.edu # sun3/60c, ecot5-11 128.138.204.11 pilsner pilsner.colorado.edu # sun3/60, ecot5-2 128.138.204.12 dogfood dogfood.colorado.edu # sun3/50, ecot7-23 128.138.204.13 ausone ausone.colorado.edu # sun3/75, ecot7-14 128.138.204.14 goodkarma goodkarma.colorado.edu # sun3/75, ecot7-9 128.138.204.15 lupine lupine.colorado.edu # sun3/60, eeot7-3 128.138.204.16 dot dot.colorado.edu # sun3/75, ecot6-7 128.138.204.17 minerva minerva.colorado.edu # sun3/75, ecot7-13 128.138.204.18 bullwinkle bullwinkle.colorado.edu # sun4/60, ecot7-10 128.138.204.19 latour latour.colorado.edu # sun4/110, ecot7-11 128.138.204.20 lexeme lexeme.colorado.edu # sun4/110, ecot7-15 128.138.204.21 petrus petrus.colorado.edu # sun3/75, ecot8-6 128.138.204.22 pawnee pawnee.colorado.edu # sun4/110, ecot8-2 128.138.204.23 axon axon.colorado.edu # sun3/50, ecot8-1 128.138.204.24 heineken heineken.colorado.edu heiny # sun3/50, ecot8-6 128.138.204.25 neuron neuron.colorado.edu # DEC5000, ecot7-20 128.138.204.26 tile tile.colorado.edu # solbourne4/500, ecot7-21 128.138.204.27 fir fir.colorado.edu # ncd, ecot7-22 128.138.204.28 maddog maddog.colorado.edu # sun3/75, ecot6-7 128.138.204.29 brion brion.colorado.edu # sun3/60, ecot6-6 128.138.204.30 wilkinson wilkinson.colorado.edu # DECstation 5000, ecot6-5 128.138.204.31 foobar foobar.colorado.edu # ds3100, ecot6-1 128.138.204.32 ducru ducru.colorado.edu # sun3/60, ecot6-8 128.138.204.33 lloaner5 lloaner5.colorado.edu # ncd 15b xterm, ecot6-5 128.138.204.34 yaknow yaknow.colorado.edu # 4/20, ecee00-69b 128.138.204.35 sigi sigi.colorado.edu newsigi # ds3100, eccr1-20c 128.138.204.36 lloaner6 lloaner6.colorado.edu # NCD Xterminal, ecot8-6 128.138.204.40 monet monet.colorado.edu # symbolics 3640, ecee0-26 128.138.204.41 cassatt cassatt.colorado.edu # symbolics 3640, ecee0-26 128.138.204.42 matisse matisse.colorado.edu # symbolics 3640, ecot7-23 128.138.204.43 renoir renoir.colorado.edu 128.138.204.44 degas degas.colorado.edu # symbolics 3640, ecot7-12 128.138.204.45 seurat seurat.colorado.edu # symbolics 3630, ecee00-69 128.138.204.46 bazille bazille.colorado.edu # symbolics 3620, ecee0-26 128.138.204.47 cezanne cezanne.colorado.edu # symbolics 3620, ecot8-1 128.138.204.48 chase chase.colorado.edu # symbolics 3620, ecot7-12 128.138.204.49 sisley sisley.colorado.edu # symbolics 3653, eche1-110 128.138.204.53 munch munch.colorado.edu # symbolics 3653, eche1-110 128.138.204.54 homer homer.colorado.edu # symbolics 3653, eche1-110 128.138.204.55 minnie minnie.colorado.edu # symbolics, ? 128.138.204.56 mickey mickey.colorado.edu # symbolics, ? 128.138.204.58 blitzen blitzen.colorado.edu 128.138.204.70 csgator csgator.colorado.edu # ?, eccr1-20c 128.138.204.71 csgator1 csgator1.colorado.edu 128.138.204.72 csgator2 csgator2.colorado.edu 128.138.204.73 csgator3 csgator3.colorado.edu 128.138.204.74 csgator4 csgator4.colorado.edu 128.138.204.75 csgator5 csgator5.colorado.edu 128.138.204.76 csgator6 csgator6.colorado.edu 128.138.204.77 csgator7 csgator7.colorado.edu 128.138.204.78 csgator8 csgator8.colorado.edu 128.138.204.79 csgator9 csgator9.colorado.edu 128.138.204.80 csgator10 csgator10.colorado.edu 128.138.204.81 csgator11 csgator11.colorado.edu 128.138.204.82 csgator12 csgator12.colorado.edu 128.138.204.83 csgator13 csgator13.colorado.edu 128.138.204.84 csgator14 csgator14.colorado.edu 128.138.204.85 csgator15 csgator15.colorado.edu 128.138.204.86 csgator16 csgator16.colorado.edu 128.138.204.87 csgator17 csgator17.colorado.edu 128.138.204.88 csgator18 csgator18.colorado.edu 128.138.204.89 csgator19 csgator19.colorado.edu 128.138.204.90 csgator20 csgator20.colorado.edu 128.138.204.254 ottemp ottemp.colorado.edu # spare slot on OT 128.138.236.1 columbine columbine.colorado.edu korbel # sun3/160, ecot7-25 128.138.236.2 capecod capecod.colorado.edu # sun3/50, ecot7-16 128.138.236.3 chiboni chiboni.colorado.edu # sun3/50, ecot7-16 128.138.236.5 blue blue.colorado.edu # sun3/50, ecot7-7 128.138.236.6 kateri kateri.colorado.edu # sun3/50, ecot7-5 128.138.236.7 okoboji okoboji.colorado.edu oko # sun3/50, ecot7-5 128.138.236.8 aquarius aquarius.colorado.edu # sun3/50, ecot7-3 128.138.236.9 quill quill.colorado.edu # sun3/50, ecot7-4 128.138.236.10 rupertsberg rupertsberg.colorado.edu dwim zippy # sun3/75, ecot8-3 128.138.236.11 synapse synapse.colorado.edu # sun3/50, ecot7-26 128.138.236.254 csadmintemp csadmintemp.colorado.edu # open slot on columbine su 128.138.240.10 cubie cubie.colorado.edu # intel hypercube, ecee00-7 128.138.240.28 encore encore.colorado.edu # encore multimax, ecee00-7 128.138.240.109 kirk-gateway kirk-gateway.colorado.edu # sun3/260, ecee00-71a 128.138.241.2 goober goober.colorado.edu # sun3/260, eccr1-20a 128.138.241.3 gingko gingko.colorado.edu # sun3/50, eccr1-20 128.138.241.4 hazel hazel.colorado.edu # sun3/50, eccr1-20 128.138.241.6 filbert filbert.colorado.edu # sun3/50, eccr1-20 128.138.241.7 coco coco.colorado.edu # sun3/75, eccr1-20 128.138.241.10 cashew cashew.colorado.edu # sun3/60c, eccr1-20 128.138.241.11 noisette noisette.colorado.edu # sun3/60c, eccr1-20 128.138.242.1 anchor anchor.colorado.edu # sun4/260, ecee2-50 128.138.242.2 becks becks.colorado.edu # sun3/60, ecee2-50 128.138.242.3 xx xx.colorado.edu # sun3/60, ecee2-50 128.138.242.4 bud bud.colorado.edu # iPSC/2, eccr1-15 128.138.242.5 bass bass.colorado.edu # sun3/60, ecee2-50 128.138.242.8 molson molson.colorado.edu # sun3/60, ecee2-50 128.138.242.11 chimay chimay.colorado.edu # sun4/60, ecee2-50 128.138.242.12 duvel duvel.colorado.edu # sun4/60, ecee2-50 128.138.242.254 certemp certemp.colorado.edu # ?, ecee2-50 128.138.243.1 piper-gateway piper-gateway.colorado.edu # sun3/160c, ecee00-{69,71a 128.138.243.2 tahiti tahiti.colorado.edu # sun3/75, eccr1-18 128.138.243.3 dennis dennis.colorado.edu # sun3/60c, eccr1-20b 128.138.243.5 watneys watneys.colorado.edu # sun3/50, eccr1-21 128.138.243.11 margaux margaux.colorado.edu # sun3/75, eccr1-21 128.138.243.12 moet moet.colorado.edu # sun3/260, eccr1-{20a,21} 128.138.243.20 bouton bouton.colorado.edu # sun3/75, eccr0-18 128.138.243.25 mumble mumble.colorado.edu # ds5000, eccr1-20 128.138.243.32 alumni alumni.colorado.edu # hp9000/350, ecee00-69 128.138.243.34 rightbrain rightbrain.colorado.edu # sun4/60, csops lab area 128.138.243.35 dunno dunno.colorado.edu # vs2000, ecee00-69 128.138.243.37 computer computer.colorado.edu # sun3/50, ecee00-69 128.138.243.38 ellington ellington.colorado.edu # sun3/50, ecee00-69 128.138.243.39 miller miller.colorado.edu # dec5000, ecee00-69 128.138.243.40 nordsieck nordsieck.colorado.edu # dec5000, EI lab 128.138.243.57 pistachio pistachio.colorado.edu # 3b2, ? 128.138.243.71 dendrite dendrite.colorado.edu # sun4/260c, eccr1-20a,0-18 128.138.243.76 mumm mumm.colorado.edu # sun3/75, eccr1-21 128.138.243.77 myelin myelin.colorado.edu # sun3/75, eccr0-18 128.138.243.83 kibbles+bits-gw kibbles+bits-gw.colorado.edu # sun4/60, eccr0-22 128.138.243.91 ganglion ganglion.colorado.edu # ds3100, eccr0-18 128.138.243.92 soma soma.colorado.edu # ds3100, eccr0-18 128.138.243.94 c3d1 c3d1.colorado.edu # hp9000/345srx, eccr1-20c 128.138.243.95 c3d2 c3d2.colorado.edu # hp9000/345srx, eccr0-20 128.138.243.96 thalamus thalamus.colorado.edu # sun4/260c, eccr0-18 128.138.243.97 vagus vagus.colorado.edu # NeXT, eccr0-18 128.138.243.100 anchor-gateway anchor-gateway.colorado.edu # sun4/260, ecee2-50 128.138.243.101 x-wing x-wing.colorado.edu uglybox # NeXTcube, eccr1-21 128.138.243.102 darth darth.colorado.edu # NeXTstation, eccr1-21 128.138.243.103 cs cs.colorado.edu cs-mail cs-mail-hub eclipse # solbourne4/600, eccr1-{20 128.138.243.104 partial partial.colorado.edu # solbourne4/400, eccr1-21 128.138.243.111 tigger tigger.colorado.edu # mips1000, ecee00-71a 128.138.243.112 annex-isn annex-isn.colorado.edu # encore AN-01, ecee00-71a 128.138.243.113 NetBlazer NetBlazer.colorado.edu # Telebit NetBlazr, ecee00- 128.138.243.114 cs-isn cs-isn.colorado.edu # encore AN-01, ecee00-71a 128.138.243.115 annex-cs annex-cs.colorado.edu # encore AN-01, ecee00-71a 128.138.243.120 engr-gw-cr engr-gw-cr.colorado.edu # cisco ags+, ecee00-71a 128.138.243.125 goober-gateway goober-gateway.colorado.edu # sun3/260, eccr1-20a 128.138.243.131 lloaner1 lloaner1.colorado.edu # ncd 15b xterm, eccr1-20 128.138.243.132 lloaner2 lloaner2.colorado.edu # ncd 15b xterm, eccr1-21 128.138.243.133 lloaner3 lloaner3.colorado.edu # ncd 15b xterm, eccr0-18 128.138.243.134 lloaner4 lloaner4.colorado.edu # ncd 15b xterm, eccr1-21 128.138.243.139 lloaner9 lloaner9.colorado.edu # ncd 15b xterm, eccr1-20 128.138.243.200 hunter-gw hunter-gw.colorado.edu # hp, ecche1-3 128.138.243.200 hunter-gateway hunter-gateway.colorado.edu # hp, ecche1-3 128.138.243.230 hartree hartree.colorado.edu # dec5000, CAPP lab 128.138.243.253 testing testing.cs.colorado.edu # sun3/50, ecee00-69 128.138.243.254 crtemp crtemp.colorado.edu # spare slot on OT 128.138.244.1 kirk kirk.colorado.edu # sun3/260, ecee00-71a 128.138.244.2 chekov chekov.colorado.edu # sun3/75, ecee1-29 128.138.244.3 sulu sulu.colorado.edu # sun3/75, ecee1-29 128.138.244.4 bones bones.colorado.edu # sun3/75, ecot3-21 128.138.244.5 scotty scotty.colorado.edu # sun3/75, ecee0-2b 128.138.244.6 spock spock.colorado.edu # no sun - just a name 128.138.244.7 uhura uhura.colorado.edu # sun3/50, ecee1-29 128.138.244.8 chapel chapel.colorado.edu # sun3/50, ecee1-29 128.138.245.41 hunter hunter.colorado.edu # hp, ecche1-3 128.138.245.42 stowe stowe.colorado.edu # hp, ecche1-3 128.138.245.44 alta alta.colorado.edu # hp 9000/350, ecche1-3 128.138.245.45 aspen aspen.colorado.edu # hp, ecche1-3 128.138.245.46 monarch monarch.colorado.edu # hp, ecche1-3 128.138.245.47 taos taos.colorado.edu # hp, ecche1-3 128.138.245.72 chamonix chamonix.colorado.edu # hp320, ecche1-3 128.138.245.80 kinglear kinglear.colorado.edu # hp9000/400M, cheme1-3 128.138.245.81 romeo romeo.colorado.edu # hp9000/400M, cheme1-3 128.138.245.82 juliet juliet.colorado.edu # hp9000/400M, cheme1-3 128.138.245.83 caesar caesar.colorado.edu # hp9000/400M, cheme1-3 128.138.245.84 ophelia ophelia.colorado.edu # hp9000/400M, cheme1-3 128.138.245.85 hamlet hamlet.colorado.edu # hp9000/400M, cheme1-3 128.138.245.86 ladymacb ladymacb.colorado.edu # hp9000/400M, cheme1-3 128.138.245.210 hazelrah hazelrah.colorado.edu # hp9000/340M, cheme1-3 128.138.245.211 fiver fiver.colorado.edu # hp9000/340M, cheme1-3 128.138.245.212 bigwig bigwig.colorado.edu # hp9000/340M, cheme1-3 128.138.245.213 cowslip cowslip.colorado.edu # hp9000/340M, cheme1-3 128.138.245.214 boxwood boxwood.colorado.edu # hp9000/340M, cheme1-3 128.138.245.215 clover clover.colorado.edu # hp9000/340M, cheme1-3 128.138.245.216 haystack haystack.colorado.edu # hp9000/340M, cheme1-3 128.138.245.217 torreys torreys.colorado.edu # IBM/RS6000-520, cheme1-3 128.138.245.218 blanca blanca.colorado.edu # IBM/RS6000-320, cheme1-3 128.138.245.219 crestone crestone.colorado.edu # IBM/RS6000-320, cheme1-3 128.138.245.220 quandry quandry.colorado.edu # IBM/RS6000-320, cheme1-3 128.138.245.221 culebra culebra.colorado.edu # IBM/RS6000-320, cheme1-3 128.138.245.222 redcloud redcloud.colorado.edu # spare, cheme1-3, ? 128.138.245.223 tdevil tdevil.colorado.edu # IBM Xstation, cheme1-3 128.138.245.224 rrunner rrunner.colorado.edu # IBM Xstation, cheme1-3 128.138.245.225 wcoyote wcoyote.colorado.edu # IBM Xstation, cheme1-3 128.138.245.226 bbunny bbunny.colorado.edu # IBM Xstation, cheme1-3 128.138.245.227 tbird tbird.colorado.edu # IBM Xstation, cheme1-3 128.138.245.228 efudd efudd.colorado.edu # IBM Xstation, cheme1-3 128.138.245.229 ysam ysam.colorado.edu # spare, cheme1-3 ## # # Administrative Affiliation: decnet # ## 128.138.131.2 wizard wizard.colorado.edu # uVAX-II, 4780 Pearl Plaza 128.138.133.1 pizero-gw pizero-gw.colorado.edu # DS 5000, Gamow F317 128.138.133.4 fotolb fotolb.colorado.edu # DS3100, Duane F321 128.138.134.11 cuchem cuchem.colorado.edu # Cluster Alias, ? 128.138.134.11 cechem cechem.colorado.edu # Vax 11/750, Chem 35 128.138.134.12 mmola mmola.colorado.edu # VS3100-M38, Chem 232C 128.138.134.13 mmolb mmolb.colorado.edu # VS3100-M38, Chem 232C 128.138.134.15 xtal xtal.colorado.edu # Cluster Alias, Chem 128.138.134.15 xtal1 xtal1.colorado.edu # vs-II, Ekeley M309 128.138.134.16 xtal2 xtal2.colorado.edu # vs-II, Ekeley M309 128.138.213.4 bakmes bakmes.colorado.edu # sun slc, Comp 11x 128.138.238.11 hvem hvem.colorado.edu # VS3200, EPOB 0011 128.138.238.13 jaws jaws.colorado.edu # DS3100, JILA A804 128.138.238.22 jiladc jiladc.colorado.edu # DS5000, Jila S275 128.138.238.28 kryos kryos.colorado.edu # uVAX-3600, RL2 260 128.138.238.29 gpxice gpxice.colorado.edu # uVAX-II, RL2 261 128.138.238.31 carina carina.colorado.edu # vs2000, Duane C324 128.138.238.34 ccnucb ccnucb.colorado.edu # uVAX-II, Comp 221 128.138.238.35 scox1 scox1.colorado.edu # vs2000, duane c-327 128.138.238.41 gpxsno gpxsno.colorado.edu # uVAX-II, RL2 261 128.138.238.42 frazil frazil.colorado.edu # VS-3500, RL2 261 128.138.238.46 hellas hellas.colorado.edu # VS3100, ECNt 3-45 128.138.238.58 solarz solarz.colorado.edu # dec5000, Gamow F917 128.138.238.61 bquark bquark.colorado.edu # VT1000, Duane F315 128.138.238.63 menkar menkar.colorado.edu # AT-386, STAD 122 128.138.238.71 altair altair.colorado.edu # uvax, Telecom 203 128.138.238.77 cygx1 cygx1.colorado.edu # vs-II, Duane 128.138.238.86 jila jila.colorado.edu # vax8600, JILA s1b75 128.138.238.88 solarx solarx.colorado.edu # vax11/750, Duane G328 128.138.238.92 marmut marmut.colorado.edu # IBM PC, RL1 140 128.138.238.94 argyre argyre.colorado.edu # DS5000, Duane D141 128.138.238.98 glaces glaces.colorado.edu # Compaq 20, RL2-212 128.138.238.100 tethys tethys.colorado.edu # DS3100, Duane D221 128.138.238.109 curlgw curlgw.colorado.edu # cisco AGS, RL3/NGDC 128.138.238.118 sirius sirius.colorado.edu # sun3/60, Telecom 215 128.138.238.119 rana rana.colorado.edu # sun3/60, Telecom 215 128.138.238.131 rhea rhea.colorado.edu # DS 5000/200, LASP 128.138.238.133 maia maia.colorado.edu # VS-II/GPX, Telecom 203 128.138.238.145 coma coma.colorado.edu # DS3100, Duane C324 128.138.238.146 qso qso.colorado.edu # DS3100, Duane C324 128.138.238.147 abacus abacus.colorado.edu ibg # DS3100, IBG 128.138.238.150 solary solary.colorado.edu # ds3100, Gamov F917 128.138.238.151 cetus cetus.colorado.edu # ds3100, ferguson, duane 128.138.238.152 jilau1 jilau1.colorado.edu # ds3100, JILA S1B-55 128.138.238.157 dycam dycam.colorado.edu # dn4500, racheli, ecae1-15 128.138.238.162 tardis tardis.colorado.edu # DS3100, Stadium 123B 128.138.238.163 pizero pizero.colorado.edu # DS 5000, Gamow F317 128.138.238.166 nsidc1 nsidc1.colorado.edu # DS5000, RL2-259 128.138.238.176 virgo virgo.colorado.edu # vs-II, Telecom basement 128.138.238.182 dana2 dana2.colorado.edu # DS3100, JILA A407B 128.138.238.183 pele pele.colorado.edu # ds3100, Duane D141 128.138.238.184 alcor alcor.colorado.edu # ds3100, Duane D135 128.138.238.185 aries aries.colorado.edu # vax11/780, ecae0-29 128.138.238.186 orion orion.colorado.edu # vax11/785, Duane D322 128.138.238.187 aquila aquila.colorado.edu # vax11/780, TC 10-1B 128.138.238.188 pisces pisces.colorado.edu # uvax3600, LASP 143 128.138.238.190 sandor sandor.colorado.edu # vs3100, Duane D220 128.138.238.191 sarin sarin.colorado.edu # VS3100, Duane D220 128.138.238.193 cufizz cufizz.colorado.edu # DS3100, Duan F335 128.138.238.195 cygx3 cygx3.colorado.edu # DS3100, Duane 128.138.238.197 rambo1 rambo1.colorado.edu # PC-286, JILA B213 128.138.238.200 wombat wombat.colorado.edu # DS3100, Gamov 128.138.238.202 jila01 jila01.colorado.edu # DS5400, JILA 128.138.238.214 jilacg jilacg.colorado.edu # DS3100, JILA S268 128.138.238.215 cosmos cosmos.colorado.edu # VS3100, Duane 128.138.238.219 jilav1 jilav1.colorado.edu # VS3100, JILA S1B-55 128.138.238.220 jilack jilack.colorado.edu # DS3100, JILA A710 128.138.238.221 wright wright.colorado.edu # Zenith 386, Ramaley N1B68 128.138.238.224 judy judy.colorado.edu # VS2000, Duane 128.138.238.229 fisher fisher.colorado.edu # DEC/VT1000, Ramaley N1B68 128.138.238.230 marmot marmot.colorado.edu # VS 3100, JILA 510 128.138.238.231 tycho tycho.colorado.edu # VS3100, Jila C333 128.138.238.232 galaxy galaxy.colorado.edu # VS3100, Jila C333 128.138.238.233 elroy elroy.colorado.edu # VS-2000, Jila C327 128.138.238.234 vulcan vulcan.colorado.edu # VS3100, Jila C333 128.138.238.235 morgan morgan.colorado.edu # DEC/VT1000, Ramaley N1B68 128.138.238.236 fluidb fluidb.colorado.edu # DS5000, Duane 128.138.238.237 mendel mendel.colorado.edu # DEC/DS5000, Ramaley N1B68 128.138.238.240 crucis crucis.colorado.edu # VS2000, Duane 128.138.238.242 hebuff hebuff.colorado.edu # DS3100, Gamow 128.138.240.92 europa europa.colorado.edu # ibmrt, ecee0060 130.253.1.24 ccndu ccndu.colorado.edu # uVAX, Univ of Denver 138.67.1.2 ccncsm ccncsm.colorado.edu # uVAX-II, CSM ## # # Administrative Affiliation: mcdb # ## 128.138.212.1 beagle beagle.colorado.edu # mips m-2000, mcdb 128.138.212.2 zelia zelia.colorado.edu # DS3100, bsci226b 128.138.212.5 mcdb-spare mcdb-spare.colorado.edu # spare, ? 128.138.212.6 rufus rufus.colorado.edu # ds2100, mcdb 059 128.138.212.7 soapdish soapdish.colorado.edu # iris 4d/20, paulc - hvem 128.138.212.8 jackal jackal.colorado.edu # mips RS2030, stormo lab 128.138.212.9 rainbow-gw rainbow-gw.colorado.edu # hp 9000/3??, seuoka lab 128.138.212.10 farfel farfel.colorado.edu # ds2100, stormo lab (hertz 128.138.212.11 darwin darwin.colorado.edu # ds2100, wood lab 128.138.212.12 marvin marvin.colorado.edu # ds3100, dept. "server" 128.138.212.13 daffy daffy.colorado.edu # ds2100, user area 128.138.212.14 bugs bugs.colorado.edu # ds2100, user area 128.138.212.15 elmer elmer.colorado.edu # ds2100, user area 128.138.212.16 foghorn foghorn.colorado.edu # ds2100, user area 128.138.212.17 porky porky.colorado.edu # ds2100, user area 128.138.212.18 eeyore eeyore.colorado.edu # VS2000, Cathy Inouye 128.138.212.19 savant savant.colorado.edu # sparc1+, Porter B256 128.138.212.20 brancusi brancusi.colorado.edu # sgi 4d/25, Porter B0054 128.138.212.21 toto toto.colorado.edu # tekphaserpx, Porter B226 128.138.212.22 nebulous nebulous.colorado.edu # ds2100, Porter B249 128.138.212.23 elvis elvis.colorado.edu # ds2100, Porter B106 128.138.212.24 puck puck.colorado.edu # ds2100, Porter B248 128.138.212.25 windex windex.colorado.edu # ds2100, Porter B226 128.138.212.26 phoenix phoenix.colorado.edu # sgi 4d/35, Porter B256 128.138.234.1 rainbow rainbow.colorado.edu # hp 9000/3??, seuoka lab 128.138.234.2 cutthroat cutthroat.colorado.edu # hp 700 X term., seuoka la 128.138.238.2 beagle-gw beagle-gw.colorado.edu # mips m-2000, mcdb ## # # Administrative Affiliation: misc # ## 128.138.240.5 atlas atlas.colorado.edu # Sun 3/60, EE08 128.138.240.5 mozart mozart.colorado.edu # Sun 3/60, EE08 128.138.240.33 lims lims.colorado.edu # sun3/160, robotics lab, d 128.138.240.34 io io.colorado.edu # ibm6152, ecee0060 ## # # Administrative Affiliation: noaacrd # ## 128.138.218.2 rossby rossby.colorado.edu # sun4/330, RL2-264 128.138.218.3 starr starr.colorado.edu # sun4/60, RL2-272 128.138.218.4 palmen palmen.colorado.edu # sun4/60, RL2-264 128.138.218.5 bjerknes bjerknes.colorado.edu # sun4/490, RL2-266 128.138.218.6 mercury mercury.colorado.edu # sun4/40, RL2-232 128.138.218.7 lorenz lorenz.colorado.edu # sun4/330, RL2-272 128.138.218.8 jungfraujoch jungfraujoch.colorado.edu # sun4/40, RL2-232 128.138.218.21 crdpc1 crdpc1.colorado.edu # PC, RL2-272 128.138.218.31 crdmac1 crdmac1.colorado.edu # Mac, RL2-235 128.138.238.96 bjerknes-gw bjerknes-gw.colorado.edu # sun4/490, RL2-266 ## # # Administrative Affiliation: ocsops # ## 128.138.201.8 hopper-gw hopper-gw.colorado.edu # vs3500, ecee00-71a 128.138.201.9 fred-gateway fred-gateway.colorado.edu # sun3/260, ecee00-71a 128.138.248.2 sashimi sashimi.colorado.edu # sun4/330, ECEE1-50D 128.138.248.3 espresso espresso.colorado.edu # Sun 4/40 IPC, ECEE1-60 128.138.248.4 sake sake.colorado.edu # sun4/60, ECEE1-60 128.138.248.5 drip drip.colorado.edu # sun4/60, ECEE1-60 128.138.248.6 anago anago.colorado.edu # ?, ECEE1-11 128.138.248.7 ikura ikura.colorado.edu # ?, ECEE1-11 128.138.248.8 ika ika.colorado.edu # ?, ECEE1-11 128.138.248.9 java java.colorado.edu # ?, ECOT2-21 128.138.248.10 kona kona.colorado.edu 128.138.248.11 toro toro.colorado.edu 128.138.248.12 turkish turkish.colorado.edu # SLC, ee1-75 128.138.248.13 instant instant.colorado.edu # SLC, ? 128.138.248.14 uni uni.colorado.edu # sun IPC, ECEE1-11 128.138.248.15 hirame hirame.colorado.edu # sun IPC, ECEE1-60 128.138.248.16 kani kani.colorado.edu # sun IPC, ECEE1-11 128.138.248.20 futomaki futomaki.colorado.edu # PC, ecee1-65 128.138.248.21 arabica arabica.colorado.edu # PC, ecee1-59 128.138.248.25 fred fred.colorado.edu # sun3/260, ecee00-71a 128.138.248.26 barney barney.colorado.edu # sun3/50, ? 128.138.248.27 dino dino.colorado.edu # sun3/110, ? 128.138.248.28 pebbles pebbles.colorado.edu # sun3/50, ? 128.138.248.29 bambam bambam.colorado.edu # sun3/60, ? 128.138.248.30 wb_lodge wb_lodge.colorado.edu # sun3/60, ? 128.138.248.101 travis travis.colorado.edu # xt, ee061 128.138.248.102 claudel claudel.colorado.edu # DS5000, ee2-27 128.138.248.102 hbarc hbarc.colorado.edu # vax gpx, ee1-60 128.138.248.150 hopper hopper.colorado.edu # vs3500, ecee00-71a 128.138.248.151 focus focus.colorado.edu # uvax3500, ee1-75a 128.138.248.152 turing turing.colorado.edu # vs3100, ee2-32 128.138.248.153 watson watson.colorado.edu # vs3100, ee1-75 128.138.248.154 pascal pascal.colorado.edu # vs3100, ee1-02 128.138.248.155 babbage babbage.colorado.edu # vs3100, ee1-80 128.138.248.156 vonneumann vonneumann.colorado.edu # vs3100, ee1-64 128.138.248.157 hollerith hollerith.colorado.edu # vs3100, ee1-60 128.138.248.158 beam beam.colorado.edu # vs3100, ee1-75c 128.138.248.159 ray ray.colorado.edu # vs3100, ee1-75a 128.138.248.160 wave wave.colorado.edu # vs3100, ee1-75g 128.138.248.161 dbase dbase.colorado.edu # ds3100, ee1-75f 128.138.248.161 confusious confusious.colorado.edu # ds3100, ee2-02 128.138.248.162 zuse zuse.colorado.edu # vs3100, ot2-20 128.138.248.163 jolywood jolywood.colorado.edu # vs3100, ot2-02 128.138.248.164 lovelace lovelace.colorado.edu # vs3100, ee1-85 west 128.138.248.165 joly joly.colorado.edu # ds3100, ot2-27 128.138.248.166 phase phase.colorado.edu # ds3100, ee1-75g 128.138.248.167 mode mode.colorado.edu # ds3100, ee1-75g 128.138.248.250 bitser bitser.colorado.edu # hp 9000/320, ? 128.138.248.251 yaba yaba.colorado.edu # hp350, ecee1-62 128.138.248.253 drcub drcub.colorado.edu # 3b2, ecee1-12 ## # # Administrative Affiliation: plasma # ## 128.138.217.1 plasma-gw plasma-gw.colorado.edu # hp9k/370, DP G-323, schmi 128.138.217.2 plasma1 plasma1.colorado.edu # ibm 386 clone, ? 128.138.238.106 plasma plasma.colorado.edu # hp9k/370, DP G-323, schmi ## # # Administrative Affiliation: psych # ## 128.138.190.2 clipr_mac1 clipr_mac1.colorado.edu # Macintosh, clipr at net 128.138.190.3 clipr_mac2 clipr_mac2.colorado.edu # Macintosh, clipr at net 128.138.190.4 clipr_mac3 clipr_mac3.colorado.edu # Macintosh, clipr at net 128.138.190.5 clipr_mac4 clipr_mac4.colorado.edu # Macintosh, clipr at net 128.138.238.15 clipr clipr.colorado.edu # vax11/780, Muen E331 128.138.238.17 psych psych.colorado.edu # DS 5000/200, Muen E331 128.138.238.33 clipr2 clipr2.colorado.edu # VS 3100/76, Muen E331 ## # # Administrative Affiliation: seusslab # ## 128.138.225.1 horton-gw horton-gw.colorado.edu # DS 5000, Meunzinger 128.138.225.2 yertle-gw yertle-gw.colorado.edu # DS 5000, Meunzinger 128.138.225.10 samiam samiam.colorado.edu # DS 3100, Meunzinger 128.138.225.11 onefish onefish.colorado.edu # DS 3100, Meunzinger 128.138.225.12 twofish twofish.colorado.edu # DS 3100, Meunzinger 128.138.225.13 redfish redfish.colorado.edu # DS 3100, Meunzinger 128.138.225.14 bluefish bluefish.colorado.edu # DS 3100, Meunzinger 128.138.225.100 yuzz yuzz.colorado.edu # VT1000, Meunzinger 128.138.225.101 wum wum.colorado.edu # VT1000, Meunzinger 128.138.225.102 um um.colorado.edu # VT1000, Meunzinger 128.138.225.103 humpf humpf.colorado.edu # VT1000, Meunzinger 128.138.225.104 fuddle fuddle.colorado.edu # VT1000, Meunzinger 128.138.225.105 glikk glikk.colorado.edu # VT1000, Meunzinger 128.138.225.106 nuh nuh.colorado.edu # VT1000, Meunzinger 128.138.225.107 snee snee.colorado.edu # VT1000, Meunzinger 128.138.225.108 quan quan.colorado.edu # VT1000, Meunzinger 128.138.225.109 thnad thnad.colorado.edu # VT1000, Meunzinger 128.138.225.110 spazz spazz.colorado.edu # VT1000, Meunzinger 128.138.225.111 floob floob.colorado.edu # VT1000, Meunzinger 128.138.225.112 zatz zatz.colorado.edu # VT1000, Meunzinger 128.138.225.113 jogg jogg.colorado.edu # VT1000, Meunzinger 128.138.238.238 horton horton.colorado.edu # DS 5000, Meunzinger 128.138.238.239 yertle yertle.colorado.edu # DS 5000, Meunzinger ## # # Administrative Affiliation: uccs # ## 128.198.1.50 phaser phaser.colorado.edu # Zenith 386, UCCS DH242 128.198.1.246 happy happy.colorado.edu # vax8600, UCCS dh227 128.198.1.247 esprit esprit.colorado.edu # DECstation 5000, UCCS DH2 128.198.1.248 elan elan.colorado.edu # VS3100, ? 128.198.1.249 super7 super7.colorado.edu # ?, UCCS DH227 128.198.1.250 ccnuccs ccnuccs.colorado.edu # ccn uax ii, ? 128.198.1.251 uccs-ucd-cisco uccs-ucd-cisco.? 128.198.2.100 nell nell.colorado.edu # hp 9000, ? 128.198.2.101 ignatius ignatius.colorado.edu 128.198.2.102 hp3193 hp3193.? 128.198.2.103 hp3194 hp3194.? 128.198.2.104 dudley dudley.colorado.edu 128.198.2.105 thor thor.colorado.edu # hp316, ? 128.198.2.106 odin odin.colorado.edu # hp316, ? 128.198.2.107 balder balder.colorado.edu # hp316, ? 128.198.2.120 aquinas aquinas.colorado.edu # daisy dnix 5.03, ? 128.198.2.121 hotlips hotlips.colorado.edu 128.198.2.141 panda panda.colorado.edu # vs ii, vms cmu-tcp/ip 128.198.2.142 koala koala.colorado.edu # vt ii, vms cmu-tcp/ip 128.198.2.143 eyesee eyesee.colorado.edu # uvax ii, vms cmu-tcp/ip 128.198.2.144 uhclem uhclem.colorado.edu # uvax ii, vms cmu-tcp/ip 128.198.2.145 boris boris.colorado.edu # uvax ii, vms cmu-tcp/ip 128.198.2.146 signal signal.colorado.edu # uvax ii, vms cmu-tcp/ip 128.198.2.160 hawkeye hawkeye.colorado.edu # intel sugar cube, ? 128.198.2.161 radar radar.colorado.edu # next, ? 128.198.2.200 vlsia vlsia.colorado.edu 128.198.2.201 vlsib vlsib.colorado.edu 128.198.2.202 vlsic vlsic.colorado.edu 128.198.2.203 vlsid vlsid.colorado.edu 128.198.2.204 hp340a hp340a.colorado.edu # ?, UCCS EAS 128.198.2.204 gus gus.colorado.edu # ?, UCCS EAS 128.198.2.205 hp340b hp340b.colorado.edu # ?, UCCS EAS 128.198.2.205 gilbert gilbert.colorado.edu # ?, UCCS EAS 128.198.2.206 landers landers.colorado.edu # ?, UCCS EAS 128.198.2.206 hp340c hp340c.colorado.edu # ?, UCCS EAS 128.198.2.209 piglet piglet.colorado.edu # ds5000, ? 128.198.2.210 pooh pooh.colorado.edu # ds3100, ? 128.198.2.211 tiger tiger.colorado.edu # ds3100, ? 128.198.2.212 fastdsp fastdsp.colorado.edu # DS3100, ? 128.198.2.214 alpha alpha.colorado.edu # vt1200, ? 128.198.2.214 sunshine sunshine.colorado.edu # uVax, UCCS 128.198.2.215 twinpeaks twinpeaks.colorado.edu # ds 2100, UCCS 128.198.2.215 beta beta.colorado.edu # vt1200, ? 128.198.2.216 delta delta.colorado.edu # vt1200, ? 128.198.2.216 massive massive.colorado.edu # ds 2100, UCCS 128.198.2.217 gamma gamma.colorado.edu # vt1200, ? 128.198.2.217 wetterhorn wetterhorn.colorado.edu # ds 2100, UCCS 128.198.2.218 eplison eplison.colorado.edu # vt1200, ? 128.198.2.218 sneffles sneffles.colorado.edu # ds 2100, UCCS 128.198.2.219 gizmo gizmo.colorado.edu # DS3100, ? 128.198.2.220 lisp1 lisp1.colorado.edu # xerox, ? 128.198.2.221 lisp2 lisp2.colorado.edu # xerox, ? 128.198.2.222 lisp3 lisp3.colorado.edu # xerox, ? 128.198.2.223 lisp4 lisp4.colorado.edu # xerox, ? 128.198.2.226 harpo harpo.colorado.edu # uvax, ? 128.198.2.227 groucho groucho.colorado.edu # uvax, ? 128.198.2.228 zeppo zeppo.colorado.edu # uVax, UCCS 128.198.2.229 chico chico.colorado.edu # uvax, ? 128.198.2.230 vlsimv vlsimv.colorado.edu # uvax, ? 128.198.2.231 pikespeak pikespeak.colorado.edu # ds 2100, UCCS 128.198.2.232 antero antero.colorado.edu # ds 2100, UCCS 128.198.2.233 pyramid pyramid.colorado.edu # ds 2100, UCCS 128.198.2.235 paz paz.colorado.edu # sun, ? 128.198.2.236 sanford sanford.colorado.edu # sun, ? 128.198.2.237 atwood atwood.colorado.edu # sun, ? 128.198.2.238 ludell ludell.colorado.edu # sun, ? 128.198.2.239 herndon herndon.colorado.edu # sun, ? 128.198.2.240 colby colby.colorado.edu # sun, ? 128.198.2.241 eddie eddie.colorado.edu # hp-9000, ? 128.198.2.242 ward ward.colorado.edu # hp-9000, ? 128.198.2.243 beaver beaver.colorado.edu # hp-9000, ? 128.198.2.244 wally wally.colorado.edu # hp-9000, ? 128.198.2.245 lumpy lumpy.colorado.edu # hp-9000, ? 128.198.2.246 june june.colorado.edu # hp-9000, ? 128.198.2.247 dune dune.colorado.edu # hp-9000, ? 128.198.2.248 bull bull.colorado.edu # hp-9000, ? 128.198.2.249 opus opus.colorado.edu # hp-9000, ? 128.198.2.250 rocky rocky.colorado.edu # hp-9000, ? 128.198.2.251 hp550 hp550.colorado.edu # hp-550, ? 128.198.11.0 uccs-eas1 uccs-eas1.? # cs/100, ? 128.198.12.0 uccs-eas2 uccs-eas2.? # cs/100, ? 128.198.13.0 uccs-eas3 uccs-eas3.? # cs/100, ? 128.198.14.0 uccs-eas14 uccs-eas14.? # cs/100, ? 128.198.15.0 uccs-eas15 uccs-eas15.? # cs/100, ? 128.198.16.0 uccs-eas16 uccs-eas16.? # cs/100, ? 128.198.17.0 uccs-eas17 uccs-eas17.? # cs/100, ? 128.198.18.0 uccs-eas18 uccs-eas18.? # cs/100, ? 128.198.19.0 uccs-eas19 uccs-eas19.? # cs/100, ? 128.198.21.0 uccs-dh1 uccs-dh1.? # cs/100, ? 128.198.22.0 uccs-dh2 uccs-dh2.? # cs/100, ? 128.198.23.0 uccs-dh3 uccs-dh3.? # cs/100, ? 128.198.24.0 uccs-dh4 uccs-dh4.? # cs/100, ? 128.198.25.0 uccs-dh5 uccs-dh5.? # cs/200, ? 128.198.26.0 uccs-dh6 uccs-dh6.? # cs/200, ? 128.198.26.129 arlo arlo.colorado.edu # ultimate 30/30, uccs libr 128.198.27.0 uccs-dh7 uccs-dh7.? # cs/200, ? 128.198.27.1 uccs-ncs1 uccs-ncs1.? # cs/100, ? 128.198.27.2 uccs-ncs2 uccs-ncs2.? # cs/100, ? 128.198.28.0 uccs-dh8 uccs-dh8.? # cs/200, ? 128.198.37.128 doc doc.colorado.edu # vax-11/750, UCCS DH227 128.198.38.128 grumpy grumpy.colorado.edu # vax-11/780-vms, UCCS dh22 128.198.39.128 unhappy unhappy.colorado.edu # vax-8600-vms, (incoming t 128.198.41.0 uccs-mh1 uccs-mh1.? # cs/100, ? 128.198.42.0 uccs-mh2 uccs-mh2.? # cs/100, ? 128.198.43.0 uccs-mh3 uccs-mh3.? # cs/100, ? 128.198.51.0 uccs-ch1 uccs-ch1.? # cs/100, ? 128.198.61.0 uccs-lib1 uccs-lib1.? # cs/100, ? 128.198.62.0 uccs-lib2 uccs-lib2.? # cs/100, ? ## # # Administrative Affiliation: unixops # ## 128.138.180.2 spitha spitha.colorado.edu # SLC, ? 128.138.188.20 jove jove.colorado.edu # John Cary 128.138.201.1 engr-gw-nw engr-gw-nw.colorado.edu # cisco ags+, ecee00-71a 128.138.201.2 titan-gw titan-gw.colorado.edu # sun3/260, me1-17 128.138.201.3 luna luna.colorado.edu # sun3/50, ae1-85 128.138.201.4 diana diana.colorado.edu # sun3/50, ae 1-89 128.138.201.5 vanna vanna.colorado.edu # sun3/110, ae 1-83 128.138.201.6 venus venus.colorado.edu # sun3/50, ae 1-87 128.138.201.10 stormy stormy.colorado.edu # ?, AE 1-79 128.138.205.2 dizzy dizzy.colorado.edu # DS2100, Transient 128.138.205.3 mingus mingus.colorado.edu # DS2100, Transient 128.138.205.4 fitzgerald fitzgerald.colorado.edu # DS2100, Transient 128.138.206.9 cujo-drogg-sl cujo-drogg-sl.colorado.edu # SLIP to cogg's house 128.138.206.10 drogg-cujo-sl drogg-cujo-sl.colorado.edu # SLIP from cogg's house 128.138.206.17 cujo-mcb-sl cujo-mcb-sl.colorado.edu # SLIP to mcbryan's house 128.138.206.18 mcb-cujo-sl mcb-cujo-sl.colorado.edu # SLIP from mcbryan's house 128.138.206.209 slip-test slip-test.colorado.edu # generic cujo slip line. 128.138.206.241 drogg drogg.colorado.edu # SLIP from cogg's house 128.138.216.1 titan titan.colorado.edu # sun3/260, me1-17 128.138.216.25 hermes hermes.colorado.edu # sun3/50, me1-9 128.138.216.28 jupiter jupiter.colorado.edu # sun3/50, me1-9 128.138.216.30 vishnu vishnu.colorado.edu # sun3/50, me1-16 128.138.216.31 mars mars.colorado.edu # sun4/260, me1-9b 128.138.216.32 phoebus phoebus.colorado.edu # sun3/60, me1-9 128.138.216.34 lotus lotus.colorado.edu # SGI, ecme1-9 128.138.216.35 porsche porsche.colorado.edu # SGI, ecme1-9 128.138.216.36 testa testa.colorado.edu # IRIS 4, ME1-18 128.138.228.7 oingo oingo.colorado.edu # macIIfx, eece00-71a 128.138.238.18 boulder-gw boulder-gw.colorado.edu # vax11/780, ecee00-71a 128.138.238.97 newton-gw newton-gw.colorado.edu # sun4/360, ecche1-10 128.138.238.120 engr-gw engr-gw.colorado.edu # cisco ags+, ecee00-71a 128.138.238.154 cujo-gw cujo-gw.colorado.edu # vax11/750, ecee00-71a 128.138.238.159 extaci extaci.colorado.edu # ds3100, cheme1-17 128.138.238.170 kmek3 kmek3.colorado.edu # dec 3100, me2-9 128.138.238.178 extaci-annex extaci-annex.colorado.edu # annex IIe, EE 00-71A 128.138.238.247 paradox paradox.colorado.edu # Sun 4/40, Duane F935 128.138.239.1 wasser wasser.colorado.edu # sun3/180, cadswes 128.138.239.2 eau eau.colorado.edu # sun3/50, cadswes 128.138.239.3 woda woda.colorado.edu # sun3/50, cadswes 128.138.239.4 agua agua.colorado.edu # sun3/60, cadswes 128.138.239.5 dwr dwr.colorado.edu # sun3/60, cadswes 128.138.239.6 hydor hydor.colorado.edu # sun3/60, cadswes 128.138.239.7 tarn tarn.colorado.edu # sun3/50, cadswes 128.138.239.8 vatten vatten.colorado.edu # sun3/60, cadswes 128.138.239.9 neer neer.colorado.edu # sun3/60M, cadswes 128.138.239.10 nots nots.colorado.edu # sun3/60, cadswes 128.138.239.11 pani pani.colorado.edu # sun3/60M, cadswes 128.138.239.12 mul mul.colorado.edu # sun3/60M, cadswes 128.138.239.13 mia mia.colorado.edu # sun3/60M, cadswes 128.138.239.21 water water.colorado.edu # sun4/280, cadswes 128.138.239.22 shui shui.colorado.edu # sun4/60, cadswes 128.138.239.23 mizu mizu.colorado.edu # sun4/330, cadswes 128.138.239.24 manzi manzi.colorado.edu # sun4/60, cadswes 128.138.239.25 boda boda.colorado.edu # sun4/60, cadswes 128.138.239.26 iid iid.colorado.edu # sun4/60, cadswes 128.138.239.27 aterway aterway.colorado.edu # ?, cadswes 128.138.239.28 egypt1 egypt1.colorado.edu # DEC2100,cadswes, cadswes 128.138.239.31 erie erie.colorado.edu # sun/386i, cadswes 128.138.239.51 cooley cooley.colorado.edu # hp350, cadswes 128.138.239.52 hoover hoover.colorado.edu # hp350, cadswes 128.138.239.101 nile nile.colorado.edu # att3b2, cadswes 128.138.239.102 danube danube.colorado.edu # att3b2, cadswes 128.138.239.151 powell powell.colorado.edu # ds3100, cadswes 128.138.239.151 nasser nasser.colorado.edu # DEC5000,cadswes, cadswes 128.138.239.152 shasta shasta.colorado.edu # ds3100, cadswes 128.138.239.153 dillon dillon.colorado.edu # mvaxGPX, cadswes 128.138.239.154 havasu havasu.colorado.edu # mvaxGPX, cadswes 128.138.239.198 mead mead.colorado.edu # mvaxII, cadswes 128.138.239.199 itaipu itaipu.colorado.edu # vs3100, cadswes 128.138.239.200 cadswes cadswes.colorado.edu # temporary standalone slot 128.138.240.1 boulder boulder.colorado.edu # vax11/780, ecee00-71a 128.138.240.2 wasser-gw wasser-gw.colorado.edu # sun3/180, cadswes 128.138.240.3 zax zax.colorado.edu # sparc II, ecee00-71 128.138.240.7 boingo boingo.colorado.edu # macIIfx, ecee00-71a 128.138.240.21 euclid euclid.colorado.edu # dec5000, ecee00-71a 128.138.240.23 ciaibbs ciaibbs.colorado.edu # sun 4/40 ipc, ee00-71a 128.138.240.24 orbit orbit.colorado.edu # pyr90x, ecee00-71a 128.138.240.25 orbit2 orbit2.colorado.edu # dec5000, ? 128.138.240.27 refuge refuge.colorado.edu # sparcstation 2, ecee00-71 128.138.240.30 duke-gateway duke-gateway.colorado.edu # sun4/260, ee00-71a 128.138.240.35 cujo cujo.colorado.edu thermhost # vax11/750, ecee00-71a 128.138.240.36 odaroloc odaroloc.colorado.edu websterhost # 11/750, ecee00-71A 128.138.240.37 morse morse.colorado.edu # sparcserver 330, ecee02-2 128.138.240.69 hard hard.colorado.edu # UnixOps floating address 128.138.240.70 tortellini tortellini.colorado.edu # sun 3/50, ee 00-71 128.138.240.100 engr-gw-eng engr-gw-eng.colorado.edu # cisco ags+, ecee00-71a 128.138.240.101 etc etc.colorado.edu # temp name 128.138.240.102 skidmark skidmark.colorado.edu # vax11/780, ee00-71 128.138.240.104 paleolithic paleolithic.colorado.edu paleo motdhost aliashost masterhost news # dec3100, ecee00-71a 128.138.240.105 dilcue dilcue.colorado.edu # pyr90x, ecee00-71a 128.138.240.106 igloo igloo.colorado.edu # sun3/160, ecee00-71a 128.138.240.110 math-annex math-annex.colorado.edu # annex IIe, EE 00-71A 128.138.240.111 amath-annex amath-annex.colorado.edu # annex IIe, ? 128.138.240.236 barnacle barnacle.colorado.edu # sun IPC /temp install 128.138.240.240 lucille lucille.colorado.edu # temp install/manchek 128.138.240.241 moist moist.colorado.edu # UnixOps floating address 128.138.240.243 rtfm rtfm.colorado.edu # vs2000, ecee00-71 128.138.240.244 bluellama bluellama.colorado.edu # vs3100, ecee00-71 128.138.240.245 coyote coyote.colorado.edu # vs3100, ecee00-71 128.138.240.246 rhubarb rhubarb.colorado.edu hibachi # vs3100, ecee00-71 128.138.240.247 bonjovi bonjovi.colorado.edu # sun3/60c, ee0071a 128.138.240.248 unixops-annex unixops-annex.colorado.edu # Annex IIe, ecee00-71a 128.138.240.249 isn isn.colorado.edu # Annex IIe, ecee00-71a 128.138.240.250 headbanger headbanger.colorado.edu # sun2/120, ecee00-71a 128.138.240.251 roadkill roadkill.colorado.edu blueturtle turtle # sun3/160, ecee00-71 128.138.240.252 matrix matrix.colorado.edu # hp9000/320, ecee00-71 128.138.240.253 wasteheat wasteheat.colorado.edu # vs3100, ecee00-71 128.138.244.22 soglio soglio.colorado.edu # sun IPC, ecot3-23 128.138.244.100 tmpgator tmpgator.colorado.edu # tmp gator on kirknet 128.138.244.101 tmpgator-1 tmpgator-1.colorado.edu 128.138.244.102 tmpgator-2 tmpgator-2.colorado.edu 128.138.244.103 tmpgator-3 tmpgator-3.colorado.edu 128.138.244.104 tmpgator-4 tmpgator-4.colorado.edu 128.138.244.105 tmpgator-5 tmpgator-5.colorado.edu 128.138.244.106 tmpgator-6 tmpgator-6.colorado.edu 128.138.244.107 tmpgator-7 tmpgator-7.colorado.edu 128.138.244.108 tmpgator-8 tmpgator-8.colorado.edu 128.138.246.1 duke duke.colorado.edu # sun4/260, ee00-71a 128.138.246.2 bird bird.colorado.edu # sun4/110, vlsi-lab 128.138.246.3 monk monk.colorado.edu # sun4/110, dsp-lab 128.138.246.4 bix bix.colorado.edu # ds3100, ecen 00-60 128.138.246.5 bessie bessie.colorado.edu # ds3100, ecen 00-60 128.138.246.6 billie billie.colorado.edu # ds3100, ecen 00-60 128.138.246.7 dufay dufay.colorado.edu # ds3100, ecot 6-3 128.138.246.8 joplin joplin.colorado.edu # ds3100, ? 128.138.246.9 count count.colorado.edu # dsR3000, ecen 00-60 128.138.246.10 glenn glenn.colorado.edu # dsR3000, ecen 00-60 128.138.246.11 satchmo satchmo.colorado.edu # dsR3000, ecen 00-60 128.138.246.12 trane trane.colorado.edu # dsR3000, ecen 00-60 128.138.246.13 wchandy wchandy.colorado.edu # ds2100, ecen 00-60 128.138.246.14 jellyroll jellyroll.colorado.edu # ds2100, ecen 00-60 128.138.246.15 fats fats.colorado.edu # ds2100, ecen 00-60 128.138.248.31 muddchuck muddchuck.colorado.edu # ibmpc, ecot3-21 128.138.248.32 dogstar dogstar.colorado.edu # ds5000, ecot3-21 128.138.248.49 silverado silverado.colorado.edu # 11/750, ecee00-71a 128.138.248.50 schof schof.colorado.edu # sun3/60, ecee00-71a 128.138.248.51 ecegator ecegator.colorado.edu # ECEE wing. 128.138.248.52 ecegator-1 ecegator-1.colorado.edu 128.138.248.53 ecegator-2 ecegator-2.colorado.edu 128.138.248.54 ecegator-3 ecegator-3.colorado.edu 128.138.248.55 ecegator-4 ecegator-4.colorado.edu 128.138.248.56 ecegator-5 ecegator-5.colorado.edu 128.138.248.57 ecegator-6 ecegator-6.colorado.edu 128.138.248.58 ecegator-7 ecegator-7.colorado.edu 128.138.248.59 ecegator-8 ecegator-8.colorado.edu 128.138.248.60 ecegator-9 ecegator-9.colorado.edu 128.138.248.61 ecegator-10 ecegator-10.colorado.edu 128.138.248.62 ecegator-11 ecegator-11.colorado.edu 128.138.248.63 ecegator-12 ecegator-12.colorado.edu 128.138.248.64 ecegator-13 ecegator-13.colorado.edu 128.138.248.65 ecegator-14 ecegator-14.colorado.edu 128.138.248.66 ecegator-15 ecegator-15.colorado.edu 128.138.248.67 ecegator-16 ecegator-16.colorado.edu 128.138.248.68 ecegator-17 ecegator-17.colorado.edu 128.138.248.69 ecegator-18 ecegator-18.colorado.edu 128.138.248.70 ecemail ecemail.colorado.edu # gator, ? 128.138.248.71 ecegator2 ecegator2.colorado.edu # OT wing 128.138.248.249 tosca tosca.colorado.edu # sun4/110, ot3-23 128.138.248.252 gwoptics gwoptics.colorado.edu # hp320, ecee2-2a 128.138.249.1 newton newton.colorado.edu # sun4/360, ecche1-10 128.138.249.2 gauss gauss.colorado.edu # sun4/40, ecche1-10 128.138.249.3 picard picard.colorado.edu # sun4/40, ecche1-10 128.138.249.4 laguerre laguerre.colorado.edu # sun4/40, ecot2-4 128.138.249.5 raphson raphson.colorado.edu # sun4/20, ecche1-10 128.138.249.9 vortex vortex.colorado.edu # Sun 4/40, ecot2-11 128.138.249.10 siegel siegel.colorado.edu # newt client, grant 128.138.249.11 vieta vieta.colorado.edu # sun4/40, cheme1-10 128.138.249.51 cauchy cauchy.colorado.edu # sun4/20, ecche1-10 128.138.249.52 poincare poincare.colorado.edu # IRIS 4d/25, ? 128.138.249.100 amathgator amathgator.colorado.edu # gatorbox, ? 128.138.249.101 amathgator-1 amathgator-1.colorado.edu # gatorbox, ? 128.138.249.102 amathgator-2 amathgator-2.colorado.edu # gatorbox, ? 128.138.249.103 amathgator-3 amathgator-3.colorado.edu # gatorbox, ? 128.138.249.104 amathgator-4 amathgator-4.colorado.edu # gatorbox, ? 128.138.249.105 amathgator-5 amathgator-5.colorado.edu # gatorbox, ? 128.138.249.106 amathgator-6 amathgator-6.colorado.edu # gatorbox, ? 128.138.249.107 amathgator-7 amathgator-7.colorado.edu # gatorbox, ? 128.138.249.108 amathgator-8 amathgator-8.colorado.edu # gatorbox, ? 128.138.249.109 amathgator-9 amathgator-9.colorado.edu # gatorbox, ? 128.138.251.5 gravity gravity.colorado.edu # hp380, ecche1-17 128.138.251.200 entropy entropy.colorado.edu # sun4/20, ecche1-1 128.138.251.201 chaos chaos.colorado.edu # sun4/20, cheme1-10 ## # # Administrative Affiliation: woz # ## 128.138.192.3 equinox equinox.woz.colorado.edu # uvaxii gpx, ecee00-69 128.138.192.4 lair lair.woz.colorado.edu # next, ecee00-69 128.138.192.10 ratpack ratpack.woz.colorado.edu # hp9000, ecee00-69 128.138.240.38 toejam toejam.colorado.edu # Mips M/120, ecee00-69 128.138.240.39 tofu tofu.colorado.edu # xterm, ecee00-69 128.138.240.231 snuffles snuffles.colorado.edu # xterm, ? 128.138.240.232 thud thud.colorado.edu # xterm, ? 128.138.240.234 beelzebub beelzebub.colorado.edu # ds3100, ecee00-69 128.138.240.254 headrest headrest.colorado.edu # hp9000/350, ecee00-69 128.138.241.12 blizzard blizzard.colorado.edu # xterm trent, ? 128.138.243.74 moose moose.colorado.edu # sun3/60c, ecee00-69 128.138.243.107 wozmac wozmac.colorado.edu # mac ii, ecee00-69
![Pub](https://img.shields.io/pub/v/action_cable_stream) # ActionCable in Dart using streams ActionCable is the default realtime websocket framework and protocol in Rails. This is a dart port of the client and protocol implementation, which is available in web, dartVM and flutter. This library is directly inspired by https://github.com/namiwang/actioncable_dart. ## Import ```yaml dependencies: action_cable_stream: ^0.0.3 ``` ## Usage ```dart import 'dart:convert'; import 'package:flutter/material.dart'; import 'package:action_cable_stream/action_cable_stream.dart'; import 'package:action_cable_stream/action_cable_stream_states.dart'; class _MyHomePageState extends State<MyHomePage> { final String _channel = 'MyChannel'; final String _action_cable_url = 'wss://example.com/cable'; ActionCable _cable; @override void initState() { super.initState(); _cable = ActionCable.Stream(_action_cable_url); _cable.stream.listen((value) { if (value is ActionCableConnected) { print('ActionCableConnected'); _cable.subscribeToChannel(_channel, channelParams: {'id': 10}); } else if (value is ActionCableSubscriptionConfirmed) { print('ActionCableSubscriptionConfirmed'); _cable.performAction(_channel, 'send_message', channelParams: {'id': 10}, actionParams: {'body': 'hello world'}); } else if (value is ActionCableMessage) { print('ActionCableMessage ${jsonEncode(value.message)}'); } }); } @override void dispose() { _cable.disconnect(); } @override Widget build(BuildContext context) { return new Scaffold( appBar: new AppBar( title: new Text("Action Cable Stream example"), ), body: StreamBuilder( stream: _cable.stream, initialData: ActionCableInitial(), builder: (context, AsyncSnapshot<ActionCableDataState> snapshot) { return Center(child: buildBody(snapshot)); }, )); } } Widget buildBody(AsyncSnapshot<ActionCableDataState> snapshot) { final state = snapshot.data; if (state is ActionCableInitial || state is ActionCableConnectionLoading || state is ActionCableSubscribeLoading) { return Text('Loading...'); } else if (state is ActionCableError) { return Text('Error... ${state.message}'); } else if (state is ActionCableSubscriptionConfirmed) { return Text('Subscription confirmed'); } else if (state is ActionCableSubscriptionRejected) { return Text('Subscription rejected'); } else if (state is ActionCableMessage) { return Text('Message received ${jsonEncode(state.message)}'); } else if (state is ActionCableDisconnected) { return Text('Disconnected'); } else { return Text('Something went wrong'); } } ``` ## ActionCable protocol Anycable has [a great doc](https://docs.anycable.io/#/misc/action_cable_protocol) on that topic.
import com.typesafe.sbt.SbtNativePackager.Universal import sbt.Keys._ import sbt._ object CopyLogback { def copyLogbackXml(fromProject: Project) = Seq( Compile / resourceGenerators += Def.task { copyDummyLogbackXml((fromProject / Compile / resources).value, (Universal / sourceDirectory).value) }.taskValue ) private def copyDummyLogbackXml(resources: Seq[File], sourceDirectory: File): Seq[File] = { val configFile = resources.filter(_.getName == "logback.dummy").head val outputPath = sourceDirectory / "conf" val targetFile = outputPath / (configFile.base + ".xml") IO.copyFile(configFile, targetFile) Seq(targetFile.getCanonicalFile) } }
# Regenerates Lyft project from current directory function re() { export INCLUDE_NON_APP_TRANSITIVE=2 export NO_SWIFTLINT=1 make -C $(git rev-parse --show-toplevel) update_dependencies targets=Lyft }
<a name="9.1.0"></a> # [9.1.0](https://github.com/ngrx/platform/compare/9.0.0...9.1.0) (2020-04-07) ### Bug Fixes
# This file needs to be sourced add_path() { export PATH=${PATH//":$1:"/:} export PATH=${PATH/%":$1"/} export PATH=${PATH/#"$1:"/} export PATH="$1${PATH:+":$PATH"}" } add_ld_path() { export LD_LIBRARY_PATH=${LD_LIBRARY_PATH//":$1:"/:} export LD_LIBRARY_PATH=${LD_LIBRARY_PATH/%":$1"/} export LD_LIBRARY_PATH=${LD_LIBRARY_PATH/#"$1:"/} export LD_LIBRARY_PATH="$1${LD_LIBRARY_PATH:+":$LD_LIBRARY_PATH"}" } add_PYTHONPATH() { export PYTHONPATH=${PYTHONPATH//":$1:"/:} export PYTHONPATH=${PYTHONPATH/%":$1"/} export PYTHONPATH=${PYTHONPATH/#"$1:"/} export PYTHONPATH="$1${PYTHONPATH:+":$PYTHONPATH"}" } scriptDir=$GAP_SDK_HOME install_dir=$scriptDir/install add_path $install_dir/workstation/bin add_ld_path $install_dir/workstation/lib add_PYTHONPATH $install_dir/workstation/python export PULP_CONFIGS_PATH=$install_dir/workstation/configs
#!/bin/bash ulimit -l unlimited fs=12000 zs=12000 b=1 g=4 budget=50000 #<7.5B script='bert_proxy_native.py -ll:py 1 --iterations 100 --seq-length 128 --num-heads 32 --hidden-size 4096 --num_layers 36' ss=7.5b.l18 #$FF_HOME/python/flexflow_python $script -ll:gpu 1 -ll:fsize $fs -ll:zsize $zs -b $b --budget 1000 --export ./$ss.b$b.g1.bg$budget #$FF_HOME/python/flexflow_python $script -ll:gpu $g -ll:fsize $fs -ll:zsize $zs -b $b --budget $budget --enable-parameter-parallel --enable-attribute-parallel --export ./$ss.b$b.g$g.bg$budget --import ./$ss.b$b.g1.bg$budget --taskgraph ./tg.$ss.b$b.g$g.bg$budget $FF_HOME/python/flexflow_python $script -ll:gpu $g -ll:fsize 12000 -ll:zsize $zs -b $b --enable-parameter-parallel --enable-attribute-parallel --import ./$ss.b$b.g$g.bg$budget #-lg:prof 1 -logfile spy_$ss.%.log -lg:spy -lg:prof_logfile prof_$ss.%.gz
import { CACHE_MANAGER, HttpService, Inject } from '@nestjs/common'; import { AppLogger } from './../../../logger/app-logger'; import { Dependency } from '../../dependency.interface'; import { Registry } from '../../registry.interface'; import { ComposerStructure } from './composer.structure'; import { SemanticService } from './../../semantic.service'; export class ComposerRegistry implements Registry { packageFileName: string; dependencies: Dependency[]; constructor( private readonly httpService: HttpService, private readonly semanticService: SemanticService, private readonly logger: AppLogger, @Inject(CACHE_MANAGER) private readonly cache, ) { this.packageFileName = 'composer.json'; } resolveRependencies(content: ComposerStructure) { this.dependencies = []; if (content.require) { this.dependencies.push(...this.toDependencyArray(content.require)); } if (content["require-dev"]) { this.dependencies.push( ...this.toDependencyArray(content["require-dev"]), ); } } toDependencyArray(dependencies: Map<string, string>) { const result: Dependency[] = []; for (const name in dependencies) { result.push({ name, currentVersion: dependencies[name].replace('^', ''), lastVersion: null, isOutdated: false, }); } return result; } async resolveOutdates(): Promise<Dependency[]> { for (const dependency of this.dependencies) { dependency.lastVersion = await this.getLastVersion(dependency); if ( dependency.lastVersion && dependency.currentVersion !== dependency.lastVersion ) { dependency.isOutdated = true; } } return this.dependencies.filter(dependency => dependency.isOutdated); } async getLastVersion(dependency: Dependency): Promise<string | null> { this.logger.debug(`Fetching the last version of "${dependency.name}"`); if (dependency.name === "php" || dependency.name === "ext-fileinfo") { return dependency.currentVersion } const cacheKey = `Cache:NpmRegister@getLastVersion:${dependency.name}`; let value = (await this.cache.get(cacheKey)) || null; if (value) { return value; } const response = await this.httpService .get(`https://repo.packagist.org/p/${dependency.name}.json`) .toPromise(); const item = response.data.packages[dependency.name] value = this.semanticService.getLastVersion(dependency.currentVersion, Object.keys(item)); await this.cache.set(cacheKey, value, { ttl: process.env.CACHE_REGISTRY_TTL }); return value; } }
package leecode /** * 二叉搜索树的最近公共祖先 * @author doive * on 2019/6/24 11:28 */ fun main() { /** * 二叉搜索树特点 * 左<根<右 */ fun lowestCommonAncestor(root: TreeNode?, p: TreeNode, q: TreeNode): TreeNode? { root ?: return null return when { (root.`val` - p.`val`) * (root.`val` - q.`val`) < 0 -> root root.`val` < p.`val` && root.`val` < q.`val` -> lowestCommonAncestor(root.right, p, q) else -> lowestCommonAncestor(root.left, p, q) } } }
#include <bits/stdc++.h> using namespace std; int n; int waves[100]; int low_tide_pointer; int high_tide_pointer; int main(){ std::cin >> n; for (int i = 0;i < n;i++) { std::cin >> waves[i]; } sort(waves, waves + n); if (n%2 == 0) { high_tide_pointer = n/2; low_tide_pointer = high_tide_pointer - 1; } else { low_tide_pointer = n/2; high_tide_pointer = low_tide_pointer + 1; } while (high_tide_pointer < n) { std::cout << waves[low_tide_pointer] << " " << waves[high_tide_pointer] << " "; low_tide_pointer--; high_tide_pointer++; } if (n%2 == 1) { std::cout << waves[0]; } return 0; }
package com.bzh.dytt.repository import android.util.Log import java.util.concurrent.* import javax.inject.Inject import javax.inject.Singleton class DelayObject<F, E : Runnable>(val flag: F, val data: E? = null) : Delayed { var startTimeMillis: Long = 0L override fun toString(): String { return "DelayObject{" + "flag=" + flag + ", startTime=" + startTimeMillis / 1000L + '}'.toString() } override fun getDelay(unit: TimeUnit): Long { val diff = startTimeMillis - System.currentTimeMillis() return unit.convert(diff, TimeUnit.MILLISECONDS) } override fun compareTo(other: Delayed): Int { return saturatedCast(this.startTimeMillis - (other as DelayObject<*, *>).startTimeMillis) } override fun equals(other: Any?): Boolean { if (this === other) return true if (javaClass != other?.javaClass) return false other as DelayObject<*, *> if (flag != other.flag) return false return true } override fun hashCode(): Int { return flag?.hashCode() ?: 0 } private fun saturatedCast(value: Long): Int { if (value > Integer.MAX_VALUE) return Integer.MAX_VALUE return if (value < Integer.MIN_VALUE) Integer.MIN_VALUE else value.toInt() } } @Singleton class DelayRunnableQueue<F, E : Runnable> @Inject constructor() { companion object { const val TAG = "DelayRunnableQueue" } private val delayOfEachProducedMessageMillis: Long = 1000L private val delayLinkQueue: ConcurrentLinkedQueue<DelayObject<F, E>> = ConcurrentLinkedQueue() private val delayQueue: DelayQueue<DelayObject<F, E>> = DelayQueue() private val executor = Executors.newSingleThreadExecutor()!! private var lastMills: Long = System.currentTimeMillis() init { start() } fun start() { executor.execute { while (true) { try { val item: DelayObject<F, E> = delayQueue.take() item.data?.run() } catch (e: InterruptedException) { e.printStackTrace() } } } } fun addDelay(f: F, runnable: E) { val newDelayObject = DelayObject<F, E>(f, runnable) if (delayLinkQueue.contains(newDelayObject)) { return } if (delayLinkQueue.size == 0) { newDelayObject.startTimeMillis = if (System.currentTimeMillis() > lastMills) System.currentTimeMillis() else lastMills } else { for (delay in delayLinkQueue.iterator()) { newDelayObject.startTimeMillis = delay.startTimeMillis + delayOfEachProducedMessageMillis } } lastMills = newDelayObject.startTimeMillis + delayOfEachProducedMessageMillis Log.d(TAG, "addDelay Flag=$f Delay=$newDelayObject ${delayQueue.size} ${delayLinkQueue.size}") delayLinkQueue.offer(newDelayObject) delayQueue.put(newDelayObject) } fun removeDelay(f: F) { var isFound: Boolean? = null val delayObject: DelayObject<F, E> = DelayObject(f) for (delay in delayLinkQueue.iterator()) { if (delay.flag == f) { isFound = true } if (isFound != null && isFound) { delay.startTimeMillis -= delayOfEachProducedMessageMillis } } delayLinkQueue.remove(delayObject) delayQueue.remove(delayObject) Log.d(TAG, "removeDelay Flag=$f ${delayQueue.size} ${delayLinkQueue.size}") } fun finishDelay(f: F) { val delayObject = DelayObject<F, E>(f) delayLinkQueue.remove(delayObject) Log.d(TAG, "finishDelay Flag=$f ${delayQueue.size} ${delayLinkQueue.size}") } }
/*! * @author electricessence / https://github.com/electricessence/ * Licensing: MIT https://github.com/electricessence/TypeScript.NET/blob/master/LICENSE.md */ import { Match, Regex } from "./RegularExpressions"; import { IEnumerator } from "../Collections/Enumeration/IEnumerator"; export declare class RegexMatchEnumerator { private readonly _pattern; constructor(pattern: string | RegExp | Regex); matches(input: string): IEnumerator<Match>; static matches(input: string, pattern: string | RegExp | Regex): IEnumerator<Match>; } declare const _default: typeof RegexMatchEnumerator.matches; export default _default;
#!/usr/bin/env python3 # See LICENSE for licensing information. # # Copyright (c) 2016-2021 Regents of the University of California # All rights reserved. # import debug from tech import cell_properties as props import bitcell_base class sky130_dummy_bitcell(bitcell_base.bitcell_base): """ A single bit cell (6T, 8T, etc.) This module implements the single memory cell used in the design. It is a hand-made cell, so the layout and netlist should be available in the technology library. """ def __init__(self, version, name=""): # Ignore the name argument if version == "opt1": cell_name = "sky130_fd_bd_sram__openram_sp_cell_opt1_dummy" elif version == "opt1a": cell_name = "sky130_fd_bd_sram__openram_sp_cell_opt1a_dummy" super().__init__(name, cell_name, prop=props.bitcell_1port) debug.info(2, "Create dummy bitcell")
// // LocalTextStorageHelper.h // AWARE // // Created by Yuuki Nishiyama on 1/16/16. // Copyright © 2016 Yuuki NISHIYAMA. All rights reserved. // #import <Foundation/Foundation.h> #import "AWAREDebugMessageLogger.h" @interface LocalFileStorageHelper : NSObject - (instancetype) initWithStorageName:(NSString *) storageName; // An array list for a buffer //@property (weak, nonatomic) NSMutableArray * bufferArray; - (void) setCSVHeader:(NSArray *) headers; - (NSData *) getCSVData; /// create file - (BOOL) createNewFile:(NSString*)fileName; /// clear file - (bool) clearFile:(NSString *) fileName; /// save data - (bool) saveDataWithArray:(NSArray*) array; - (bool) saveData:(NSDictionary *)data; - (bool) saveData:(NSDictionary *)data toLocalFile:(NSString *)fileName; - (BOOL) appendLine:(NSString *)line; // get sensor data - (NSMutableString *) getSensorDataForPost; - (NSMutableString *) fixJsonFormat:(NSMutableString *) clipedText; - (NSInteger) getMaxDateLength; - (uint64_t) getFileSize; - (uint64_t) getFileSizeWithName:(NSString*) name; // set and get mark - (void) setNextMark; - (void) resetMark; - (int) getMarker; // set and get a losted text length - (int) getLostedTextLength; - (void) setLostedTextLength:(int)lostedTextLength; // set debug tracker - (void) trackDebugEventsWithDMLogger:(AWAREDebugMessageLogger *) logger; // get sensor storage name and path - (NSString *) getSensorName; - (NSString *) getFilePath; // set buffer and db lock - (void) setBufferSize:(int) size; //- (void)dbLock; //- (void)dbUnlock; @end
unit DW.iOSapi.Metal; {*******************************************************} { } { Kastri } { } { Delphi Worlds Cross-Platform Library } { } { Copyright 2020-2021 Dave Nottage under MIT license } { which is located in the root folder of this library } { } {*******************************************************} {$I DW.GlobalDefines.inc} interface uses // macOS Macapi.ObjectiveC, iOSapi.CocoaTypes, Macapi.CoreFoundation, Macapi.Dispatch, // iOS iOSapi.Foundation, // DW DW.Macapi.Dispatch, DW.iOSapi.Foundation, DW.iOSapi.IOSurface; const MTLResourceCPUCacheModeShift = 0; MTLResourceCPUCacheModeMask = ($f shl MTLResourceCPUCacheModeShift); MTLResourceStorageModeShift = 4; MTLResourceStorageModeMask = ($f shl MTLResourceStorageModeShift); MTLResourceHazardTrackingModeShift = 8; MTLResourceHazardTrackingModeMask = ($3 shl MTLResourceHazardTrackingModeShift); MTLCounterDontSample = -1; MTLMaxResourceStatePassSampleBuffers = 4; MTLMaxRenderPassSampleBuffers = 4; MTLMaxBlitPassSampleBuffers = 4; MTLMaxComputePassSampleBuffers = 4; MTLResourceUsageRead = 1; MTLResourceUsageWrite = 2; MTLResourceUsageSample = 4; MTLBarrierScopeBuffers = 1; MTLBarrierScopeTextures = 2; MTLBarrierScopeRenderTargets = 4; MTLPurgeableStateKeepCurrent = 1; MTLPurgeableStateNonVolatile = 2; MTLPurgeableStateVolatile = 3; MTLPurgeableStateEmpty = 4; MTLCPUCacheModeDefaultCache = 0; MTLCPUCacheModeWriteCombined = 1; MTLStorageModeShared = 0; MTLStorageModeManaged = 1; MTLStorageModePrivate = 2; MTLStorageModeMemoryless = 3; MTLHazardTrackingModeDefault = 0; MTLHazardTrackingModeUntracked = 1; MTLHazardTrackingModeTracked = 2; MTLResourceCPUCacheModeDefaultCache = 0; MTLResourceCPUCacheModeWriteCombined = 1; MTLResourceStorageModeShared = 0; MTLResourceStorageModeManaged = 16; MTLResourceStorageModePrivate = 32; MTLResourceStorageModeMemoryless = 48; MTLResourceHazardTrackingModeDefault = 0; MTLResourceHazardTrackingModeUntracked = 256; MTLResourceHazardTrackingModeTracked = 512; MTLResourceOptionCPUCacheModeDefault = MTLResourceCPUCacheModeDefaultCache; MTLResourceOptionCPUCacheModeWriteCombined = MTLResourceCPUCacheModeWriteCombined; MTLPixelFormatInvalid = 0; MTLPixelFormatA8Unorm = 1; MTLPixelFormatR8Unorm = 10; MTLPixelFormatR8Unorm_sRGB = 11; MTLPixelFormatR8Snorm = 12; MTLPixelFormatR8Uint = 13; MTLPixelFormatR8Sint = 14; MTLPixelFormatR16Unorm = 20; MTLPixelFormatR16Snorm = 22; MTLPixelFormatR16Uint = 23; MTLPixelFormatR16Sint = 24; MTLPixelFormatR16Float = 25; MTLPixelFormatRG8Unorm = 30; MTLPixelFormatRG8Unorm_sRGB = 31; MTLPixelFormatRG8Snorm = 32; MTLPixelFormatRG8Uint = 33; MTLPixelFormatRG8Sint = 34; MTLPixelFormatB5G6R5Unorm = 40; MTLPixelFormatA1BGR5Unorm = 41; MTLPixelFormatABGR4Unorm = 42; MTLPixelFormatBGR5A1Unorm = 43; MTLPixelFormatR32Uint = 53; MTLPixelFormatR32Sint = 54; MTLPixelFormatR32Float = 55; MTLPixelFormatRG16Unorm = 60; MTLPixelFormatRG16Snorm = 62; MTLPixelFormatRG16Uint = 63; MTLPixelFormatRG16Sint = 64; MTLPixelFormatRG16Float = 65; MTLPixelFormatRGBA8Unorm = 70; MTLPixelFormatRGBA8Unorm_sRGB = 71; MTLPixelFormatRGBA8Snorm = 72; MTLPixelFormatRGBA8Uint = 73; MTLPixelFormatRGBA8Sint = 74; MTLPixelFormatBGRA8Unorm = 80; MTLPixelFormatBGRA8Unorm_sRGB = 81; MTLPixelFormatRGB10A2Unorm = 90; MTLPixelFormatRGB10A2Uint = 91; MTLPixelFormatRG11B10Float = 92; MTLPixelFormatRGB9E5Float = 93; MTLPixelFormatBGR10A2Unorm = 94; MTLPixelFormatBGR10_XR = 554; MTLPixelFormatBGR10_XR_sRGB = 555; MTLPixelFormatRG32Uint = 103; MTLPixelFormatRG32Sint = 104; MTLPixelFormatRG32Float = 105; MTLPixelFormatRGBA16Unorm = 110; MTLPixelFormatRGBA16Snorm = 112; MTLPixelFormatRGBA16Uint = 113; MTLPixelFormatRGBA16Sint = 114; MTLPixelFormatRGBA16Float = 115; MTLPixelFormatBGRA10_XR = 552; MTLPixelFormatBGRA10_XR_sRGB = 553; MTLPixelFormatRGBA32Uint = 123; MTLPixelFormatRGBA32Sint = 124; MTLPixelFormatRGBA32Float = 125; MTLPixelFormatBC1_RGBA = 130; MTLPixelFormatBC1_RGBA_sRGB = 131; MTLPixelFormatBC2_RGBA = 132; MTLPixelFormatBC2_RGBA_sRGB = 133; MTLPixelFormatBC3_RGBA = 134; MTLPixelFormatBC3_RGBA_sRGB = 135; MTLPixelFormatBC4_RUnorm = 140; MTLPixelFormatBC4_RSnorm = 141; MTLPixelFormatBC5_RGUnorm = 142; MTLPixelFormatBC5_RGSnorm = 143; MTLPixelFormatBC6H_RGBFloat = 150; MTLPixelFormatBC6H_RGBUfloat = 151; MTLPixelFormatBC7_RGBAUnorm = 152; MTLPixelFormatBC7_RGBAUnorm_sRGB = 153; MTLPixelFormatPVRTC_RGB_2BPP = 160; MTLPixelFormatPVRTC_RGB_2BPP_sRGB = 161; MTLPixelFormatPVRTC_RGB_4BPP = 162; MTLPixelFormatPVRTC_RGB_4BPP_sRGB = 163; MTLPixelFormatPVRTC_RGBA_2BPP = 164; MTLPixelFormatPVRTC_RGBA_2BPP_sRGB = 165; MTLPixelFormatPVRTC_RGBA_4BPP = 166; MTLPixelFormatPVRTC_RGBA_4BPP_sRGB = 167; MTLPixelFormatEAC_R11Unorm = 170; MTLPixelFormatEAC_R11Snorm = 172; MTLPixelFormatEAC_RG11Unorm = 174; MTLPixelFormatEAC_RG11Snorm = 176; MTLPixelFormatEAC_RGBA8 = 178; MTLPixelFormatEAC_RGBA8_sRGB = 179; MTLPixelFormatETC2_RGB8 = 180; MTLPixelFormatETC2_RGB8_sRGB = 181; MTLPixelFormatETC2_RGB8A1 = 182; MTLPixelFormatETC2_RGB8A1_sRGB = 183; MTLPixelFormatASTC_4x4_sRGB = 186; MTLPixelFormatASTC_5x4_sRGB = 187; MTLPixelFormatASTC_5x5_sRGB = 188; MTLPixelFormatASTC_6x5_sRGB = 189; MTLPixelFormatASTC_6x6_sRGB = 190; MTLPixelFormatASTC_8x5_sRGB = 192; MTLPixelFormatASTC_8x6_sRGB = 193; MTLPixelFormatASTC_8x8_sRGB = 194; MTLPixelFormatASTC_10x5_sRGB = 195; MTLPixelFormatASTC_10x6_sRGB = 196; MTLPixelFormatASTC_10x8_sRGB = 197; MTLPixelFormatASTC_10x10_sRGB = 198; MTLPixelFormatASTC_12x10_sRGB = 199; MTLPixelFormatASTC_12x12_sRGB = 200; MTLPixelFormatASTC_4x4_LDR = 204; MTLPixelFormatASTC_5x4_LDR = 205; MTLPixelFormatASTC_5x5_LDR = 206; MTLPixelFormatASTC_6x5_LDR = 207; MTLPixelFormatASTC_6x6_LDR = 208; MTLPixelFormatASTC_8x5_LDR = 210; MTLPixelFormatASTC_8x6_LDR = 211; MTLPixelFormatASTC_8x8_LDR = 212; MTLPixelFormatASTC_10x5_LDR = 213; MTLPixelFormatASTC_10x6_LDR = 214; MTLPixelFormatASTC_10x8_LDR = 215; MTLPixelFormatASTC_10x10_LDR = 216; MTLPixelFormatASTC_12x10_LDR = 217; MTLPixelFormatASTC_12x12_LDR = 218; MTLPixelFormatASTC_4x4_HDR = 222; MTLPixelFormatASTC_5x4_HDR = 223; MTLPixelFormatASTC_5x5_HDR = 224; MTLPixelFormatASTC_6x5_HDR = 225; MTLPixelFormatASTC_6x6_HDR = 226; MTLPixelFormatASTC_8x5_HDR = 228; MTLPixelFormatASTC_8x6_HDR = 229; MTLPixelFormatASTC_8x8_HDR = 230; MTLPixelFormatASTC_10x5_HDR = 231; MTLPixelFormatASTC_10x6_HDR = 232; MTLPixelFormatASTC_10x8_HDR = 233; MTLPixelFormatASTC_10x10_HDR = 234; MTLPixelFormatASTC_12x10_HDR = 235; MTLPixelFormatASTC_12x12_HDR = 236; MTLPixelFormatGBGR422 = 240; MTLPixelFormatBGRG422 = 241; MTLPixelFormatDepth16Unorm = 250; MTLPixelFormatDepth32Float = 252; MTLPixelFormatStencil8 = 253; MTLPixelFormatDepth24Unorm_Stencil8 = 255; MTLPixelFormatDepth32Float_Stencil8 = 260; MTLPixelFormatX32_Stencil8 = 261; MTLPixelFormatX24_Stencil8 = 262; MTLTextureType1D = 0; MTLTextureType1DArray = 1; MTLTextureType2D = 2; MTLTextureType2DArray = 3; MTLTextureType2DMultisample = 4; MTLTextureTypeCube = 5; MTLTextureTypeCubeArray = 6; MTLTextureType3D = 7; MTLTextureType2DMultisampleArray = 8; MTLTextureTypeTextureBuffer = 9; MTLTextureSwizzleZero = 0; MTLTextureSwizzleOne = 1; MTLTextureSwizzleRed = 2; MTLTextureSwizzleGreen = 3; MTLTextureSwizzleBlue = 4; MTLTextureSwizzleAlpha = 5; MTLTextureUsageUnknown = 0; MTLTextureUsageShaderRead = 1; MTLTextureUsageShaderWrite = 2; MTLTextureUsageRenderTarget = 4; MTLTextureUsagePixelFormatView = 16; MTLDataTypeNone = 0; MTLDataTypeStruct = 1; MTLDataTypeArray = 2; MTLDataTypeFloat = 3; MTLDataTypeFloat2 = 4; MTLDataTypeFloat3 = 5; MTLDataTypeFloat4 = 6; MTLDataTypeFloat2x2 = 7; MTLDataTypeFloat2x3 = 8; MTLDataTypeFloat2x4 = 9; MTLDataTypeFloat3x2 = 10; MTLDataTypeFloat3x3 = 11; MTLDataTypeFloat3x4 = 12; MTLDataTypeFloat4x2 = 13; MTLDataTypeFloat4x3 = 14; MTLDataTypeFloat4x4 = 15; MTLDataTypeHalf = 16; MTLDataTypeHalf2 = 17; MTLDataTypeHalf3 = 18; MTLDataTypeHalf4 = 19; MTLDataTypeHalf2x2 = 20; MTLDataTypeHalf2x3 = 21; MTLDataTypeHalf2x4 = 22; MTLDataTypeHalf3x2 = 23; MTLDataTypeHalf3x3 = 24; MTLDataTypeHalf3x4 = 25; MTLDataTypeHalf4x2 = 26; MTLDataTypeHalf4x3 = 27; MTLDataTypeHalf4x4 = 28; MTLDataTypeInt = 29; MTLDataTypeInt2 = 30; MTLDataTypeInt3 = 31; MTLDataTypeInt4 = 32; MTLDataTypeUInt = 33; MTLDataTypeUInt2 = 34; MTLDataTypeUInt3 = 35; MTLDataTypeUInt4 = 36; MTLDataTypeShort = 37; MTLDataTypeShort2 = 38; MTLDataTypeShort3 = 39; MTLDataTypeShort4 = 40; MTLDataTypeUShort = 41; MTLDataTypeUShort2 = 42; MTLDataTypeUShort3 = 43; MTLDataTypeUShort4 = 44; MTLDataTypeChar = 45; MTLDataTypeChar2 = 46; MTLDataTypeChar3 = 47; MTLDataTypeChar4 = 48; MTLDataTypeUChar = 49; MTLDataTypeUChar2 = 50; MTLDataTypeUChar3 = 51; MTLDataTypeUChar4 = 52; MTLDataTypeBool = 53; MTLDataTypeBool2 = 54; MTLDataTypeBool3 = 55; MTLDataTypeBool4 = 56; MTLDataTypeTexture = 58; MTLDataTypeSampler = 59; MTLDataTypePointer = 60; MTLDataTypeR8Unorm = 62; MTLDataTypeR8Snorm = 63; MTLDataTypeR16Unorm = 64; MTLDataTypeR16Snorm = 65; MTLDataTypeRG8Unorm = 66; MTLDataTypeRG8Snorm = 67; MTLDataTypeRG16Unorm = 68; MTLDataTypeRG16Snorm = 69; MTLDataTypeRGBA8Unorm = 70; MTLDataTypeRGBA8Unorm_sRGB = 71; MTLDataTypeRGBA8Snorm = 72; MTLDataTypeRGBA16Unorm = 73; MTLDataTypeRGBA16Snorm = 74; MTLDataTypeRGB10A2Unorm = 75; MTLDataTypeRG11B10Float = 76; MTLDataTypeRGB9E5Float = 77; MTLDataTypeRenderPipeline = 78; MTLDataTypeComputePipeline = 79; MTLDataTypeIndirectCommandBuffer = 80; MTLDataTypeVisibleFunctionTable = 115; MTLDataTypeIntersectionFunctionTable = 116; MTLDataTypePrimitiveAccelerationStructure = 117; MTLDataTypeInstanceAccelerationStructure = 118; MTLArgumentTypeBuffer = 0; MTLArgumentTypeThreadgroupMemory = 1; MTLArgumentTypeTexture = 2; MTLArgumentTypeSampler = 3; MTLArgumentTypeImageblockData = 16; MTLArgumentTypeImageblock = 17; MTLArgumentTypeVisibleFunctionTable = 24; MTLArgumentTypePrimitiveAccelerationStructure = 25; MTLArgumentTypeInstanceAccelerationStructure = 26; MTLArgumentTypeIntersectionFunctionTable = 27; MTLArgumentAccessReadOnly = 0; MTLArgumentAccessReadWrite = 1; MTLArgumentAccessWriteOnly = 2; MTLFunctionOptionNone = 0; MTLFunctionOptionCompileToBinary = 1; MTLPatchTypeNone = 0; MTLPatchTypeTriangle = 1; MTLPatchTypeQuad = 2; MTLFunctionTypeVertex = 1; MTLFunctionTypeFragment = 2; MTLFunctionTypeKernel = 3; MTLFunctionTypeVisible = 5; MTLFunctionTypeIntersection = 6; MTLLanguageVersion1_0 = 65536; MTLLanguageVersion1_1 = 65537; MTLLanguageVersion1_2 = 65538; MTLLanguageVersion2_0 = 131072; MTLLanguageVersion2_1 = 131073; MTLLanguageVersion2_2 = 131074; MTLLanguageVersion2_3 = 131075; MTLLibraryTypeExecutable = 0; MTLLibraryTypeDynamic = 1; MTLLibraryErrorUnsupported = 1; MTLLibraryErrorInternal = 2; MTLLibraryErrorCompileFailure = 3; MTLLibraryErrorCompileWarning = 4; MTLLibraryErrorFunctionNotFound = 5; MTLLibraryErrorFileNotFound = 6; MTLCounterSampleBufferErrorOutOfMemory = 0; MTLCounterSampleBufferErrorInvalid = 1; MTLCounterSampleBufferErrorInternal = 2; MTLFeatureSet_iOS_GPUFamily1_v1 = 0; MTLFeatureSet_iOS_GPUFamily2_v1 = 1; MTLFeatureSet_iOS_GPUFamily1_v2 = 2; MTLFeatureSet_iOS_GPUFamily2_v2 = 3; MTLFeatureSet_iOS_GPUFamily3_v1 = 4; MTLFeatureSet_iOS_GPUFamily1_v3 = 5; MTLFeatureSet_iOS_GPUFamily2_v3 = 6; MTLFeatureSet_iOS_GPUFamily3_v2 = 7; MTLFeatureSet_iOS_GPUFamily1_v4 = 8; MTLFeatureSet_iOS_GPUFamily2_v4 = 9; MTLFeatureSet_iOS_GPUFamily3_v3 = 10; MTLFeatureSet_iOS_GPUFamily4_v1 = 11; MTLFeatureSet_iOS_GPUFamily1_v5 = 12; MTLFeatureSet_iOS_GPUFamily2_v5 = 13; MTLFeatureSet_iOS_GPUFamily3_v4 = 14; MTLFeatureSet_iOS_GPUFamily4_v2 = 15; MTLFeatureSet_iOS_GPUFamily5_v1 = 16; MTLFeatureSet_macOS_GPUFamily1_v1 = 10000; MTLFeatureSet_OSX_GPUFamily1_v1 = MTLFeatureSet_macOS_GPUFamily1_v1; MTLFeatureSet_macOS_GPUFamily1_v2 = 10001; MTLFeatureSet_OSX_GPUFamily1_v2 = MTLFeatureSet_macOS_GPUFamily1_v2; MTLFeatureSet_macOS_ReadWriteTextureTier2 = 10002; MTLFeatureSet_OSX_ReadWriteTextureTier2 = MTLFeatureSet_macOS_ReadWriteTextureTier2; MTLFeatureSet_macOS_GPUFamily1_v3 = 10003; MTLFeatureSet_macOS_GPUFamily1_v4 = 10004; MTLFeatureSet_macOS_GPUFamily2_v1 = 10005; MTLFeatureSet_tvOS_GPUFamily1_v1 = 30000; MTLFeatureSet_tvOS_GPUFamily1_v2 = 30001; MTLFeatureSet_tvOS_GPUFamily1_v3 = 30002; MTLFeatureSet_tvOS_GPUFamily1_v4 = 30004; MTLGPUFamilyApple1 = 1001; MTLGPUFamilyApple2 = 1002; MTLGPUFamilyApple3 = 1003; MTLGPUFamilyApple4 = 1004; MTLGPUFamilyApple5 = 1005; MTLGPUFamilyApple6 = 1006; MTLGPUFamilyApple7 = 1007; MTLGPUFamilyMac1 = 2001; MTLGPUFamilyMac2 = 2002; MTLGPUFamilyCommon1 = 3001; MTLGPUFamilyCommon2 = 3002; MTLGPUFamilyCommon3 = 3003; MTLGPUFamilyMacCatalyst1 = 4001; MTLGPUFamilyMacCatalyst2 = 4002; MTLPipelineOptionNone = 0; MTLPipelineOptionArgumentInfo = 1; MTLPipelineOptionBufferTypeInfo = 2; MTLPipelineOptionFailOnBinaryArchiveMiss = 4; MTLReadWriteTextureTierNone = 0; MTLReadWriteTextureTier1 = 1; MTLReadWriteTextureTier2 = 2; MTLArgumentBuffersTier1 = 0; MTLArgumentBuffersTier2 = 1; MTLSparseTextureRegionAlignmentModeOutward = 0; MTLSparseTextureRegionAlignmentModeInward = 1; MTLCounterSamplingPointAtStageBoundary = 0; MTLCounterSamplingPointAtDrawBoundary = 1; MTLCounterSamplingPointAtDispatchBoundary = 2; MTLCounterSamplingPointAtTileDispatchBoundary = 3; MTLCounterSamplingPointAtBlitBoundary = 4; MTLSparseTextureMappingModeMap = 0; MTLSparseTextureMappingModeUnmap = 1; MTLLoadActionDontCare = 0; MTLLoadActionLoad = 1; MTLLoadActionClear = 2; MTLStoreActionDontCare = 0; MTLStoreActionStore = 1; MTLStoreActionMultisampleResolve = 2; MTLStoreActionStoreAndMultisampleResolve = 3; MTLStoreActionUnknown = 4; MTLStoreActionCustomSampleDepthStore = 5; MTLStoreActionOptionNone = 0; MTLStoreActionOptionCustomSamplePositions = 1; MTLMultisampleDepthResolveFilterSample0 = 0; MTLMultisampleDepthResolveFilterMin = 1; MTLMultisampleDepthResolveFilterMax = 2; MTLMultisampleStencilResolveFilterSample0 = 0; MTLMultisampleStencilResolveFilterDepthResolvedSample = 1; MTLBlitOptionNone = 0; MTLBlitOptionDepthFromDepthStencil = 1; MTLBlitOptionStencilFromDepthStencil = 2; MTLBlitOptionRowLinearPVRTC = 4; MTLCommandBufferStatusNotEnqueued = 0; MTLCommandBufferStatusEnqueued = 1; MTLCommandBufferStatusCommitted = 2; MTLCommandBufferStatusScheduled = 3; MTLCommandBufferStatusCompleted = 4; MTLCommandBufferStatusError = 5; MTLCommandBufferErrorNone = 0; MTLCommandBufferErrorInternal = 1; MTLCommandBufferErrorTimeout = 2; MTLCommandBufferErrorPageFault = 3; MTLCommandBufferErrorBlacklisted = 4; MTLCommandBufferErrorNotPermitted = 7; MTLCommandBufferErrorOutOfMemory = 8; MTLCommandBufferErrorInvalidResource = 9; MTLCommandBufferErrorMemoryless = 10; MTLCommandBufferErrorDeviceRemoved = 11; MTLCommandBufferErrorOptionNone = 0; MTLCommandBufferErrorOptionEncoderExecutionStatus = 1; MTLCommandEncoderErrorStateUnknown = 0; MTLCommandEncoderErrorStateCompleted = 1; MTLCommandEncoderErrorStateAffected = 2; MTLCommandEncoderErrorStatePending = 3; MTLCommandEncoderErrorStateFaulted = 4; MTLDispatchTypeSerial = 0; MTLDispatchTypeConcurrent = 1; MTLCompareFunctionNever = 0; MTLCompareFunctionLess = 1; MTLCompareFunctionEqual = 2; MTLCompareFunctionLessEqual = 3; MTLCompareFunctionGreater = 4; MTLCompareFunctionNotEqual = 5; MTLCompareFunctionGreaterEqual = 6; MTLCompareFunctionAlways = 7; MTLStencilOperationKeep = 0; MTLStencilOperationZero = 1; MTLStencilOperationReplace = 2; MTLStencilOperationIncrementClamp = 3; MTLStencilOperationDecrementClamp = 4; MTLStencilOperationInvert = 5; MTLStencilOperationIncrementWrap = 6; MTLStencilOperationDecrementWrap = 7; MTLAttributeFormatInvalid = 0; MTLAttributeFormatUChar2 = 1; MTLAttributeFormatUChar3 = 2; MTLAttributeFormatUChar4 = 3; MTLAttributeFormatChar2 = 4; MTLAttributeFormatChar3 = 5; MTLAttributeFormatChar4 = 6; MTLAttributeFormatUChar2Normalized = 7; MTLAttributeFormatUChar3Normalized = 8; MTLAttributeFormatUChar4Normalized = 9; MTLAttributeFormatChar2Normalized = 10; MTLAttributeFormatChar3Normalized = 11; MTLAttributeFormatChar4Normalized = 12; MTLAttributeFormatUShort2 = 13; MTLAttributeFormatUShort3 = 14; MTLAttributeFormatUShort4 = 15; MTLAttributeFormatShort2 = 16; MTLAttributeFormatShort3 = 17; MTLAttributeFormatShort4 = 18; MTLAttributeFormatUShort2Normalized = 19; MTLAttributeFormatUShort3Normalized = 20; MTLAttributeFormatUShort4Normalized = 21; MTLAttributeFormatShort2Normalized = 22; MTLAttributeFormatShort3Normalized = 23; MTLAttributeFormatShort4Normalized = 24; MTLAttributeFormatHalf2 = 25; MTLAttributeFormatHalf3 = 26; MTLAttributeFormatHalf4 = 27; MTLAttributeFormatFloat = 28; MTLAttributeFormatFloat2 = 29; MTLAttributeFormatFloat3 = 30; MTLAttributeFormatFloat4 = 31; MTLAttributeFormatInt = 32; MTLAttributeFormatInt2 = 33; MTLAttributeFormatInt3 = 34; MTLAttributeFormatInt4 = 35; MTLAttributeFormatUInt = 36; MTLAttributeFormatUInt2 = 37; MTLAttributeFormatUInt3 = 38; MTLAttributeFormatUInt4 = 39; MTLAttributeFormatInt1010102Normalized = 40; MTLAttributeFormatUInt1010102Normalized = 41; MTLAttributeFormatUChar4Normalized_BGRA = 42; MTLAttributeFormatUChar = 45; MTLAttributeFormatChar = 46; MTLAttributeFormatUCharNormalized = 47; MTLAttributeFormatCharNormalized = 48; MTLAttributeFormatUShort = 49; MTLAttributeFormatShort = 50; MTLAttributeFormatUShortNormalized = 51; MTLAttributeFormatShortNormalized = 52; MTLAttributeFormatHalf = 53; MTLIndexTypeUInt16 = 0; MTLIndexTypeUInt32 = 1; MTLStepFunctionConstant = 0; MTLStepFunctionPerVertex = 1; MTLStepFunctionPerInstance = 2; MTLStepFunctionPerPatch = 3; MTLStepFunctionPerPatchControlPoint = 4; MTLStepFunctionThreadPositionInGridX = 5; MTLStepFunctionThreadPositionInGridY = 6; MTLStepFunctionThreadPositionInGridXIndexed = 7; MTLStepFunctionThreadPositionInGridYIndexed = 8; MTLMutabilityDefault = 0; MTLMutabilityMutable = 1; MTLMutabilityImmutable = 2; MTLPrimitiveTypePoint = 0; MTLPrimitiveTypeLine = 1; MTLPrimitiveTypeLineStrip = 2; MTLPrimitiveTypeTriangle = 3; MTLPrimitiveTypeTriangleStrip = 4; MTLVisibilityResultModeDisabled = 0; MTLVisibilityResultModeBoolean = 1; MTLVisibilityResultModeCounting = 2; MTLCullModeNone = 0; MTLCullModeFront = 1; MTLCullModeBack = 2; MTLWindingClockwise = 0; MTLWindingCounterClockwise = 1; MTLDepthClipModeClip = 0; MTLDepthClipModeClamp = 1; MTLTriangleFillModeFill = 0; MTLTriangleFillModeLines = 1; MTLRenderStageVertex = 1; MTLRenderStageFragment = 2; MTLBlendFactorZero = 0; MTLBlendFactorOne = 1; MTLBlendFactorSourceColor = 2; MTLBlendFactorOneMinusSourceColor = 3; MTLBlendFactorSourceAlpha = 4; MTLBlendFactorOneMinusSourceAlpha = 5; MTLBlendFactorDestinationColor = 6; MTLBlendFactorOneMinusDestinationColor = 7; MTLBlendFactorDestinationAlpha = 8; MTLBlendFactorOneMinusDestinationAlpha = 9; MTLBlendFactorSourceAlphaSaturated = 10; MTLBlendFactorBlendColor = 11; MTLBlendFactorOneMinusBlendColor = 12; MTLBlendFactorBlendAlpha = 13; MTLBlendFactorOneMinusBlendAlpha = 14; MTLBlendFactorSource1Color = 15; MTLBlendFactorOneMinusSource1Color = 16; MTLBlendFactorSource1Alpha = 17; MTLBlendFactorOneMinusSource1Alpha = 18; MTLBlendOperationAdd = 0; MTLBlendOperationSubtract = 1; MTLBlendOperationReverseSubtract = 2; MTLBlendOperationMin = 3; MTLBlendOperationMax = 4; MTLColorWriteMaskNone = 0; MTLColorWriteMaskRed = 8; MTLColorWriteMaskGreen = 4; MTLColorWriteMaskBlue = 2; MTLColorWriteMaskAlpha = 1; MTLColorWriteMaskAll = 15; MTLPrimitiveTopologyClassUnspecified = 0; MTLPrimitiveTopologyClassPoint = 1; MTLPrimitiveTopologyClassLine = 2; MTLPrimitiveTopologyClassTriangle = 3; MTLTessellationPartitionModePow2 = 0; MTLTessellationPartitionModeInteger = 1; MTLTessellationPartitionModeFractionalOdd = 2; MTLTessellationPartitionModeFractionalEven = 3; MTLTessellationFactorStepFunctionConstant = 0; MTLTessellationFactorStepFunctionPerPatch = 1; MTLTessellationFactorStepFunctionPerInstance = 2; MTLTessellationFactorStepFunctionPerPatchAndPerInstance = 3; MTLTessellationFactorFormatHalf = 0; MTLTessellationControlPointIndexTypeNone = 0; MTLTessellationControlPointIndexTypeUInt16 = 1; MTLTessellationControlPointIndexTypeUInt32 = 2; MTLVertexFormatInvalid = 0; MTLVertexFormatUChar2 = 1; MTLVertexFormatUChar3 = 2; MTLVertexFormatUChar4 = 3; MTLVertexFormatChar2 = 4; MTLVertexFormatChar3 = 5; MTLVertexFormatChar4 = 6; MTLVertexFormatUChar2Normalized = 7; MTLVertexFormatUChar3Normalized = 8; MTLVertexFormatUChar4Normalized = 9; MTLVertexFormatChar2Normalized = 10; MTLVertexFormatChar3Normalized = 11; MTLVertexFormatChar4Normalized = 12; MTLVertexFormatUShort2 = 13; MTLVertexFormatUShort3 = 14; MTLVertexFormatUShort4 = 15; MTLVertexFormatShort2 = 16; MTLVertexFormatShort3 = 17; MTLVertexFormatShort4 = 18; MTLVertexFormatUShort2Normalized = 19; MTLVertexFormatUShort3Normalized = 20; MTLVertexFormatUShort4Normalized = 21; MTLVertexFormatShort2Normalized = 22; MTLVertexFormatShort3Normalized = 23; MTLVertexFormatShort4Normalized = 24; MTLVertexFormatHalf2 = 25; MTLVertexFormatHalf3 = 26; MTLVertexFormatHalf4 = 27; MTLVertexFormatFloat = 28; MTLVertexFormatFloat2 = 29; MTLVertexFormatFloat3 = 30; MTLVertexFormatFloat4 = 31; MTLVertexFormatInt = 32; MTLVertexFormatInt2 = 33; MTLVertexFormatInt3 = 34; MTLVertexFormatInt4 = 35; MTLVertexFormatUInt = 36; MTLVertexFormatUInt2 = 37; MTLVertexFormatUInt3 = 38; MTLVertexFormatUInt4 = 39; MTLVertexFormatInt1010102Normalized = 40; MTLVertexFormatUInt1010102Normalized = 41; MTLVertexFormatUChar4Normalized_BGRA = 42; MTLVertexFormatUChar = 45; MTLVertexFormatChar = 46; MTLVertexFormatUCharNormalized = 47; MTLVertexFormatCharNormalized = 48; MTLVertexFormatUShort = 49; MTLVertexFormatShort = 50; MTLVertexFormatUShortNormalized = 51; MTLVertexFormatShortNormalized = 52; MTLVertexFormatHalf = 53; MTLVertexStepFunctionConstant = 0; MTLVertexStepFunctionPerVertex = 1; MTLVertexStepFunctionPerInstance = 2; MTLVertexStepFunctionPerPatch = 3; MTLVertexStepFunctionPerPatchControlPoint = 4; MTLSamplerMinMagFilterNearest = 0; MTLSamplerMinMagFilterLinear = 1; MTLSamplerMipFilterNotMipmapped = 0; MTLSamplerMipFilterNearest = 1; MTLSamplerMipFilterLinear = 2; MTLSamplerAddressModeClampToEdge = 0; MTLSamplerAddressModeMirrorClampToEdge = 1; MTLSamplerAddressModeRepeat = 2; MTLSamplerAddressModeMirrorRepeat = 3; MTLSamplerAddressModeClampToZero = 4; MTLSamplerAddressModeClampToBorderColor = 5; MTLSamplerBorderColorTransparentBlack = 0; MTLSamplerBorderColorOpaqueBlack = 1; MTLSamplerBorderColorOpaqueWhite = 2; MTLHeapTypeAutomatic = 0; MTLHeapTypePlacement = 1; MTLHeapTypeSparse = 2; MTLCaptureErrorNotSupported = 1; MTLCaptureErrorAlreadyCapturing = 2; MTLCaptureErrorInvalidDescriptor = 3; MTLCaptureDestinationDeveloperTools = 1; MTLCaptureDestinationGPUTraceDocument = 2; MTLIndirectCommandTypeDraw = 1; MTLIndirectCommandTypeDrawIndexed = 2; MTLIndirectCommandTypeDrawPatches = 4; MTLIndirectCommandTypeDrawIndexedPatches = 8; MTLIndirectCommandTypeConcurrentDispatch = 32; MTLIndirectCommandTypeConcurrentDispatchThreads = 64; MTLFunctionLogTypeValidation = 0; MTLAccelerationStructureUsageNone = 0; MTLAccelerationStructureUsageRefit = 1; MTLAccelerationStructureUsagePreferFastBuild = 2; MTLAccelerationStructureInstanceOptionNone = 0; MTLAccelerationStructureInstanceOptionDisableTriangleCulling = 1; MTLAccelerationStructureInstanceOptionTriangleFrontFacingWindingCounterClockwise = 2; MTLAccelerationStructureInstanceOptionOpaque = 4; MTLAccelerationStructureInstanceOptionNonOpaque = 8; MTLDynamicLibraryErrorNone = 0; MTLDynamicLibraryErrorInvalidFile = 1; MTLDynamicLibraryErrorCompilationFailure = 2; MTLDynamicLibraryErrorUnresolvedInstallName = 3; MTLDynamicLibraryErrorDependencyLoadFailure = 4; MTLDynamicLibraryErrorUnsupported = 5; MTLBinaryArchiveErrorNone = 0; MTLBinaryArchiveErrorInvalidFile = 1; MTLBinaryArchiveErrorUnexpectedElement = 2; MTLBinaryArchiveErrorCompilationFailure = 3; default = -9223372036854775808; MTLIntersectionFunctionSignatureNone = 0; MTLIntersectionFunctionSignatureInstancing = 1; MTLIntersectionFunctionSignatureTriangleData = 2; MTLIntersectionFunctionSignatureWorldSpaceData = 4; type MTLCommandEncoder = interface; MTLResource = interface; MTLBuffer = interface; MTLSharedTextureHandle = interface; MTLTextureDescriptor = interface; MTLTexture = interface; MTLType = interface; MTLStructMember = interface; MTLStructType = interface; MTLArrayType = interface; MTLPointerType = interface; MTLTextureReferenceType = interface; MTLArgument = interface; MTLFunctionConstantValues = interface; MTLFunctionDescriptor = interface; MTLIntersectionFunctionDescriptor = interface; MTLVertexAttribute = interface; MTLAttribute = interface; MTLFunctionConstant = interface; MTLFunction = interface; MTLCompileOptions = interface; MTLLibrary = interface; MTLCounter = interface; MTLCounterSet = interface; MTLCounterSampleBufferDescriptor = interface; MTLCounterSampleBuffer = interface; MTLArgumentDescriptor = interface; MTLDevice = interface; MTLFence = interface; MTLResourceStatePassSampleBufferAttachmentDescriptor = interface; MTLResourceStatePassSampleBufferAttachmentDescriptorArray = interface; MTLResourceStatePassDescriptor = interface; MTLResourceStateCommandEncoder = interface; MTLRenderPassAttachmentDescriptor = interface; MTLRenderPassColorAttachmentDescriptor = interface; MTLRenderPassDepthAttachmentDescriptor = interface; MTLRenderPassStencilAttachmentDescriptor = interface; MTLRenderPassColorAttachmentDescriptorArray = interface; MTLRenderPassSampleBufferAttachmentDescriptor = interface; MTLRenderPassSampleBufferAttachmentDescriptorArray = interface; MTLRenderPassDescriptor = interface; MTLBlitPassSampleBufferAttachmentDescriptor = interface; MTLBlitPassSampleBufferAttachmentDescriptorArray = interface; MTLBlitPassDescriptor = interface; MTLBlitCommandEncoder = interface; MTLCommandBufferDescriptor = interface; MTLCommandBufferEncoderInfo = interface; MTLCommandBuffer = interface; MTLComputePassSampleBufferAttachmentDescriptor = interface; MTLComputePassSampleBufferAttachmentDescriptorArray = interface; MTLComputePassDescriptor = interface; MTLComputeCommandEncoder = interface; MTLCommandQueue = interface; MTLStencilDescriptor = interface; MTLDepthStencilDescriptor = interface; MTLDepthStencilState = interface; MTLDrawable = interface; MTLBufferLayoutDescriptor = interface; MTLBufferLayoutDescriptorArray = interface; MTLAttributeDescriptor = interface; MTLAttributeDescriptorArray = interface; MTLStageInputOutputDescriptor = interface; MTLPipelineBufferDescriptor = interface; MTLPipelineBufferDescriptorArray = interface; MTLLinkedFunctions = interface; MTLComputePipelineReflection = interface; MTLComputePipelineDescriptor = interface; MTLComputePipelineState = interface; MTLRenderCommandEncoder = interface; MTLRenderPipelineColorAttachmentDescriptor = interface; MTLRenderPipelineReflection = interface; MTLRenderPipelineDescriptor = interface; MTLRenderPipelineState = interface; MTLRenderPipelineColorAttachmentDescriptorArray = interface; MTLTileRenderPipelineColorAttachmentDescriptor = interface; MTLTileRenderPipelineColorAttachmentDescriptorArray = interface; MTLTileRenderPipelineDescriptor = interface; MTLVertexBufferLayoutDescriptor = interface; MTLVertexBufferLayoutDescriptorArray = interface; MTLVertexAttributeDescriptor = interface; MTLVertexAttributeDescriptorArray = interface; MTLVertexDescriptor = interface; MTLParallelRenderCommandEncoder = interface; MTLSamplerDescriptor = interface; MTLSamplerState = interface; MTLHeapDescriptor = interface; MTLHeap = interface; MTLArgumentEncoder = interface; MTLCaptureDescriptor = interface; MTLCaptureManager = interface; MTLCaptureScope = interface; MTLIndirectRenderCommand = interface; MTLIndirectComputeCommand = interface; MTLIndirectCommandBufferDescriptor = interface; MTLIndirectCommandBuffer = interface; MTLEvent = interface; MTLSharedEventListener = interface; MTLSharedEvent = interface; MTLSharedEventHandle = interface; MTLLogContainer = interface; MTLFunctionLogDebugLocation = interface; MTLFunctionLog = interface; MTLAccelerationStructureDescriptor = interface; MTLAccelerationStructureGeometryDescriptor = interface; MTLPrimitiveAccelerationStructureDescriptor = interface; MTLAccelerationStructureTriangleGeometryDescriptor = interface; MTLAccelerationStructureBoundingBoxGeometryDescriptor = interface; MTLInstanceAccelerationStructureDescriptor = interface; MTLAccelerationStructure = interface; MTLAccelerationStructureCommandEncoder = interface; MTLRasterizationRateSampleArray = interface; MTLRasterizationRateLayerDescriptor = interface; MTLRasterizationRateLayerArray = interface; MTLRasterizationRateMapDescriptor = interface; MTLRasterizationRateMap = interface; MTLDynamicLibrary = interface; MTLFunctionHandle = interface; MTLVisibleFunctionTableDescriptor = interface; MTLVisibleFunctionTable = interface; MTLBinaryArchiveDescriptor = interface; MTLBinaryArchive = interface; MTLIntersectionFunctionTableDescriptor = interface; MTLIntersectionFunctionTable = interface; PMTLSharedTextureHandlePrivate = Pointer; PPMTLSharedTextureHandlePrivate = ^PMTLSharedTextureHandlePrivate; PMTLSharedEventHandlePrivate = Pointer; PPMTLSharedEventHandlePrivate = ^PMTLSharedEventHandlePrivate; PMTLOrigin = ^MTLOrigin; PMTLSize = ^MTLSize; PMTLRegion = ^MTLRegion; PMTLSamplePosition = ^MTLSamplePosition; PMTLTextureSwizzleChannels = ^MTLTextureSwizzleChannels; PMTLCounterResultTimestamp = ^MTLCounterResultTimestamp; PMTLCounterResultStageUtilization = ^MTLCounterResultStageUtilization; PMTLCounterResultStatistic = ^MTLCounterResultStatistic; PMTLAccelerationStructureSizes = ^MTLAccelerationStructureSizes; PMTLSizeAndAlign = ^MTLSizeAndAlign; PMTLMapIndirectArguments = ^MTLMapIndirectArguments; PMTLClearColor = ^MTLClearColor; PMTLDispatchThreadgroupsIndirectArguments = ^MTLDispatchThreadgroupsIndirectArguments; PMTLStageInRegionIndirectArguments = ^MTLStageInRegionIndirectArguments; PMTLScissorRect = ^MTLScissorRect; PMTLViewport = ^MTLViewport; PMTLDrawPrimitivesIndirectArguments = ^MTLDrawPrimitivesIndirectArguments; PMTLDrawIndexedPrimitivesIndirectArguments = ^MTLDrawIndexedPrimitivesIndirectArguments; PMTLVertexAmplificationViewMapping = ^MTLVertexAmplificationViewMapping; PMTLDrawPatchIndirectArguments = ^MTLDrawPatchIndirectArguments; PMTLQuadTessellationFactorsHalf = ^MTLQuadTessellationFactorsHalf; PMTLTriangleTessellationFactorsHalf = ^MTLTriangleTessellationFactorsHalf; PMTLIndirectCommandBufferExecutionRange = ^MTLIndirectCommandBufferExecutionRange; PMTLArgument = ^MTLArgument; PMTLComputePipelineReflection = ^MTLComputePipelineReflection; PMTLRenderPipelineReflection = ^MTLRenderPipelineReflection; MTLOrigin = record x: NSUInteger; y: NSUInteger; z: NSUInteger; end; MTLSize = record width: NSUInteger; height: NSUInteger; depth: NSUInteger; end; MTLRegion = record origin: MTLOrigin; size: MTLSize; end; MTLSamplePosition = record x: Single; y: Single; end; MTLCoordinate2D = MTLSamplePosition; MTLResourceUsage = NSInteger; MTLBarrierScope = NSInteger; MTLPurgeableState = NSInteger; MTLCPUCacheMode = NSInteger; MTLStorageMode = NSInteger; MTLHazardTrackingMode = NSInteger; MTLResourceOptions = NSInteger; MTLPixelFormat = NSInteger; MTLTextureType = NSInteger; MTLTextureSwizzle = NSInteger; MTLTextureSwizzleChannels = record red: MTLTextureSwizzle; green: MTLTextureSwizzle; blue: MTLTextureSwizzle; alpha: MTLTextureSwizzle; end; MTLTextureUsage = NSInteger; MTLDataType = NSInteger; MTLArgumentType = NSInteger; MTLArgumentAccess = NSInteger; MTLFunctionOptions = NSInteger; MTLAutoreleasedArgument = MTLArgument; MTLPatchType = NSInteger; MTLFunctionType = NSInteger; MTLLanguageVersion = NSInteger; MTLLibraryType = NSInteger; MTLLibraryError = NSInteger; MTLCommonCounter = NSString; MTLCommonCounterSet = NSString; MTLCounterResultTimestamp = record timestamp: UInt64; end; MTLCounterResultStageUtilization = record totalCycles: UInt64; vertexCycles: UInt64; tessellationCycles: UInt64; postTessellationVertexCycles: UInt64; fragmentCycles: UInt64; renderTargetCycles: UInt64; end; MTLCounterResultStatistic = record tessellationInputPatches: UInt64; vertexInvocations: UInt64; postTessellationVertexInvocations: UInt64; clipperInvocations: UInt64; clipperPrimitivesOut: UInt64; fragmentInvocations: UInt64; fragmentsPassed: UInt64; computeKernelInvocations: UInt64; end; MTLCounterSampleBufferError = NSInteger; MTLFeatureSet = NSInteger; MTLGPUFamily = NSInteger; MTLPipelineOption = NSInteger; MTLReadWriteTextureTier = NSInteger; MTLArgumentBuffersTier = NSInteger; MTLSparseTextureRegionAlignmentMode = NSInteger; MTLAccelerationStructureSizes = record accelerationStructureSize: NSUInteger; buildScratchBufferSize: NSUInteger; refitScratchBufferSize: NSUInteger; end; MTLCounterSamplingPoint = NSInteger; MTLSizeAndAlign = record size: NSUInteger; align: NSUInteger; end; MTLAutoreleasedRenderPipelineReflection = MTLRenderPipelineReflection; MTLAutoreleasedComputePipelineReflection = MTLComputePipelineReflection; MTLNewLibraryCompletionHandler = procedure(&library: Pointer; error: NSError) of object; MTLNewRenderPipelineStateCompletionHandler = procedure(renderPipelineState: Pointer; error: NSError) of object; MTLNewRenderPipelineStateWithReflectionCompletionHandler = procedure(renderPipelineState: Pointer; reflection: MTLRenderPipelineReflection; error: NSError) of object; MTLNewComputePipelineStateCompletionHandler = procedure(computePipelineState: Pointer; error: NSError) of object; MTLNewComputePipelineStateWithReflectionCompletionHandler = procedure(computePipelineState: Pointer; reflection: MTLComputePipelineReflection; error: NSError) of object; MTLTimestamp = UInt64; PMTLTimestamp = ^MTLTimestamp; MTLSparseTextureMappingMode = NSInteger; MTLMapIndirectArguments = record regionOriginX: UInt32; regionOriginY: UInt32; regionOriginZ: UInt32; regionSizeWidth: UInt32; regionSizeHeight: UInt32; regionSizeDepth: UInt32; mipMapLevel: UInt32; sliceId: UInt32; end; MTLLoadAction = NSInteger; MTLStoreAction = NSInteger; MTLStoreActionOptions = NSInteger; MTLClearColor = record red: Double; green: Double; blue: Double; alpha: Double; end; MTLMultisampleDepthResolveFilter = NSInteger; MTLMultisampleStencilResolveFilter = NSInteger; MTLBlitOption = NSInteger; MTLCommandBufferStatus = NSInteger; MTLCommandBufferError = NSInteger; MTLCommandBufferErrorOption = NSInteger; MTLCommandEncoderErrorState = NSInteger; MTLCommandBufferHandler = procedure(p1: Pointer) of object; MTLDispatchType = NSInteger; MTLDispatchThreadgroupsIndirectArguments = record threadgroupsPerGrid: array [0..2] of UInt32; end; MTLStageInRegionIndirectArguments = record stageInOrigin: array [0..2] of UInt32; stageInSize: array [0..2] of UInt32; end; MTLCompareFunction = NSInteger; MTLStencilOperation = NSInteger; MTLDrawablePresentedHandler = procedure(p1: Pointer) of object; MTLAttributeFormat = NSInteger; MTLIndexType = NSInteger; MTLStepFunction = NSInteger; MTLMutability = NSInteger; MTLPrimitiveType = NSInteger; MTLVisibilityResultMode = NSInteger; MTLScissorRect = record x: NSUInteger; y: NSUInteger; width: NSUInteger; height: NSUInteger; end; MTLViewport = record originX: Double; originY: Double; width: Double; height: Double; znear: Double; zfar: Double; end; MTLCullMode = NSInteger; MTLWinding = NSInteger; MTLDepthClipMode = NSInteger; MTLTriangleFillMode = NSInteger; MTLDrawPrimitivesIndirectArguments = record vertexCount: UInt32; instanceCount: UInt32; vertexStart: UInt32; baseInstance: UInt32; end; MTLDrawIndexedPrimitivesIndirectArguments = record indexCount: UInt32; instanceCount: UInt32; indexStart: UInt32; baseVertex: Int32; baseInstance: UInt32; end; MTLVertexAmplificationViewMapping = record viewportArrayIndexOffset: UInt32; renderTargetArrayIndexOffset: UInt32; end; MTLDrawPatchIndirectArguments = record patchCount: UInt32; instanceCount: UInt32; patchStart: UInt32; baseInstance: UInt32; end; MTLQuadTessellationFactorsHalf = record edgeTessellationFactor: array [0..3] of UInt16; insideTessellationFactor: array [0..1] of UInt16; end; MTLTriangleTessellationFactorsHalf = record edgeTessellationFactor: array [0..2] of UInt16; insideTessellationFactor: UInt16; end; MTLRenderStages = NSInteger; MTLBlendFactor = NSInteger; MTLBlendOperation = NSInteger; MTLColorWriteMask = NSInteger; MTLPrimitiveTopologyClass = NSInteger; MTLTessellationPartitionMode = NSInteger; MTLTessellationFactorStepFunction = NSInteger; MTLTessellationFactorFormat = NSInteger; MTLTessellationControlPointIndexType = NSInteger; MTLVertexFormat = NSInteger; MTLVertexStepFunction = NSInteger; MTLSamplerMinMagFilter = NSInteger; MTLSamplerMipFilter = NSInteger; MTLSamplerAddressMode = NSInteger; MTLSamplerBorderColor = NSInteger; MTLHeapType = NSInteger; MTLCaptureError = NSInteger; MTLCaptureDestination = NSInteger; MTLIndirectCommandType = NSInteger; MTLIndirectCommandBufferExecutionRange = record location: UInt32; length: UInt32; end; MTLSharedEventNotificationBlock = procedure(p1: Pointer; value: UInt64) of object; MTLFunctionLogType = NSInteger; _MTLPackedFloat3 = record case Integer of 0: (xyz: record x: Single; y: Single; z: Single end); 1: (elements: array [0..2] of Single); end; MTLPackedFloat3 = _MTLPackedFloat3; _MTLPackedFloat4x3 = record columns: array [0..3] of MTLPackedFloat3; end; MTLPackedFloat4x3 = _MTLPackedFloat4x3; _MTLAxisAlignedBoundingBox = record min: MTLPackedFloat3; max: MTLPackedFloat3; end; MTLAxisAlignedBoundingBox = _MTLAxisAlignedBoundingBox; MTLAccelerationStructureUsage = NSInteger; MTLAccelerationStructureInstanceOptions = NSInteger; MTLAccelerationStructureInstanceDescriptor = record transformationMatrix: MTLPackedFloat4x3; options: MTLAccelerationStructureInstanceOptions; mask: UInt32; intersectionFunctionTableOffset: UInt32; accelerationStructureIndex: UInt32; end; P_MTLPackedFloat3 = ^_MTLPackedFloat3; P_MTLPackedFloat4x3 = ^_MTLPackedFloat4x3; P_MTLAxisAlignedBoundingBox = ^_MTLAxisAlignedBoundingBox; PMTLAccelerationStructureInstanceDescriptor = ^MTLAccelerationStructureInstanceDescriptor; Pid = Pointer; MTLDynamicLibraryError = NSInteger; MTLBinaryArchiveError = NSInteger; MTLIntersectionFunctionSignature = NSInteger; TMTLLibraryBlockMethod1 = procedure(&function: Pointer; error: NSError) of object; TMTLDeviceBlockMethod1 = procedure(pointer: Pointer; length: NSUInteger) of object; MTLCommandEncoder = interface(IObjectiveC) ['{FDB9B505-95A5-4DF5-8E1E-BE0AE76A6B01}'] [MethodName('label')] function &label: NSString; cdecl; function device: Pointer; cdecl; procedure endEncoding; cdecl; procedure insertDebugSignpost(&string: NSString); cdecl; procedure popDebugGroup; cdecl; procedure pushDebugGroup(&string: NSString); cdecl; procedure setLabel(&label: NSString); cdecl; end; MTLResource = interface(IObjectiveC) ['{8375DC1D-3972-4BFD-BDEF-21FBCD17E4A5}'] [MethodName('label')] function &label: NSString; cdecl; function allocatedSize: NSUInteger; cdecl; function cpuCacheMode: MTLCPUCacheMode; cdecl; function device: Pointer; cdecl; function hazardTrackingMode: MTLHazardTrackingMode; cdecl; function heap: Pointer; cdecl; function heapOffset: NSUInteger; cdecl; function isAliasable: Boolean; cdecl; procedure makeAliasable; cdecl; function resourceOptions: MTLResourceOptions; cdecl; procedure setLabel(&label: NSString); cdecl; function setPurgeableState(state: MTLPurgeableState): MTLPurgeableState; cdecl; function storageMode: MTLStorageMode; cdecl; end; MTLBuffer = interface(IObjectiveC) ['{8CF5CFBE-EC69-424A-9CB0-C3C5068BA4FD}'] procedure addDebugMarker(marker: NSString; range: NSRange); cdecl; function contents: Pointer; cdecl; procedure didModifyRange(range: NSRange); cdecl; function length: NSUInteger; cdecl; function newTextureWithDescriptor(descriptor: MTLTextureDescriptor; offset: NSUInteger; bytesPerRow: NSUInteger): Pointer; cdecl; procedure removeAllDebugMarkers; cdecl; end; MTLSharedTextureHandleClass = interface(NSObjectClass) ['{BDDFCC1D-A729-4D07-B78D-7131A4A5EED9}'] end; MTLSharedTextureHandle = interface(NSObject) ['{B4796391-C747-4602-906E-314AA837A547}'] [MethodName('label')] function &label: NSString; cdecl; function device: Pointer; cdecl; end; TMTLSharedTextureHandle = class(TOCGenericImport<MTLSharedTextureHandleClass, MTLSharedTextureHandle>) end; MTLTextureDescriptorClass = interface(NSObjectClass) ['{3DDEB54E-3F13-4E03-B56F-713EC572ED10}'] {class} function texture2DDescriptorWithPixelFormat(pixelFormat: MTLPixelFormat; width: NSUInteger; height: NSUInteger; mipmapped: Boolean): MTLTextureDescriptor; cdecl; {class} function textureBufferDescriptorWithPixelFormat(pixelFormat: MTLPixelFormat; width: NSUInteger; resourceOptions: MTLResourceOptions; usage: MTLTextureUsage): MTLTextureDescriptor; cdecl; {class} function textureCubeDescriptorWithPixelFormat(pixelFormat: MTLPixelFormat; size: NSUInteger; mipmapped: Boolean): MTLTextureDescriptor; cdecl; end; MTLTextureDescriptor = interface(NSObject) ['{4FFF91BF-9411-4E69-B516-3DBBAB64B12D}'] function allowGPUOptimizedContents: Boolean; cdecl; function arrayLength: NSUInteger; cdecl; function cpuCacheMode: MTLCPUCacheMode; cdecl; function depth: NSUInteger; cdecl; function hazardTrackingMode: MTLHazardTrackingMode; cdecl; function height: NSUInteger; cdecl; function mipmapLevelCount: NSUInteger; cdecl; function pixelFormat: MTLPixelFormat; cdecl; function resourceOptions: MTLResourceOptions; cdecl; function sampleCount: NSUInteger; cdecl; procedure setAllowGPUOptimizedContents(allowGPUOptimizedContents: Boolean); cdecl; procedure setArrayLength(arrayLength: NSUInteger); cdecl; procedure setCpuCacheMode(cpuCacheMode: MTLCPUCacheMode); cdecl; procedure setDepth(depth: NSUInteger); cdecl; procedure setHazardTrackingMode(hazardTrackingMode: MTLHazardTrackingMode); cdecl; procedure setHeight(height: NSUInteger); cdecl; procedure setMipmapLevelCount(mipmapLevelCount: NSUInteger); cdecl; procedure setPixelFormat(pixelFormat: MTLPixelFormat); cdecl; procedure setResourceOptions(resourceOptions: MTLResourceOptions); cdecl; procedure setSampleCount(sampleCount: NSUInteger); cdecl; procedure setStorageMode(storageMode: MTLStorageMode); cdecl; procedure setSwizzle(swizzle: MTLTextureSwizzleChannels); cdecl; procedure setTextureType(textureType: MTLTextureType); cdecl; procedure setUsage(usage: MTLTextureUsage); cdecl; procedure setWidth(width: NSUInteger); cdecl; function storageMode: MTLStorageMode; cdecl; function swizzle: MTLTextureSwizzleChannels; cdecl; function textureType: MTLTextureType; cdecl; function usage: MTLTextureUsage; cdecl; function width: NSUInteger; cdecl; end; TMTLTextureDescriptor = class(TOCGenericImport<MTLTextureDescriptorClass, MTLTextureDescriptor>) end; MTLTexture = interface(IObjectiveC) ['{C20C642D-8974-4990-A9F2-269A5AD1B010}'] function allowGPUOptimizedContents: Boolean; cdecl; function arrayLength: NSUInteger; cdecl; function buffer: Pointer; cdecl; function bufferBytesPerRow: NSUInteger; cdecl; function bufferOffset: NSUInteger; cdecl; function depth: NSUInteger; cdecl; function firstMipmapInTail: NSUInteger; cdecl; procedure getBytes(pixelBytes: Pointer; bytesPerRow: NSUInteger; fromRegion: MTLRegion; mipmapLevel: NSUInteger); overload; cdecl; procedure getBytes(pixelBytes: Pointer; bytesPerRow: NSUInteger; bytesPerImage: NSUInteger; fromRegion: MTLRegion; mipmapLevel: NSUInteger; slice: NSUInteger); overload; cdecl; function height: NSUInteger; cdecl; function iosurface: IOSurfaceRef; cdecl; function iosurfacePlane: NSUInteger; cdecl; function isFramebufferOnly: Boolean; cdecl; function isShareable: Boolean; cdecl; function isSparse: Boolean; cdecl; function mipmapLevelCount: NSUInteger; cdecl; function newSharedTextureHandle: MTLSharedTextureHandle; cdecl; function newTextureViewWithPixelFormat(pixelFormat: MTLPixelFormat; textureType: MTLTextureType; levels: NSRange; slices: NSRange): Pointer; overload; cdecl; function newTextureViewWithPixelFormat(pixelFormat: MTLPixelFormat): Pointer; overload; cdecl; function newTextureViewWithPixelFormat(pixelFormat: MTLPixelFormat; textureType: MTLTextureType; levels: NSRange; slices: NSRange; swizzle: MTLTextureSwizzleChannels): Pointer; overload; cdecl; function parentRelativeLevel: NSUInteger; cdecl; function parentRelativeSlice: NSUInteger; cdecl; function parentTexture: Pointer; cdecl; function pixelFormat: MTLPixelFormat; cdecl; procedure replaceRegion(region: MTLRegion; mipmapLevel: NSUInteger; withBytes: Pointer; bytesPerRow: NSUInteger); overload; cdecl; procedure replaceRegion(region: MTLRegion; mipmapLevel: NSUInteger; slice: NSUInteger; withBytes: Pointer; bytesPerRow: NSUInteger; bytesPerImage: NSUInteger); overload; cdecl; function rootResource: Pointer; cdecl; // API_DEPRECATED("Use parentTexture or buffer instead", macos(10.11, 10.12), ios(8.0, 10.0)) function sampleCount: NSUInteger; cdecl; function swizzle: MTLTextureSwizzleChannels; cdecl; function tailSizeInBytes: NSUInteger; cdecl; function textureType: MTLTextureType; cdecl; function usage: MTLTextureUsage; cdecl; function width: NSUInteger; cdecl; end; MTLTypeClass = interface(NSObjectClass) ['{57AFECD7-165D-4528-8AB3-E5590E1BE323}'] end; MTLType = interface(NSObject) ['{E464A197-BCCF-492B-B8B4-F02BB8E26C5D}'] function dataType: MTLDataType; cdecl; end; TMTLType = class(TOCGenericImport<MTLTypeClass, MTLType>) end; MTLStructMemberClass = interface(NSObjectClass) ['{0C0E3E7D-7516-4904-9E39-B479D59886E9}'] end; MTLStructMember = interface(NSObject) ['{E13B75A8-E07D-4716-B70E-1B1E6F32FEE4}'] function argumentIndex: NSUInteger; cdecl; function arrayType: MTLArrayType; cdecl; function dataType: MTLDataType; cdecl; function name: NSString; cdecl; function offset: NSUInteger; cdecl; function pointerType: MTLPointerType; cdecl; function structType: MTLStructType; cdecl; function textureReferenceType: MTLTextureReferenceType; cdecl; end; TMTLStructMember = class(TOCGenericImport<MTLStructMemberClass, MTLStructMember>) end; MTLStructTypeClass = interface(MTLTypeClass) ['{CC5FF2CE-BE1D-4CEB-A7A9-1D8864A6A56F}'] end; MTLStructType = interface(MTLType) ['{F1EEDEEF-EA48-4CAD-AF87-2145C407794E}'] function memberByName(name: NSString): MTLStructMember; cdecl; function members: NSArray; cdecl; end; TMTLStructType = class(TOCGenericImport<MTLStructTypeClass, MTLStructType>) end; MTLArrayTypeClass = interface(MTLTypeClass) ['{C0313A4A-35A6-4FA3-B321-68B4D7D3B024}'] end; MTLArrayType = interface(MTLType) ['{E683CCEA-C7BF-4A40-AE6F-A0975405CD52}'] function argumentIndexStride: NSUInteger; cdecl; function arrayLength: NSUInteger; cdecl; function elementArrayType: MTLArrayType; cdecl; function elementPointerType: MTLPointerType; cdecl; function elementStructType: MTLStructType; cdecl; function elementTextureReferenceType: MTLTextureReferenceType; cdecl; function elementType: MTLDataType; cdecl; function stride: NSUInteger; cdecl; end; TMTLArrayType = class(TOCGenericImport<MTLArrayTypeClass, MTLArrayType>) end; MTLPointerTypeClass = interface(MTLTypeClass) ['{78066278-F0EE-414D-9103-45AD77663981}'] end; MTLPointerType = interface(MTLType) ['{B8E010C0-CC72-4BA9-8315-C21BE5960B21}'] function access: MTLArgumentAccess; cdecl; function alignment: NSUInteger; cdecl; function dataSize: NSUInteger; cdecl; function elementArrayType: MTLArrayType; cdecl; function elementIsArgumentBuffer: Boolean; cdecl; function elementStructType: MTLStructType; cdecl; function elementType: MTLDataType; cdecl; end; TMTLPointerType = class(TOCGenericImport<MTLPointerTypeClass, MTLPointerType>) end; MTLTextureReferenceTypeClass = interface(MTLTypeClass) ['{C723AB1F-F32D-47E1-A96B-68D6898328E3}'] end; MTLTextureReferenceType = interface(MTLType) ['{492F7016-A660-4721-BBBA-29DB28F9F712}'] function access: MTLArgumentAccess; cdecl; function isDepthTexture: Boolean; cdecl; function textureDataType: MTLDataType; cdecl; function textureType: MTLTextureType; cdecl; end; TMTLTextureReferenceType = class(TOCGenericImport<MTLTextureReferenceTypeClass, MTLTextureReferenceType>) end; MTLArgumentClass = interface(NSObjectClass) ['{3767E40B-2F67-4133-BA7F-B8C71A8CC56A}'] end; MTLArgument = interface(NSObject) ['{2313B646-BFB6-45A2-813B-8391CA241307}'] [MethodName('type')] function &type: MTLArgumentType; cdecl; function access: MTLArgumentAccess; cdecl; function arrayLength: NSUInteger; cdecl; function bufferAlignment: NSUInteger; cdecl; function bufferDataSize: NSUInteger; cdecl; function bufferDataType: MTLDataType; cdecl; function bufferPointerType: MTLPointerType; cdecl; function bufferStructType: MTLStructType; cdecl; function index: NSUInteger; cdecl; function isActive: Boolean; cdecl; function isDepthTexture: Boolean; cdecl; function name: NSString; cdecl; function textureDataType: MTLDataType; cdecl; function textureType: MTLTextureType; cdecl; function threadgroupMemoryAlignment: NSUInteger; cdecl; function threadgroupMemoryDataSize: NSUInteger; cdecl; end; TMTLArgument = class(TOCGenericImport<MTLArgumentClass, MTLArgument>) end; MTLFunctionConstantValuesClass = interface(NSObjectClass) ['{E63D3544-EB3A-4262-A888-F1DA0BF12FDB}'] end; MTLFunctionConstantValues = interface(NSObject) ['{50D8A024-97CB-4BA5-BEB6-5FBD82242DFF}'] procedure reset; cdecl; procedure setConstantValue(value: Pointer; &type: MTLDataType; atIndex: NSUInteger); overload; cdecl; procedure setConstantValue(value: Pointer; &type: MTLDataType; withName: NSString); overload; cdecl; procedure setConstantValues(values: Pointer; &type: MTLDataType; withRange: NSRange); cdecl; end; TMTLFunctionConstantValues = class(TOCGenericImport<MTLFunctionConstantValuesClass, MTLFunctionConstantValues>) end; MTLFunctionDescriptorClass = interface(NSObjectClass) ['{1DD54ABD-16F7-45C6-BF8C-3196205EAAE6}'] {class} function functionDescriptor: MTLFunctionDescriptor; cdecl; end; MTLFunctionDescriptor = interface(NSObject) ['{78307ADF-DF2A-4834-A80F-82686FB54AF8}'] function constantValues: MTLFunctionConstantValues; cdecl; function name: NSString; cdecl; function options: MTLFunctionOptions; cdecl; procedure setConstantValues(constantValues: MTLFunctionConstantValues); cdecl; procedure setName(name: NSString); cdecl; procedure setOptions(options: MTLFunctionOptions); cdecl; procedure setSpecializedName(specializedName: NSString); cdecl; function specializedName: NSString; cdecl; end; TMTLFunctionDescriptor = class(TOCGenericImport<MTLFunctionDescriptorClass, MTLFunctionDescriptor>) end; MTLIntersectionFunctionDescriptorClass = interface(MTLFunctionDescriptorClass) ['{239E8218-82CC-4AE5-825F-175F9B468C0C}'] end; MTLIntersectionFunctionDescriptor = interface(MTLFunctionDescriptor) ['{4B7FA4AF-7666-4FD1-B3EB-14E32FE94AEF}'] end; TMTLIntersectionFunctionDescriptor = class(TOCGenericImport<MTLIntersectionFunctionDescriptorClass, MTLIntersectionFunctionDescriptor>) end; MTLVertexAttributeClass = interface(NSObjectClass) ['{CB87E35C-02B2-47DF-946A-38C676B6EE59}'] end; MTLVertexAttribute = interface(NSObject) ['{896CDA66-1FD5-4AC9-8571-811E985308CE}'] function attributeIndex: NSUInteger; cdecl; function attributeType: MTLDataType; cdecl; function isActive: Boolean; cdecl; function isPatchControlPointData: Boolean; cdecl; function isPatchData: Boolean; cdecl; function name: NSString; cdecl; end; TMTLVertexAttribute = class(TOCGenericImport<MTLVertexAttributeClass, MTLVertexAttribute>) end; MTLAttributeClass = interface(NSObjectClass) ['{804DEC5F-BD5C-4ED1-8194-BAE3BB866801}'] end; MTLAttribute = interface(NSObject) ['{DF5FCB9A-C64B-4E01-AB97-90341D6FB7CF}'] function attributeIndex: NSUInteger; cdecl; function attributeType: MTLDataType; cdecl; function isActive: Boolean; cdecl; function isPatchControlPointData: Boolean; cdecl; function isPatchData: Boolean; cdecl; function name: NSString; cdecl; end; TMTLAttribute = class(TOCGenericImport<MTLAttributeClass, MTLAttribute>) end; MTLFunctionConstantClass = interface(NSObjectClass) ['{A2B4B2E6-8A89-434A-873E-0C7C198CDC79}'] end; MTLFunctionConstant = interface(NSObject) ['{E2F9F3B3-00F8-472D-8746-88563C847AC5}'] [MethodName('type')] function &type: MTLDataType; cdecl; function index: NSUInteger; cdecl; function name: NSString; cdecl; function required: Boolean; cdecl; end; TMTLFunctionConstant = class(TOCGenericImport<MTLFunctionConstantClass, MTLFunctionConstant>) end; MTLFunction = interface(IObjectiveC) ['{B55DEACA-2E2B-425F-B1AC-853551D3A9B5}'] [MethodName('label')] function &label: NSString; cdecl; function device: Pointer; cdecl; function functionConstantsDictionary: NSDictionary; cdecl; function functionType: MTLFunctionType; cdecl; function name: NSString; cdecl; function newArgumentEncoderWithBufferIndex(bufferIndex: NSUInteger; reflection: PMTLArgument): Pointer; overload; cdecl; function newArgumentEncoderWithBufferIndex(bufferIndex: NSUInteger): Pointer; overload; cdecl; function options: MTLFunctionOptions; cdecl; function patchControlPointCount: NSInteger; cdecl; function patchType: MTLPatchType; cdecl; procedure setLabel(&label: NSString); cdecl; function stageInputAttributes: NSArray; cdecl; function vertexAttributes: NSArray; cdecl; end; MTLCompileOptionsClass = interface(NSObjectClass) ['{A26C439E-33AE-4F2F-A592-8D0C6891C64F}'] end; MTLCompileOptions = interface(NSObject) ['{FB306731-8F79-4B96-A6F3-4B4157E154ED}'] function fastMathEnabled: Boolean; cdecl; function installName: NSString; cdecl; function languageVersion: MTLLanguageVersion; cdecl; function libraries: NSArray; cdecl; function libraryType: MTLLibraryType; cdecl; function preprocessorMacros: NSDictionary; cdecl; function preserveInvariance: Boolean; cdecl; procedure setFastMathEnabled(fastMathEnabled: Boolean); cdecl; procedure setInstallName(installName: NSString); cdecl; procedure setLanguageVersion(languageVersion: MTLLanguageVersion); cdecl; procedure setLibraries(libraries: NSArray); cdecl; procedure setLibraryType(libraryType: MTLLibraryType); cdecl; procedure setPreprocessorMacros(preprocessorMacros: NSDictionary); cdecl; procedure setPreserveInvariance(preserveInvariance: Boolean); cdecl; end; TMTLCompileOptions = class(TOCGenericImport<MTLCompileOptionsClass, MTLCompileOptions>) end; MTLLibrary = interface(IObjectiveC) ['{FF2237FC-884E-4447-9395-B155E37A0BDF}'] [MethodName('label')] function &label: NSString; cdecl; [MethodName('type')] function &type: MTLLibraryType; cdecl; function device: Pointer; cdecl; function functionNames: NSArray; cdecl; function installName: NSString; cdecl; procedure newFunctionWithDescriptor(descriptor: MTLFunctionDescriptor; completionHandler: TMTLLibraryBlockMethod1); overload; cdecl; function newFunctionWithDescriptor(descriptor: MTLFunctionDescriptor; error: PPointer): Pointer; overload; cdecl; function newFunctionWithName(functionName: NSString): Pointer; overload; cdecl; function newFunctionWithName(name: NSString; constantValues: MTLFunctionConstantValues; error: PPointer): Pointer; overload; cdecl; procedure newFunctionWithName(name: NSString; constantValues: MTLFunctionConstantValues; completionHandler: TMTLLibraryBlockMethod1); overload; cdecl; procedure newIntersectionFunctionWithDescriptor(descriptor: MTLIntersectionFunctionDescriptor; completionHandler: TMTLLibraryBlockMethod1); overload; cdecl; function newIntersectionFunctionWithDescriptor(descriptor: MTLIntersectionFunctionDescriptor; error: PPointer): Pointer; overload; cdecl; procedure setLabel(&label: NSString); cdecl; end; MTLCounter = interface(IObjectiveC) ['{265F00FB-138B-48F8-A3CA-97B09E5D8E3D}'] function name: NSString; cdecl; end; MTLCounterSet = interface(IObjectiveC) ['{0BEC5FC5-CC79-402C-8894-986E10104C49}'] function counters: NSArray; cdecl; function name: NSString; cdecl; end; MTLCounterSampleBufferDescriptorClass = interface(NSObjectClass) ['{B995E281-E1EA-4F1E-BF3B-086354CFDCCE}'] end; MTLCounterSampleBufferDescriptor = interface(NSObject) ['{75F60526-48C3-4154-843B-C854C57A2547}'] [MethodName('label')] function &label: NSString; cdecl; function counterSet: Pointer; cdecl; function sampleCount: NSUInteger; cdecl; procedure setCounterSet(counterSet: Pointer); cdecl; procedure setLabel(&label: NSString); cdecl; procedure setSampleCount(sampleCount: NSUInteger); cdecl; procedure setStorageMode(storageMode: MTLStorageMode); cdecl; function storageMode: MTLStorageMode; cdecl; end; TMTLCounterSampleBufferDescriptor = class(TOCGenericImport<MTLCounterSampleBufferDescriptorClass, MTLCounterSampleBufferDescriptor>) end; MTLCounterSampleBuffer = interface(IObjectiveC) ['{DCC7D973-87D8-4908-A2DB-4009875672D5}'] [MethodName('label')] function &label: NSString; cdecl; function device: Pointer; cdecl; function resolveCounterRange(range: NSRange): NSData; cdecl; function sampleCount: NSUInteger; cdecl; end; MTLArgumentDescriptorClass = interface(NSObjectClass) ['{24179177-3AE0-4289-9F01-159CED016C33}'] {class} function argumentDescriptor: MTLArgumentDescriptor; cdecl; end; MTLArgumentDescriptor = interface(NSObject) ['{170C126D-3732-43BD-97D0-A0DCC8F38819}'] function access: MTLArgumentAccess; cdecl; function arrayLength: NSUInteger; cdecl; function constantBlockAlignment: NSUInteger; cdecl; function dataType: MTLDataType; cdecl; function index: NSUInteger; cdecl; procedure setAccess(access: MTLArgumentAccess); cdecl; procedure setArrayLength(arrayLength: NSUInteger); cdecl; procedure setConstantBlockAlignment(constantBlockAlignment: NSUInteger); cdecl; procedure setDataType(dataType: MTLDataType); cdecl; procedure setIndex(index: NSUInteger); cdecl; procedure setTextureType(textureType: MTLTextureType); cdecl; function textureType: MTLTextureType; cdecl; end; TMTLArgumentDescriptor = class(TOCGenericImport<MTLArgumentDescriptorClass, MTLArgumentDescriptor>) end; MTLDevice = interface(IObjectiveC) ['{C811974B-7472-47F6-B86F-022F07CD9B79}'] function accelerationStructureSizesWithDescriptor(descriptor: MTLAccelerationStructureDescriptor): MTLAccelerationStructureSizes; cdecl; function areBarycentricCoordsSupported: Boolean; cdecl; function areProgrammableSamplePositionsSupported: Boolean; cdecl; function areRasterOrderGroupsSupported: Boolean; cdecl; function argumentBuffersSupport: MTLArgumentBuffersTier; cdecl; procedure convertSparsePixelRegions(pixelRegions: PMTLRegion; toTileRegions: PMTLRegion; withTileSize: MTLSize; alignmentMode: MTLSparseTextureRegionAlignmentMode; numRegions: NSUInteger); cdecl; procedure convertSparseTileRegions(tileRegions: PMTLRegion; toPixelRegions: PMTLRegion; withTileSize: MTLSize; numRegions: NSUInteger); cdecl; function counterSets: NSArray; cdecl; function currentAllocatedSize: NSUInteger; cdecl; procedure getDefaultSamplePositions(positions: PMTLSamplePosition; count: NSUInteger); cdecl; function hasUnifiedMemory: Boolean; cdecl; function heapBufferSizeAndAlignWithLength(length: NSUInteger; options: MTLResourceOptions): MTLSizeAndAlign; cdecl; function heapTextureSizeAndAlignWithDescriptor(desc: MTLTextureDescriptor): MTLSizeAndAlign; cdecl; function isDepth24Stencil8PixelFormatSupported: Boolean; cdecl; function isHeadless: Boolean; cdecl; function isLowPower: Boolean; cdecl; function isRemovable: Boolean; cdecl; function maxArgumentBufferSamplerCount: NSUInteger; cdecl; function maxBufferLength: NSUInteger; cdecl; function maxThreadgroupMemoryLength: NSUInteger; cdecl; function maxThreadsPerThreadgroup: MTLSize; cdecl; function minimumLinearTextureAlignmentForPixelFormat(format: MTLPixelFormat): NSUInteger; cdecl; function minimumTextureBufferAlignmentForPixelFormat(format: MTLPixelFormat): NSUInteger; cdecl; function name: NSString; cdecl; function newAccelerationStructureWithDescriptor(descriptor: MTLAccelerationStructureDescriptor): Pointer; cdecl; function newAccelerationStructureWithSize(size: NSUInteger): Pointer; cdecl; function newArgumentEncoderWithArguments(arguments: NSArray): Pointer; cdecl; function newBinaryArchiveWithDescriptor(descriptor: MTLBinaryArchiveDescriptor; error: PPointer): Pointer; cdecl; function newBufferWithBytes(pointer: Pointer; length: NSUInteger; options: MTLResourceOptions): Pointer; cdecl; function newBufferWithBytesNoCopy(pointer: Pointer; length: NSUInteger; options: MTLResourceOptions; deallocator: TMTLDeviceBlockMethod1): Pointer; cdecl; function newBufferWithLength(length: NSUInteger; options: MTLResourceOptions): Pointer; cdecl; function newCommandQueue: Pointer; cdecl; function newCommandQueueWithMaxCommandBufferCount(maxCommandBufferCount: NSUInteger): Pointer; cdecl; function newComputePipelineStateWithDescriptor(descriptor: MTLComputePipelineDescriptor; options: MTLPipelineOption; reflection: PMTLComputePipelineReflection; error: PPointer): Pointer; overload; cdecl; procedure newComputePipelineStateWithDescriptor(descriptor: MTLComputePipelineDescriptor; options: MTLPipelineOption; completionHandler: MTLNewComputePipelineStateWithReflectionCompletionHandler); overload; cdecl; function newComputePipelineStateWithFunction(computeFunction: Pointer; options: MTLPipelineOption; reflection: PMTLComputePipelineReflection; error: PPointer): Pointer; overload; cdecl; function newComputePipelineStateWithFunction(computeFunction: Pointer; error: PPointer): Pointer; overload; cdecl; procedure newComputePipelineStateWithFunction(computeFunction: Pointer; completionHandler: MTLNewComputePipelineStateCompletionHandler); overload; cdecl; procedure newComputePipelineStateWithFunction(computeFunction: Pointer; options: MTLPipelineOption; completionHandler: MTLNewComputePipelineStateWithReflectionCompletionHandler); overload; cdecl; function newCounterSampleBufferWithDescriptor(descriptor: MTLCounterSampleBufferDescriptor; error: PPointer): Pointer; cdecl; function newDefaultLibrary: Pointer; cdecl; function newDefaultLibraryWithBundle(bundle: NSBundle; error: PPointer): Pointer; cdecl; function newDepthStencilStateWithDescriptor(descriptor: MTLDepthStencilDescriptor): Pointer; cdecl; function newDynamicLibrary(&library: Pointer; error: PPointer): Pointer; cdecl; function newDynamicLibraryWithURL(url: NSURL; error: PPointer): Pointer; cdecl; function newEvent: Pointer; cdecl; function newFence: Pointer; cdecl; function newHeapWithDescriptor(descriptor: MTLHeapDescriptor): Pointer; cdecl; function newIndirectCommandBufferWithDescriptor(descriptor: MTLIndirectCommandBufferDescriptor; maxCommandCount: NSUInteger; options: MTLResourceOptions): Pointer; cdecl; function newLibraryWithData(data: dispatch_data_t; error: PPointer): Pointer; cdecl; function newLibraryWithFile(filepath: NSString; error: PPointer): Pointer; cdecl; function newLibraryWithSource(source: NSString; options: MTLCompileOptions; error: PPointer): Pointer; overload; cdecl; procedure newLibraryWithSource(source: NSString; options: MTLCompileOptions; completionHandler: MTLNewLibraryCompletionHandler); overload; cdecl; function newLibraryWithURL(url: NSURL; error: PPointer): Pointer; cdecl; function newRasterizationRateMapWithDescriptor(descriptor: MTLRasterizationRateMapDescriptor): Pointer; cdecl; procedure newRenderPipelineStateWithDescriptor(descriptor: MTLRenderPipelineDescriptor; options: MTLPipelineOption; completionHandler: MTLNewRenderPipelineStateWithReflectionCompletionHandler); overload; cdecl; procedure newRenderPipelineStateWithDescriptor(descriptor: MTLRenderPipelineDescriptor; completionHandler: MTLNewRenderPipelineStateCompletionHandler); overload; cdecl; function newRenderPipelineStateWithDescriptor(descriptor: MTLRenderPipelineDescriptor; error: PPointer): Pointer; overload; cdecl; function newRenderPipelineStateWithDescriptor(descriptor: MTLRenderPipelineDescriptor; options: MTLPipelineOption; reflection: PMTLRenderPipelineReflection; error: PPointer): Pointer; overload; cdecl; function newRenderPipelineStateWithTileDescriptor(descriptor: MTLTileRenderPipelineDescriptor; options: MTLPipelineOption; reflection: PMTLRenderPipelineReflection; error: PPointer): Pointer; overload; cdecl; procedure newRenderPipelineStateWithTileDescriptor(descriptor: MTLTileRenderPipelineDescriptor; options: MTLPipelineOption; completionHandler: MTLNewRenderPipelineStateWithReflectionCompletionHandler); overload; cdecl; function newSamplerStateWithDescriptor(descriptor: MTLSamplerDescriptor): Pointer; cdecl; function newSharedEvent: Pointer; cdecl; function newSharedEventWithHandle(sharedEventHandle: MTLSharedEventHandle): Pointer; cdecl; function newSharedTextureWithDescriptor(descriptor: MTLTextureDescriptor): Pointer; cdecl; function newSharedTextureWithHandle(sharedHandle: MTLSharedTextureHandle): Pointer; cdecl; function newTextureWithDescriptor(descriptor: MTLTextureDescriptor; iosurface: IOSurfaceRef; plane: NSUInteger): Pointer; overload; cdecl; function newTextureWithDescriptor(descriptor: MTLTextureDescriptor): Pointer; overload; cdecl; function readWriteTextureSupport: MTLReadWriteTextureTier; cdecl; function recommendedMaxWorkingSetSize: UInt64; cdecl; function registryID: UInt64; cdecl; procedure sampleTimestamps(cpuTimestamp: PMTLTimestamp; gpuTimestamp: PMTLTimestamp); cdecl; function sparseTileSizeInBytes: NSUInteger; cdecl; function sparseTileSizeWithTextureType(textureType: MTLTextureType; pixelFormat: MTLPixelFormat; sampleCount: NSUInteger): MTLSize; cdecl; function supports32BitFloatFiltering: Boolean; cdecl; function supports32BitMSAA: Boolean; cdecl; function supportsBCTextureCompression: Boolean; cdecl; function supportsCounterSampling(samplingPoint: MTLCounterSamplingPoint): Boolean; cdecl; function supportsDynamicLibraries: Boolean; cdecl; function supportsFamily(gpuFamily: MTLGPUFamily): Boolean; cdecl; function supportsFeatureSet(featureSet: MTLFeatureSet): Boolean; cdecl; function supportsFunctionPointers: Boolean; cdecl; function supportsPullModelInterpolation: Boolean; cdecl; function supportsRasterizationRateMapWithLayerCount(layerCount: NSUInteger): Boolean; cdecl; function supportsRaytracing: Boolean; cdecl; function supportsShaderBarycentricCoordinates: Boolean; cdecl; function supportsTextureSampleCount(sampleCount: NSUInteger): Boolean; cdecl; function supportsVertexAmplificationCount(count: NSUInteger): Boolean; cdecl; end; MTLFence = interface(IObjectiveC) ['{BC1BFAAF-DE5E-425E-A7D2-F79F1F922A06}'] [MethodName('label')] function &label: NSString; cdecl; function device: Pointer; cdecl; procedure setLabel(&label: NSString); cdecl; end; MTLResourceStatePassSampleBufferAttachmentDescriptorClass = interface(NSObjectClass) ['{C9220C70-E1D6-4586-9655-D08FC4951453}'] end; MTLResourceStatePassSampleBufferAttachmentDescriptor = interface(NSObject) ['{3007A722-BC42-4430-9BA8-6A2559627180}'] function endOfEncoderSampleIndex: NSUInteger; cdecl; function sampleBuffer: Pointer; cdecl; procedure setEndOfEncoderSampleIndex(endOfEncoderSampleIndex: NSUInteger); cdecl; procedure setSampleBuffer(sampleBuffer: Pointer); cdecl; procedure setStartOfEncoderSampleIndex(startOfEncoderSampleIndex: NSUInteger); cdecl; function startOfEncoderSampleIndex: NSUInteger; cdecl; end; TMTLResourceStatePassSampleBufferAttachmentDescriptor = class(TOCGenericImport<MTLResourceStatePassSampleBufferAttachmentDescriptorClass, MTLResourceStatePassSampleBufferAttachmentDescriptor>) end; MTLResourceStatePassSampleBufferAttachmentDescriptorArrayClass = interface(NSObjectClass) ['{47A8C274-1283-4A56-8CF8-E78D076EB659}'] end; MTLResourceStatePassSampleBufferAttachmentDescriptorArray = interface(NSObject) ['{26E2C4C6-F386-4C5B-BC87-AF2B69B20B4A}'] function objectAtIndexedSubscript(attachmentIndex: NSUInteger): MTLResourceStatePassSampleBufferAttachmentDescriptor; cdecl; procedure setObject(attachment: MTLResourceStatePassSampleBufferAttachmentDescriptor; atIndexedSubscript: NSUInteger); cdecl; end; TMTLResourceStatePassSampleBufferAttachmentDescriptorArray = class(TOCGenericImport<MTLResourceStatePassSampleBufferAttachmentDescriptorArrayClass, MTLResourceStatePassSampleBufferAttachmentDescriptorArray>) end; MTLResourceStatePassDescriptorClass = interface(NSObjectClass) ['{59F187B4-58F5-4A18-B74B-98693045FB76}'] {class} function resourceStatePassDescriptor: MTLResourceStatePassDescriptor; cdecl; end; MTLResourceStatePassDescriptor = interface(NSObject) ['{AD6448B5-151C-4594-BB42-8A6ADF35DF2A}'] function sampleBufferAttachments: MTLResourceStatePassSampleBufferAttachmentDescriptorArray; cdecl; end; TMTLResourceStatePassDescriptor = class(TOCGenericImport<MTLResourceStatePassDescriptorClass, MTLResourceStatePassDescriptor>) end; MTLResourceStateCommandEncoder = interface(IObjectiveC) ['{01E2A049-91BC-4F27-995A-2512014CC340}'] procedure updateFence(fence: Pointer); cdecl; procedure updateTextureMapping(texture: Pointer; mode: MTLSparseTextureMappingMode; indirectBuffer: Pointer; indirectBufferOffset: NSUInteger); overload; cdecl; procedure updateTextureMapping(texture: Pointer; mode: MTLSparseTextureMappingMode; region: MTLRegion; mipLevel: NSUInteger; slice: NSUInteger); overload; cdecl; procedure updateTextureMappings(texture: Pointer; mode: MTLSparseTextureMappingMode; regions: PMTLRegion; mipLevels: PNSUInteger; slices: PNSUInteger; numRegions: NSUInteger); cdecl; procedure waitForFence(fence: Pointer); cdecl; end; MTLRenderPassAttachmentDescriptorClass = interface(NSObjectClass) ['{20DB0D54-A648-40C7-8572-32DCD7BEF9F0}'] end; MTLRenderPassAttachmentDescriptor = interface(NSObject) ['{BFA4343F-7472-428C-A2B8-CF9AA9668435}'] function depthPlane: NSUInteger; cdecl; function level: NSUInteger; cdecl; function loadAction: MTLLoadAction; cdecl; function resolveDepthPlane: NSUInteger; cdecl; function resolveLevel: NSUInteger; cdecl; function resolveSlice: NSUInteger; cdecl; function resolveTexture: Pointer; cdecl; procedure setDepthPlane(depthPlane: NSUInteger); cdecl; procedure setLevel(level: NSUInteger); cdecl; procedure setLoadAction(loadAction: MTLLoadAction); cdecl; procedure setResolveDepthPlane(resolveDepthPlane: NSUInteger); cdecl; procedure setResolveLevel(resolveLevel: NSUInteger); cdecl; procedure setResolveSlice(resolveSlice: NSUInteger); cdecl; procedure setResolveTexture(resolveTexture: Pointer); cdecl; procedure setSlice(slice: NSUInteger); cdecl; procedure setStoreAction(storeAction: MTLStoreAction); cdecl; procedure setStoreActionOptions(storeActionOptions: MTLStoreActionOptions); cdecl; procedure setTexture(texture: Pointer); cdecl; function slice: NSUInteger; cdecl; function storeAction: MTLStoreAction; cdecl; function storeActionOptions: MTLStoreActionOptions; cdecl; function texture: Pointer; cdecl; end; TMTLRenderPassAttachmentDescriptor = class(TOCGenericImport<MTLRenderPassAttachmentDescriptorClass, MTLRenderPassAttachmentDescriptor>) end; MTLRenderPassColorAttachmentDescriptorClass = interface(MTLRenderPassAttachmentDescriptorClass) ['{0FEC13B6-1D1F-4E18-AAEB-23EF9A8AEB4F}'] end; MTLRenderPassColorAttachmentDescriptor = interface(MTLRenderPassAttachmentDescriptor) ['{2D5544B3-3150-48F9-AA8B-E2DDC3BA4F42}'] function clearColor: MTLClearColor; cdecl; procedure setClearColor(clearColor: MTLClearColor); cdecl; end; TMTLRenderPassColorAttachmentDescriptor = class(TOCGenericImport<MTLRenderPassColorAttachmentDescriptorClass, MTLRenderPassColorAttachmentDescriptor>) end; MTLRenderPassDepthAttachmentDescriptorClass = interface(MTLRenderPassAttachmentDescriptorClass) ['{118505EA-2A76-485D-9BFE-5425486421D7}'] end; MTLRenderPassDepthAttachmentDescriptor = interface(MTLRenderPassAttachmentDescriptor) ['{504BF323-ACFC-4026-BFDD-806AA7087408}'] function clearDepth: Double; cdecl; function depthResolveFilter: MTLMultisampleDepthResolveFilter; cdecl; procedure setClearDepth(clearDepth: Double); cdecl; procedure setDepthResolveFilter(depthResolveFilter: MTLMultisampleDepthResolveFilter); cdecl; end; TMTLRenderPassDepthAttachmentDescriptor = class(TOCGenericImport<MTLRenderPassDepthAttachmentDescriptorClass, MTLRenderPassDepthAttachmentDescriptor>) end; MTLRenderPassStencilAttachmentDescriptorClass = interface(MTLRenderPassAttachmentDescriptorClass) ['{0A0A536D-872B-4E74-B393-9FBC2FD6FC53}'] end; MTLRenderPassStencilAttachmentDescriptor = interface(MTLRenderPassAttachmentDescriptor) ['{CCBCFBC8-9C4C-45EF-898F-B62555E3621C}'] function clearStencil: UInt32; cdecl; procedure setClearStencil(clearStencil: UInt32); cdecl; procedure setStencilResolveFilter(stencilResolveFilter: MTLMultisampleStencilResolveFilter); cdecl; function stencilResolveFilter: MTLMultisampleStencilResolveFilter; cdecl; end; TMTLRenderPassStencilAttachmentDescriptor = class(TOCGenericImport<MTLRenderPassStencilAttachmentDescriptorClass, MTLRenderPassStencilAttachmentDescriptor>) end; MTLRenderPassColorAttachmentDescriptorArrayClass = interface(NSObjectClass) ['{867C7206-9CAC-458A-8D93-8D9F658DA87A}'] end; MTLRenderPassColorAttachmentDescriptorArray = interface(NSObject) ['{AC26D6BC-372E-4813-A2C2-DBCDC3B609B9}'] function objectAtIndexedSubscript(attachmentIndex: NSUInteger): MTLRenderPassColorAttachmentDescriptor; cdecl; procedure setObject(attachment: MTLRenderPassColorAttachmentDescriptor; atIndexedSubscript: NSUInteger); cdecl; end; TMTLRenderPassColorAttachmentDescriptorArray = class(TOCGenericImport<MTLRenderPassColorAttachmentDescriptorArrayClass, MTLRenderPassColorAttachmentDescriptorArray>) end; MTLRenderPassSampleBufferAttachmentDescriptorClass = interface(NSObjectClass) ['{DFF233AB-9D2A-4C16-8640-29627D34E39F}'] end; MTLRenderPassSampleBufferAttachmentDescriptor = interface(NSObject) ['{8E56DF81-9FC1-4CFE-8D12-3898304B2EFF}'] function endOfFragmentSampleIndex: NSUInteger; cdecl; function endOfVertexSampleIndex: NSUInteger; cdecl; function sampleBuffer: Pointer; cdecl; procedure setEndOfFragmentSampleIndex(endOfFragmentSampleIndex: NSUInteger); cdecl; procedure setEndOfVertexSampleIndex(endOfVertexSampleIndex: NSUInteger); cdecl; procedure setSampleBuffer(sampleBuffer: Pointer); cdecl; procedure setStartOfFragmentSampleIndex(startOfFragmentSampleIndex: NSUInteger); cdecl; procedure setStartOfVertexSampleIndex(startOfVertexSampleIndex: NSUInteger); cdecl; function startOfFragmentSampleIndex: NSUInteger; cdecl; function startOfVertexSampleIndex: NSUInteger; cdecl; end; TMTLRenderPassSampleBufferAttachmentDescriptor = class(TOCGenericImport<MTLRenderPassSampleBufferAttachmentDescriptorClass, MTLRenderPassSampleBufferAttachmentDescriptor>) end; MTLRenderPassSampleBufferAttachmentDescriptorArrayClass = interface(NSObjectClass) ['{0EF2472F-DDF2-467C-BC08-B067CE28F5F9}'] end; MTLRenderPassSampleBufferAttachmentDescriptorArray = interface(NSObject) ['{D16D20D4-A13F-4D9D-B568-57E6BB499E87}'] function objectAtIndexedSubscript(attachmentIndex: NSUInteger): MTLRenderPassSampleBufferAttachmentDescriptor; cdecl; procedure setObject(attachment: MTLRenderPassSampleBufferAttachmentDescriptor; atIndexedSubscript: NSUInteger); cdecl; end; TMTLRenderPassSampleBufferAttachmentDescriptorArray = class(TOCGenericImport<MTLRenderPassSampleBufferAttachmentDescriptorArrayClass, MTLRenderPassSampleBufferAttachmentDescriptorArray>) end; MTLRenderPassDescriptorClass = interface(NSObjectClass) ['{A5FD125E-54C4-45BB-AE68-6591316ACB54}'] {class} function renderPassDescriptor: MTLRenderPassDescriptor; cdecl; end; MTLRenderPassDescriptor = interface(NSObject) ['{3A4BD6CE-914C-47F3-B7A8-48410445C944}'] function colorAttachments: MTLRenderPassColorAttachmentDescriptorArray; cdecl; function defaultRasterSampleCount: NSUInteger; cdecl; function depthAttachment: MTLRenderPassDepthAttachmentDescriptor; cdecl; function getSamplePositions(positions: PMTLSamplePosition; count: NSUInteger): NSUInteger; cdecl; function imageblockSampleLength: NSUInteger; cdecl; function rasterizationRateMap: Pointer; cdecl; function renderTargetArrayLength: NSUInteger; cdecl; function renderTargetHeight: NSUInteger; cdecl; function renderTargetWidth: NSUInteger; cdecl; function sampleBufferAttachments: MTLRenderPassSampleBufferAttachmentDescriptorArray; cdecl; procedure setDefaultRasterSampleCount(defaultRasterSampleCount: NSUInteger); cdecl; procedure setDepthAttachment(depthAttachment: MTLRenderPassDepthAttachmentDescriptor); cdecl; procedure setImageblockSampleLength(imageblockSampleLength: NSUInteger); cdecl; procedure setRasterizationRateMap(rasterizationRateMap: Pointer); cdecl; procedure setRenderTargetArrayLength(renderTargetArrayLength: NSUInteger); cdecl; procedure setRenderTargetHeight(renderTargetHeight: NSUInteger); cdecl; procedure setRenderTargetWidth(renderTargetWidth: NSUInteger); cdecl; procedure setSamplePositions(positions: PMTLSamplePosition; count: NSUInteger); cdecl; procedure setStencilAttachment(stencilAttachment: MTLRenderPassStencilAttachmentDescriptor); cdecl; procedure setThreadgroupMemoryLength(threadgroupMemoryLength: NSUInteger); cdecl; procedure setTileHeight(tileHeight: NSUInteger); cdecl; procedure setTileWidth(tileWidth: NSUInteger); cdecl; procedure setVisibilityResultBuffer(visibilityResultBuffer: Pointer); cdecl; function stencilAttachment: MTLRenderPassStencilAttachmentDescriptor; cdecl; function threadgroupMemoryLength: NSUInteger; cdecl; function tileHeight: NSUInteger; cdecl; function tileWidth: NSUInteger; cdecl; function visibilityResultBuffer: Pointer; cdecl; end; TMTLRenderPassDescriptor = class(TOCGenericImport<MTLRenderPassDescriptorClass, MTLRenderPassDescriptor>) end; MTLBlitPassSampleBufferAttachmentDescriptorClass = interface(NSObjectClass) ['{72F4A3E4-2C77-4610-887C-B9BEEAC083EF}'] end; MTLBlitPassSampleBufferAttachmentDescriptor = interface(NSObject) ['{86038783-B327-476C-9D34-E0672195D26C}'] function endOfEncoderSampleIndex: NSUInteger; cdecl; function sampleBuffer: Pointer; cdecl; procedure setEndOfEncoderSampleIndex(endOfEncoderSampleIndex: NSUInteger); cdecl; procedure setSampleBuffer(sampleBuffer: Pointer); cdecl; procedure setStartOfEncoderSampleIndex(startOfEncoderSampleIndex: NSUInteger); cdecl; function startOfEncoderSampleIndex: NSUInteger; cdecl; end; TMTLBlitPassSampleBufferAttachmentDescriptor = class(TOCGenericImport<MTLBlitPassSampleBufferAttachmentDescriptorClass, MTLBlitPassSampleBufferAttachmentDescriptor>) end; MTLBlitPassSampleBufferAttachmentDescriptorArrayClass = interface(NSObjectClass) ['{EB1E263C-2C8F-403D-BF2F-A4F2876F5D05}'] end; MTLBlitPassSampleBufferAttachmentDescriptorArray = interface(NSObject) ['{960A71BC-A103-4A23-AE01-549A27E3513D}'] function objectAtIndexedSubscript(attachmentIndex: NSUInteger): MTLBlitPassSampleBufferAttachmentDescriptor; cdecl; procedure setObject(attachment: MTLBlitPassSampleBufferAttachmentDescriptor; atIndexedSubscript: NSUInteger); cdecl; end; TMTLBlitPassSampleBufferAttachmentDescriptorArray = class(TOCGenericImport<MTLBlitPassSampleBufferAttachmentDescriptorArrayClass, MTLBlitPassSampleBufferAttachmentDescriptorArray>) end; MTLBlitPassDescriptorClass = interface(NSObjectClass) ['{980E06E1-0553-4EEB-A1B7-F100FB89AA76}'] {class} function blitPassDescriptor: MTLBlitPassDescriptor; cdecl; end; MTLBlitPassDescriptor = interface(NSObject) ['{BF195689-F530-475F-818E-D68F5B6B46E4}'] function sampleBufferAttachments: MTLBlitPassSampleBufferAttachmentDescriptorArray; cdecl; end; TMTLBlitPassDescriptor = class(TOCGenericImport<MTLBlitPassDescriptorClass, MTLBlitPassDescriptor>) end; MTLBlitCommandEncoder = interface(IObjectiveC) ['{5C555D59-EE76-42A0-85AF-70B8E0A95870}'] procedure copyFromBuffer(sourceBuffer: Pointer; sourceOffset: NSUInteger; sourceBytesPerRow: NSUInteger; sourceBytesPerImage: NSUInteger; sourceSize: MTLSize; toTexture: Pointer; destinationSlice: NSUInteger; destinationLevel: NSUInteger; destinationOrigin: MTLOrigin); overload; cdecl; procedure copyFromBuffer(sourceBuffer: Pointer; sourceOffset: NSUInteger; sourceBytesPerRow: NSUInteger; sourceBytesPerImage: NSUInteger; sourceSize: MTLSize; toTexture: Pointer; destinationSlice: NSUInteger; destinationLevel: NSUInteger; destinationOrigin: MTLOrigin; options: MTLBlitOption); overload; cdecl; procedure copyFromBuffer(sourceBuffer: Pointer; sourceOffset: NSUInteger; toBuffer: Pointer; destinationOffset: NSUInteger; size: NSUInteger); overload; cdecl; procedure copyFromTexture(sourceTexture: Pointer; sourceSlice: NSUInteger; sourceLevel: NSUInteger; sourceOrigin: MTLOrigin; sourceSize: MTLSize; toBuffer: Pointer; destinationOffset: NSUInteger; destinationBytesPerRow: NSUInteger; destinationBytesPerImage: NSUInteger; options: MTLBlitOption); overload; cdecl; procedure copyFromTexture(sourceTexture: Pointer; sourceSlice: NSUInteger; sourceLevel: NSUInteger; toTexture: Pointer; destinationSlice: NSUInteger; destinationLevel: NSUInteger; sliceCount: NSUInteger; levelCount: NSUInteger); overload; cdecl; procedure copyFromTexture(sourceTexture: Pointer; toTexture: Pointer); overload; cdecl; procedure copyFromTexture(sourceTexture: Pointer; sourceSlice: NSUInteger; sourceLevel: NSUInteger; sourceOrigin: MTLOrigin; sourceSize: MTLSize; toBuffer: Pointer; destinationOffset: NSUInteger; destinationBytesPerRow: NSUInteger; destinationBytesPerImage: NSUInteger); overload; cdecl; procedure copyFromTexture(sourceTexture: Pointer; sourceSlice: NSUInteger; sourceLevel: NSUInteger; sourceOrigin: MTLOrigin; sourceSize: MTLSize; toTexture: Pointer; destinationSlice: NSUInteger; destinationLevel: NSUInteger; destinationOrigin: MTLOrigin); overload; cdecl; procedure copyIndirectCommandBuffer(source: Pointer; sourceRange: NSRange; destination: Pointer; destinationIndex: NSUInteger); cdecl; procedure fillBuffer(buffer: Pointer; range: NSRange; value: UInt8); cdecl; procedure generateMipmapsForTexture(texture: Pointer); cdecl; procedure getTextureAccessCounters(texture: Pointer; region: MTLRegion; mipLevel: NSUInteger; slice: NSUInteger; resetCounters: Boolean; countersBuffer: Pointer; countersBufferOffset: NSUInteger); cdecl; procedure optimizeContentsForCPUAccess(texture: Pointer; slice: NSUInteger; level: NSUInteger); overload; cdecl; procedure optimizeContentsForCPUAccess(texture: Pointer); overload; cdecl; procedure optimizeContentsForGPUAccess(texture: Pointer; slice: NSUInteger; level: NSUInteger); overload; cdecl; procedure optimizeContentsForGPUAccess(texture: Pointer); overload; cdecl; procedure optimizeIndirectCommandBuffer(indirectCommandBuffer: Pointer; withRange: NSRange); cdecl; procedure resetCommandsInBuffer(buffer: Pointer; withRange: NSRange); cdecl; procedure resetTextureAccessCounters(texture: Pointer; region: MTLRegion; mipLevel: NSUInteger; slice: NSUInteger); cdecl; procedure resolveCounters(sampleBuffer: Pointer; inRange: NSRange; destinationBuffer: Pointer; destinationOffset: NSUInteger); cdecl; procedure sampleCountersInBuffer(sampleBuffer: Pointer; atSampleIndex: NSUInteger; withBarrier: Boolean); cdecl; procedure synchronizeResource(resource: Pointer); cdecl; procedure synchronizeTexture(texture: Pointer; slice: NSUInteger; level: NSUInteger); cdecl; procedure updateFence(fence: Pointer); cdecl; procedure waitForFence(fence: Pointer); cdecl; end; MTLCommandBufferDescriptorClass = interface(NSObjectClass) ['{2A499736-6CC0-4A49-82AC-9F59D99ABD38}'] end; MTLCommandBufferDescriptor = interface(NSObject) ['{AEB40006-95D4-4975-816C-F3A5BF358943}'] function errorOptions: MTLCommandBufferErrorOption; cdecl; function retainedReferences: Boolean; cdecl; procedure setErrorOptions(errorOptions: MTLCommandBufferErrorOption); cdecl; procedure setRetainedReferences(retainedReferences: Boolean); cdecl; end; TMTLCommandBufferDescriptor = class(TOCGenericImport<MTLCommandBufferDescriptorClass, MTLCommandBufferDescriptor>) end; MTLCommandBufferEncoderInfo = interface(IObjectiveC) ['{5E343646-6E99-49C7-8938-33E20C5A3105}'] [MethodName('label')] function &label: NSString; cdecl; function debugSignposts: NSArray; cdecl; function errorState: MTLCommandEncoderErrorState; cdecl; end; MTLCommandBuffer = interface(IObjectiveC) ['{A1E45D5F-547A-4E52-BEA3-D388DC42C344}'] [MethodName('label')] function &label: NSString; cdecl; function accelerationStructureCommandEncoder: Pointer; cdecl; procedure addCompletedHandler(block: MTLCommandBufferHandler); cdecl; procedure addScheduledHandler(block: MTLCommandBufferHandler); cdecl; function blitCommandEncoder: Pointer; cdecl; function blitCommandEncoderWithDescriptor(blitPassDescriptor: MTLBlitPassDescriptor): Pointer; cdecl; function commandQueue: Pointer; cdecl; procedure commit; cdecl; function computeCommandEncoder: Pointer; cdecl; function computeCommandEncoderWithDescriptor(computePassDescriptor: MTLComputePassDescriptor): Pointer; cdecl; function computeCommandEncoderWithDispatchType(dispatchType: MTLDispatchType): Pointer; cdecl; function device: Pointer; cdecl; procedure encodeSignalEvent(event: Pointer; value: UInt64); cdecl; procedure encodeWaitForEvent(event: Pointer; value: UInt64); cdecl; procedure enqueue; cdecl; function error: NSError; cdecl; function errorOptions: MTLCommandBufferErrorOption; cdecl; function GPUEndTime: CFTimeInterval; cdecl; function GPUStartTime: CFTimeInterval; cdecl; function kernelEndTime: CFTimeInterval; cdecl; function kernelStartTime: CFTimeInterval; cdecl; function logs: Pointer; cdecl; function parallelRenderCommandEncoderWithDescriptor(renderPassDescriptor: MTLRenderPassDescriptor): Pointer; cdecl; procedure popDebugGroup; cdecl; procedure presentDrawable(drawable: Pointer); cdecl; [MethodName('presentDrawable:afterMinimumDuration:')] procedure presentDrawableAfterMinimumDuration(drawable: Pointer; afterMinimumDuration: CFTimeInterval); cdecl; [MethodName('presentDrawable:atTime:')] procedure presentDrawableAtTime(drawable: Pointer; atTime: CFTimeInterval); cdecl; procedure pushDebugGroup(&string: NSString); cdecl; function renderCommandEncoderWithDescriptor(renderPassDescriptor: MTLRenderPassDescriptor): Pointer; cdecl; function resourceStateCommandEncoder: Pointer; cdecl; function resourceStateCommandEncoderWithDescriptor(resourceStatePassDescriptor: MTLResourceStatePassDescriptor): Pointer; cdecl; function retainedReferences: Boolean; cdecl; procedure setLabel(&label: NSString); cdecl; function status: MTLCommandBufferStatus; cdecl; procedure waitUntilCompleted; cdecl; procedure waitUntilScheduled; cdecl; end; MTLComputePassSampleBufferAttachmentDescriptorClass = interface(NSObjectClass) ['{98BBFFE0-292D-4D4B-8742-86856CF43294}'] end; MTLComputePassSampleBufferAttachmentDescriptor = interface(NSObject) ['{B9E5BE6C-3DF4-44BE-A89B-6AE237DC514D}'] function endOfEncoderSampleIndex: NSUInteger; cdecl; function sampleBuffer: Pointer; cdecl; procedure setEndOfEncoderSampleIndex(endOfEncoderSampleIndex: NSUInteger); cdecl; procedure setSampleBuffer(sampleBuffer: Pointer); cdecl; procedure setStartOfEncoderSampleIndex(startOfEncoderSampleIndex: NSUInteger); cdecl; function startOfEncoderSampleIndex: NSUInteger; cdecl; end; TMTLComputePassSampleBufferAttachmentDescriptor = class(TOCGenericImport<MTLComputePassSampleBufferAttachmentDescriptorClass, MTLComputePassSampleBufferAttachmentDescriptor>) end; MTLComputePassSampleBufferAttachmentDescriptorArrayClass = interface(NSObjectClass) ['{48CFEC4C-030A-4E39-AAB3-887D42DBECF2}'] end; MTLComputePassSampleBufferAttachmentDescriptorArray = interface(NSObject) ['{53EF06BE-761B-411B-974B-D7D41929324C}'] function objectAtIndexedSubscript(attachmentIndex: NSUInteger): MTLComputePassSampleBufferAttachmentDescriptor; cdecl; procedure setObject(attachment: MTLComputePassSampleBufferAttachmentDescriptor; atIndexedSubscript: NSUInteger); cdecl; end; TMTLComputePassSampleBufferAttachmentDescriptorArray = class(TOCGenericImport<MTLComputePassSampleBufferAttachmentDescriptorArrayClass, MTLComputePassSampleBufferAttachmentDescriptorArray>) end; MTLComputePassDescriptorClass = interface(NSObjectClass) ['{50F209BA-866E-4B15-8EFE-143FA9C719B4}'] {class} function computePassDescriptor: MTLComputePassDescriptor; cdecl; end; MTLComputePassDescriptor = interface(NSObject) ['{3E48708F-4473-4F03-9AE3-30E95A02EEEB}'] function dispatchType: MTLDispatchType; cdecl; function sampleBufferAttachments: MTLComputePassSampleBufferAttachmentDescriptorArray; cdecl; procedure setDispatchType(dispatchType: MTLDispatchType); cdecl; end; TMTLComputePassDescriptor = class(TOCGenericImport<MTLComputePassDescriptorClass, MTLComputePassDescriptor>) end; MTLComputeCommandEncoder = interface(IObjectiveC) ['{B31C9C36-EA83-4626-8049-5084278D7D88}'] procedure dispatchThreadgroups(threadgroupsPerGrid: MTLSize; threadsPerThreadgroup: MTLSize); cdecl; procedure dispatchThreadgroupsWithIndirectBuffer(indirectBuffer: Pointer; indirectBufferOffset: NSUInteger; threadsPerThreadgroup: MTLSize); cdecl; procedure dispatchThreads(threadsPerGrid: MTLSize; threadsPerThreadgroup: MTLSize); cdecl; function dispatchType: MTLDispatchType; cdecl; procedure executeCommandsInBuffer(indirectCommandbuffer: Pointer; indirectBuffer: Pointer; indirectBufferOffset: NSUInteger); overload; cdecl; procedure executeCommandsInBuffer(indirectCommandBuffer: Pointer; withRange: NSRange); overload; cdecl; procedure memoryBarrierWithResources(resources: Pid; count: NSUInteger); cdecl; procedure memoryBarrierWithScope(scope: MTLBarrierScope); cdecl; procedure sampleCountersInBuffer(sampleBuffer: Pointer; atSampleIndex: NSUInteger; withBarrier: Boolean); cdecl; procedure setAccelerationStructure(accelerationStructure: Pointer; atBufferIndex: NSUInteger); cdecl; procedure setBuffer(buffer: Pointer; offset: NSUInteger; atIndex: NSUInteger); cdecl; procedure setBufferOffset(offset: NSUInteger; atIndex: NSUInteger); cdecl; procedure setBuffers(buffers: Pid; offsets: PNSUInteger; withRange: NSRange); cdecl; procedure setBytes(bytes: Pointer; length: NSUInteger; atIndex: NSUInteger); cdecl; procedure setComputePipelineState(state: Pointer); cdecl; procedure setImageblockWidth(width: NSUInteger; height: NSUInteger); cdecl; procedure setIntersectionFunctionTable(intersectionFunctionTable: Pointer; atBufferIndex: NSUInteger); cdecl; procedure setIntersectionFunctionTables(intersectionFunctionTables: Pid; withBufferRange: NSRange); cdecl; procedure setSamplerState(sampler: Pointer; atIndex: NSUInteger); overload; cdecl; procedure setSamplerState(sampler: Pointer; lodMinClamp: Single; lodMaxClamp: Single; atIndex: NSUInteger); overload; cdecl; procedure setSamplerStates(samplers: Pid; lodMinClamps: PSingle; lodMaxClamps: PSingle; withRange: NSRange); overload; cdecl; procedure setSamplerStates(samplers: Pid; withRange: NSRange); overload; cdecl; procedure setStageInRegion(region: MTLRegion); cdecl; procedure setStageInRegionWithIndirectBuffer(indirectBuffer: Pointer; indirectBufferOffset: NSUInteger); cdecl; procedure setTexture(texture: Pointer; atIndex: NSUInteger); cdecl; procedure setTextures(textures: Pid; withRange: NSRange); cdecl; procedure setThreadgroupMemoryLength(length: NSUInteger; atIndex: NSUInteger); cdecl; procedure setVisibleFunctionTable(visibleFunctionTable: Pointer; atBufferIndex: NSUInteger); cdecl; procedure setVisibleFunctionTables(visibleFunctionTables: Pid; withBufferRange: NSRange); cdecl; procedure updateFence(fence: Pointer); cdecl; procedure useHeap(heap: Pointer); cdecl; procedure useHeaps(heaps: Pid; count: NSUInteger); cdecl; procedure useResource(resource: Pointer; usage: MTLResourceUsage); cdecl; procedure useResources(resources: Pid; count: NSUInteger; usage: MTLResourceUsage); cdecl; procedure waitForFence(fence: Pointer); cdecl; end; MTLCommandQueue = interface(IObjectiveC) ['{F441C534-2993-4787-B0EE-6A25EC83F757}'] [MethodName('label')] function &label: NSString; cdecl; function commandBuffer: Pointer; cdecl; function commandBufferWithDescriptor(descriptor: MTLCommandBufferDescriptor): Pointer; cdecl; function commandBufferWithUnretainedReferences: Pointer; cdecl; function device: Pointer; cdecl; procedure insertDebugCaptureBoundary; cdecl; // API_DEPRECATED("Use MTLCaptureScope instead", macos(10.11, 10.13), ios(8.0, 11.0)) procedure setLabel(&label: NSString); cdecl; end; MTLStencilDescriptorClass = interface(NSObjectClass) ['{D5C16B6D-4CEA-4714-9262-C23F8E562AF3}'] end; MTLStencilDescriptor = interface(NSObject) ['{35A23BA2-5787-4EC0-9416-75EBF7F868DE}'] function depthFailureOperation: MTLStencilOperation; cdecl; function depthStencilPassOperation: MTLStencilOperation; cdecl; function readMask: UInt32; cdecl; procedure setDepthFailureOperation(depthFailureOperation: MTLStencilOperation); cdecl; procedure setDepthStencilPassOperation(depthStencilPassOperation: MTLStencilOperation); cdecl; procedure setReadMask(readMask: UInt32); cdecl; procedure setStencilCompareFunction(stencilCompareFunction: MTLCompareFunction); cdecl; procedure setStencilFailureOperation(stencilFailureOperation: MTLStencilOperation); cdecl; procedure setWriteMask(writeMask: UInt32); cdecl; function stencilCompareFunction: MTLCompareFunction; cdecl; function stencilFailureOperation: MTLStencilOperation; cdecl; function writeMask: UInt32; cdecl; end; TMTLStencilDescriptor = class(TOCGenericImport<MTLStencilDescriptorClass, MTLStencilDescriptor>) end; MTLDepthStencilDescriptorClass = interface(NSObjectClass) ['{EBB89342-F6F0-4BBD-BC5C-6C94754DF86C}'] end; MTLDepthStencilDescriptor = interface(NSObject) ['{DA5EA0EE-8FC1-4E63-AD86-BAFE33F590C4}'] [MethodName('label')] function &label: NSString; cdecl; function backFaceStencil: MTLStencilDescriptor; cdecl; function depthCompareFunction: MTLCompareFunction; cdecl; function frontFaceStencil: MTLStencilDescriptor; cdecl; function isDepthWriteEnabled: Boolean; cdecl; procedure setBackFaceStencil(backFaceStencil: MTLStencilDescriptor); cdecl; procedure setDepthCompareFunction(depthCompareFunction: MTLCompareFunction); cdecl; procedure setDepthWriteEnabled(depthWriteEnabled: Boolean); cdecl; procedure setFrontFaceStencil(frontFaceStencil: MTLStencilDescriptor); cdecl; procedure setLabel(&label: NSString); cdecl; end; TMTLDepthStencilDescriptor = class(TOCGenericImport<MTLDepthStencilDescriptorClass, MTLDepthStencilDescriptor>) end; MTLDepthStencilState = interface(IObjectiveC) ['{68E92B59-78EC-4856-BCBA-62180773BF72}'] [MethodName('label')] function &label: NSString; cdecl; function device: Pointer; cdecl; end; MTLDrawable = interface(IObjectiveC) ['{7A7ACBCC-EAA4-4CA2-8106-CD7C899ED074}'] procedure addPresentedHandler(block: MTLDrawablePresentedHandler); cdecl; function drawableID: NSUInteger; cdecl; procedure present; cdecl; procedure presentAfterMinimumDuration(duration: CFTimeInterval); cdecl; procedure presentAtTime(presentationTime: CFTimeInterval); cdecl; function presentedTime: CFTimeInterval; cdecl; end; MTLBufferLayoutDescriptorClass = interface(NSObjectClass) ['{7C495D95-3E3C-47AA-8A27-AF7483C71761}'] end; MTLBufferLayoutDescriptor = interface(NSObject) ['{B431C9A2-3EC9-4A92-AB70-8A64243A9FC2}'] procedure setStepFunction(stepFunction: MTLStepFunction); cdecl; procedure setStepRate(stepRate: NSUInteger); cdecl; procedure setStride(stride: NSUInteger); cdecl; function stepFunction: MTLStepFunction; cdecl; function stepRate: NSUInteger; cdecl; function stride: NSUInteger; cdecl; end; TMTLBufferLayoutDescriptor = class(TOCGenericImport<MTLBufferLayoutDescriptorClass, MTLBufferLayoutDescriptor>) end; MTLBufferLayoutDescriptorArrayClass = interface(NSObjectClass) ['{45C8F8DA-A484-4015-9735-2B2FCB88E6E3}'] end; MTLBufferLayoutDescriptorArray = interface(NSObject) ['{A598927F-631B-49FE-8677-410D50181DF6}'] function objectAtIndexedSubscript(index: NSUInteger): MTLBufferLayoutDescriptor; cdecl; procedure setObject(bufferDesc: MTLBufferLayoutDescriptor; atIndexedSubscript: NSUInteger); cdecl; end; TMTLBufferLayoutDescriptorArray = class(TOCGenericImport<MTLBufferLayoutDescriptorArrayClass, MTLBufferLayoutDescriptorArray>) end; MTLAttributeDescriptorClass = interface(NSObjectClass) ['{3EF0CD52-EB1F-403C-8B0A-660BBEAB6A31}'] end; MTLAttributeDescriptor = interface(NSObject) ['{111949D6-868C-4123-9AF0-04D9CF647333}'] function bufferIndex: NSUInteger; cdecl; function format: MTLAttributeFormat; cdecl; function offset: NSUInteger; cdecl; procedure setBufferIndex(bufferIndex: NSUInteger); cdecl; procedure setFormat(format: MTLAttributeFormat); cdecl; procedure setOffset(offset: NSUInteger); cdecl; end; TMTLAttributeDescriptor = class(TOCGenericImport<MTLAttributeDescriptorClass, MTLAttributeDescriptor>) end; MTLAttributeDescriptorArrayClass = interface(NSObjectClass) ['{9672795E-BE99-4DDF-9F29-E99A7F892820}'] end; MTLAttributeDescriptorArray = interface(NSObject) ['{A8FF9EE3-0B97-43D2-A5A1-A8C2C2E32A74}'] function objectAtIndexedSubscript(index: NSUInteger): MTLAttributeDescriptor; cdecl; procedure setObject(attributeDesc: MTLAttributeDescriptor; atIndexedSubscript: NSUInteger); cdecl; end; TMTLAttributeDescriptorArray = class(TOCGenericImport<MTLAttributeDescriptorArrayClass, MTLAttributeDescriptorArray>) end; MTLStageInputOutputDescriptorClass = interface(NSObjectClass) ['{FB1C54BE-B68A-4E22-9746-8C89F6C53516}'] {class} function stageInputOutputDescriptor: MTLStageInputOutputDescriptor; cdecl; end; MTLStageInputOutputDescriptor = interface(NSObject) ['{897FD8A3-FCC8-4799-848F-25A0338407EB}'] function attributes: MTLAttributeDescriptorArray; cdecl; function indexBufferIndex: NSUInteger; cdecl; function indexType: MTLIndexType; cdecl; function layouts: MTLBufferLayoutDescriptorArray; cdecl; procedure reset; cdecl; procedure setIndexBufferIndex(indexBufferIndex: NSUInteger); cdecl; procedure setIndexType(indexType: MTLIndexType); cdecl; end; TMTLStageInputOutputDescriptor = class(TOCGenericImport<MTLStageInputOutputDescriptorClass, MTLStageInputOutputDescriptor>) end; MTLPipelineBufferDescriptorClass = interface(NSObjectClass) ['{D6317093-8623-4A06-9AD5-1C9D613B9B40}'] end; MTLPipelineBufferDescriptor = interface(NSObject) ['{487D5E30-1274-4E94-8407-2FE095F4F8BB}'] function mutability: MTLMutability; cdecl; procedure setMutability(mutability: MTLMutability); cdecl; end; TMTLPipelineBufferDescriptor = class(TOCGenericImport<MTLPipelineBufferDescriptorClass, MTLPipelineBufferDescriptor>) end; MTLPipelineBufferDescriptorArrayClass = interface(NSObjectClass) ['{30031BA3-A2CF-4482-9FA5-83F670D43F62}'] end; MTLPipelineBufferDescriptorArray = interface(NSObject) ['{2B81B96A-9665-4F72-8F4E-83F1B2CF38A0}'] function objectAtIndexedSubscript(bufferIndex: NSUInteger): MTLPipelineBufferDescriptor; cdecl; procedure setObject(buffer: MTLPipelineBufferDescriptor; atIndexedSubscript: NSUInteger); cdecl; end; TMTLPipelineBufferDescriptorArray = class(TOCGenericImport<MTLPipelineBufferDescriptorArrayClass, MTLPipelineBufferDescriptorArray>) end; MTLLinkedFunctionsClass = interface(NSObjectClass) ['{7CD663A1-D1B3-4B3D-87E6-D2FC4C2961DC}'] {class} function linkedFunctions: MTLLinkedFunctions; cdecl; end; MTLLinkedFunctions = interface(NSObject) ['{A7B8D24A-2BC2-49A7-BF8E-3CC1D74A1ABB}'] function binaryFunctions: NSArray; cdecl; function functions: NSArray; cdecl; function groups: NSDictionary; cdecl; procedure setBinaryFunctions(binaryFunctions: NSArray); cdecl; procedure setFunctions(functions: NSArray); cdecl; procedure setGroups(groups: NSDictionary); cdecl; end; TMTLLinkedFunctions = class(TOCGenericImport<MTLLinkedFunctionsClass, MTLLinkedFunctions>) end; MTLComputePipelineReflectionClass = interface(NSObjectClass) ['{9A81B759-FA22-4033-9FBB-C3D86A34A968}'] end; MTLComputePipelineReflection = interface(NSObject) ['{1D66A9B0-4A29-4A8B-9BC0-A17BFE24219A}'] function arguments: NSArray; cdecl; end; TMTLComputePipelineReflection = class(TOCGenericImport<MTLComputePipelineReflectionClass, MTLComputePipelineReflection>) end; MTLComputePipelineDescriptorClass = interface(NSObjectClass) ['{04F405F5-54B8-4A4A-99D9-DBEE728B5044}'] end; MTLComputePipelineDescriptor = interface(NSObject) ['{C59AD1B8-F71E-4B5D-8BF2-BC40448A0E77}'] [MethodName('label')] function &label: NSString; cdecl; function binaryArchives: NSArray; cdecl; function buffers: MTLPipelineBufferDescriptorArray; cdecl; function computeFunction: Pointer; cdecl; function insertLibraries: NSArray; cdecl; function linkedFunctions: MTLLinkedFunctions; cdecl; function maxCallStackDepth: NSUInteger; cdecl; function maxTotalThreadsPerThreadgroup: NSUInteger; cdecl; procedure reset; cdecl; procedure setBinaryArchives(binaryArchives: NSArray); cdecl; procedure setComputeFunction(computeFunction: Pointer); cdecl; procedure setInsertLibraries(insertLibraries: NSArray); cdecl; procedure setLabel(&label: NSString); cdecl; procedure setLinkedFunctions(linkedFunctions: MTLLinkedFunctions); cdecl; procedure setMaxCallStackDepth(maxCallStackDepth: NSUInteger); cdecl; procedure setMaxTotalThreadsPerThreadgroup(maxTotalThreadsPerThreadgroup: NSUInteger); cdecl; procedure setStageInputDescriptor(stageInputDescriptor: MTLStageInputOutputDescriptor); cdecl; procedure setSupportAddingBinaryFunctions(supportAddingBinaryFunctions: Boolean); cdecl; procedure setSupportIndirectCommandBuffers(supportIndirectCommandBuffers: Boolean); cdecl; procedure setThreadGroupSizeIsMultipleOfThreadExecutionWidth(threadGroupSizeIsMultipleOfThreadExecutionWidth: Boolean); cdecl; function stageInputDescriptor: MTLStageInputOutputDescriptor; cdecl; function supportAddingBinaryFunctions: Boolean; cdecl; function supportIndirectCommandBuffers: Boolean; cdecl; function threadGroupSizeIsMultipleOfThreadExecutionWidth: Boolean; cdecl; end; TMTLComputePipelineDescriptor = class(TOCGenericImport<MTLComputePipelineDescriptorClass, MTLComputePipelineDescriptor>) end; MTLComputePipelineState = interface(IObjectiveC) ['{C884498D-74E1-4BC6-9986-092513AFDF26}'] [MethodName('label')] function &label: NSString; cdecl; function device: Pointer; cdecl; function functionHandleWithFunction(&function: Pointer): Pointer; cdecl; function imageblockMemoryLengthForDimensions(imageblockDimensions: MTLSize): NSUInteger; cdecl; function maxTotalThreadsPerThreadgroup: NSUInteger; cdecl; function newComputePipelineStateWithAdditionalBinaryFunctions(functions: NSArray; error: PPointer): Pointer; cdecl; function newIntersectionFunctionTableWithDescriptor(descriptor: MTLIntersectionFunctionTableDescriptor): Pointer; cdecl; function newVisibleFunctionTableWithDescriptor(descriptor: MTLVisibleFunctionTableDescriptor): Pointer; cdecl; function staticThreadgroupMemoryLength: NSUInteger; cdecl; function supportIndirectCommandBuffers: Boolean; cdecl; function threadExecutionWidth: NSUInteger; cdecl; end; MTLRenderCommandEncoder = interface(IObjectiveC) ['{CC9DFCA5-0F7B-43C9-9E98-ABCD03D7D5BD}'] procedure dispatchThreadsPerTile(threadsPerTile: MTLSize); cdecl; procedure drawIndexedPatches(numberOfPatchControlPoints: NSUInteger; patchStart: NSUInteger; patchCount: NSUInteger; patchIndexBuffer: Pointer; patchIndexBufferOffset: NSUInteger; controlPointIndexBuffer: Pointer; controlPointIndexBufferOffset: NSUInteger; instanceCount: NSUInteger; baseInstance: NSUInteger); overload; cdecl; procedure drawIndexedPatches(numberOfPatchControlPoints: NSUInteger; patchIndexBuffer: Pointer; patchIndexBufferOffset: NSUInteger; controlPointIndexBuffer: Pointer; controlPointIndexBufferOffset: NSUInteger; indirectBuffer: Pointer; indirectBufferOffset: NSUInteger); overload; cdecl; procedure drawIndexedPrimitives(primitiveType: MTLPrimitiveType; indexCount: NSUInteger; indexType: MTLIndexType; indexBuffer: Pointer; indexBufferOffset: NSUInteger; instanceCount: NSUInteger; baseVertex: NSInteger; baseInstance: NSUInteger); overload; cdecl; procedure drawIndexedPrimitives(primitiveType: MTLPrimitiveType; indexCount: NSUInteger; indexType: MTLIndexType; indexBuffer: Pointer; indexBufferOffset: NSUInteger); overload; cdecl; procedure drawIndexedPrimitives(primitiveType: MTLPrimitiveType; indexCount: NSUInteger; indexType: MTLIndexType; indexBuffer: Pointer; indexBufferOffset: NSUInteger; instanceCount: NSUInteger); overload; cdecl; procedure drawIndexedPrimitives(primitiveType: MTLPrimitiveType; indexType: MTLIndexType; indexBuffer: Pointer; indexBufferOffset: NSUInteger; indirectBuffer: Pointer; indirectBufferOffset: NSUInteger); overload; cdecl; procedure drawPatches(numberOfPatchControlPoints: NSUInteger; patchIndexBuffer: Pointer; patchIndexBufferOffset: NSUInteger; indirectBuffer: Pointer; indirectBufferOffset: NSUInteger); overload; cdecl; procedure drawPatches(numberOfPatchControlPoints: NSUInteger; patchStart: NSUInteger; patchCount: NSUInteger; patchIndexBuffer: Pointer; patchIndexBufferOffset: NSUInteger; instanceCount: NSUInteger; baseInstance: NSUInteger); overload; cdecl; procedure drawPrimitives(primitiveType: MTLPrimitiveType; vertexStart: NSUInteger; vertexCount: NSUInteger); overload; cdecl; procedure drawPrimitives(primitiveType: MTLPrimitiveType; vertexStart: NSUInteger; vertexCount: NSUInteger; instanceCount: NSUInteger); overload; cdecl; procedure drawPrimitives(primitiveType: MTLPrimitiveType; vertexStart: NSUInteger; vertexCount: NSUInteger; instanceCount: NSUInteger; baseInstance: NSUInteger); overload; cdecl; procedure drawPrimitives(primitiveType: MTLPrimitiveType; indirectBuffer: Pointer; indirectBufferOffset: NSUInteger); overload; cdecl; procedure executeCommandsInBuffer(indirectCommandbuffer: Pointer; indirectBuffer: Pointer; indirectBufferOffset: NSUInteger); overload; cdecl; procedure executeCommandsInBuffer(indirectCommandBuffer: Pointer; withRange: NSRange); overload; cdecl; procedure memoryBarrierWithResources(resources: Pid; count: NSUInteger; afterStages: MTLRenderStages; beforeStages: MTLRenderStages); cdecl; procedure memoryBarrierWithScope(scope: MTLBarrierScope; afterStages: MTLRenderStages; beforeStages: MTLRenderStages); cdecl; procedure sampleCountersInBuffer(sampleBuffer: Pointer; atSampleIndex: NSUInteger; withBarrier: Boolean); cdecl; procedure setBlendColorRed(red: Single; green: Single; blue: Single; alpha: Single); cdecl; procedure setColorStoreAction(storeAction: MTLStoreAction; atIndex: NSUInteger); cdecl; procedure setColorStoreActionOptions(storeActionOptions: MTLStoreActionOptions; atIndex: NSUInteger); cdecl; procedure setCullMode(cullMode: MTLCullMode); cdecl; procedure setDepthBias(depthBias: Single; slopeScale: Single; clamp: Single); cdecl; procedure setDepthClipMode(depthClipMode: MTLDepthClipMode); cdecl; procedure setDepthStencilState(depthStencilState: Pointer); cdecl; procedure setDepthStoreAction(storeAction: MTLStoreAction); cdecl; procedure setDepthStoreActionOptions(storeActionOptions: MTLStoreActionOptions); cdecl; procedure setFragmentBuffer(buffer: Pointer; offset: NSUInteger; atIndex: NSUInteger); cdecl; procedure setFragmentBufferOffset(offset: NSUInteger; atIndex: NSUInteger); cdecl; procedure setFragmentBuffers(buffers: Pid; offsets: PNSUInteger; withRange: NSRange); cdecl; procedure setFragmentBytes(bytes: Pointer; length: NSUInteger; atIndex: NSUInteger); cdecl; procedure setFragmentSamplerState(sampler: Pointer; lodMinClamp: Single; lodMaxClamp: Single; atIndex: NSUInteger); overload; cdecl; procedure setFragmentSamplerState(sampler: Pointer; atIndex: NSUInteger); overload; cdecl; procedure setFragmentSamplerStates(samplers: Pid; lodMinClamps: PSingle; lodMaxClamps: PSingle; withRange: NSRange); overload; cdecl; procedure setFragmentSamplerStates(samplers: Pid; withRange: NSRange); overload; cdecl; procedure setFragmentTexture(texture: Pointer; atIndex: NSUInteger); cdecl; procedure setFragmentTextures(textures: Pid; withRange: NSRange); cdecl; procedure setFrontFacingWinding(frontFacingWinding: MTLWinding); cdecl; procedure setRenderPipelineState(pipelineState: Pointer); cdecl; procedure setScissorRect(rect: MTLScissorRect); cdecl; procedure setScissorRects(scissorRects: PMTLScissorRect; count: NSUInteger); cdecl; procedure setStencilFrontReferenceValue(frontReferenceValue: UInt32; backReferenceValue: UInt32); cdecl; procedure setStencilReferenceValue(referenceValue: UInt32); cdecl; procedure setStencilStoreAction(storeAction: MTLStoreAction); cdecl; procedure setStencilStoreActionOptions(storeActionOptions: MTLStoreActionOptions); cdecl; procedure setTessellationFactorBuffer(buffer: Pointer; offset: NSUInteger; instanceStride: NSUInteger); cdecl; procedure setTessellationFactorScale(scale: Single); cdecl; procedure setThreadgroupMemoryLength(length: NSUInteger; offset: NSUInteger; atIndex: NSUInteger); cdecl; procedure setTileBuffer(buffer: Pointer; offset: NSUInteger; atIndex: NSUInteger); cdecl; procedure setTileBufferOffset(offset: NSUInteger; atIndex: NSUInteger); cdecl; procedure setTileBuffers(buffers: Pid; offsets: PNSUInteger; withRange: NSRange); cdecl; procedure setTileBytes(bytes: Pointer; length: NSUInteger; atIndex: NSUInteger); cdecl; procedure setTileSamplerState(sampler: Pointer; lodMinClamp: Single; lodMaxClamp: Single; atIndex: NSUInteger); overload; cdecl; procedure setTileSamplerState(sampler: Pointer; atIndex: NSUInteger); overload; cdecl; procedure setTileSamplerStates(samplers: Pid; withRange: NSRange); overload; cdecl; procedure setTileSamplerStates(samplers: Pid; lodMinClamps: PSingle; lodMaxClamps: PSingle; withRange: NSRange); overload; cdecl; procedure setTileTexture(texture: Pointer; atIndex: NSUInteger); cdecl; procedure setTileTextures(textures: Pid; withRange: NSRange); cdecl; procedure setTriangleFillMode(fillMode: MTLTriangleFillMode); cdecl; procedure setVertexAmplificationCount(count: NSUInteger; viewMappings: PMTLVertexAmplificationViewMapping); cdecl; procedure setVertexBuffer(buffer: Pointer; offset: NSUInteger; atIndex: NSUInteger); cdecl; procedure setVertexBufferOffset(offset: NSUInteger; atIndex: NSUInteger); cdecl; procedure setVertexBuffers(buffers: Pid; offsets: PNSUInteger; withRange: NSRange); cdecl; procedure setVertexBytes(bytes: Pointer; length: NSUInteger; atIndex: NSUInteger); cdecl; procedure setVertexSamplerState(sampler: Pointer; atIndex: NSUInteger); overload; cdecl; procedure setVertexSamplerState(sampler: Pointer; lodMinClamp: Single; lodMaxClamp: Single; atIndex: NSUInteger); overload; cdecl; procedure setVertexSamplerStates(samplers: Pid; lodMinClamps: PSingle; lodMaxClamps: PSingle; withRange: NSRange); overload; cdecl; procedure setVertexSamplerStates(samplers: Pid; withRange: NSRange); overload; cdecl; procedure setVertexTexture(texture: Pointer; atIndex: NSUInteger); cdecl; procedure setVertexTextures(textures: Pid; withRange: NSRange); cdecl; procedure setViewport(viewport: MTLViewport); cdecl; procedure setViewports(viewports: PMTLViewport; count: NSUInteger); cdecl; procedure setVisibilityResultMode(mode: MTLVisibilityResultMode; offset: NSUInteger); cdecl; procedure textureBarrier; cdecl; // API_DEPRECATED_WITH_REPLACEMENT("memoryBarrierWithScope:MTLBarrierScopeRenderTargets", macos(10.11, 10.14)) function tileHeight: NSUInteger; cdecl; function tileWidth: NSUInteger; cdecl; procedure updateFence(fence: Pointer; afterStages: MTLRenderStages); cdecl; procedure useHeap(heap: Pointer; stages: MTLRenderStages); overload; cdecl; procedure useHeap(heap: Pointer); overload; cdecl; procedure useHeaps(heaps: Pid; count: NSUInteger); overload; cdecl; procedure useHeaps(heaps: Pid; count: NSUInteger; stages: MTLRenderStages); overload; cdecl; procedure useResource(resource: Pointer; usage: MTLResourceUsage); overload; cdecl; procedure useResource(resource: Pointer; usage: MTLResourceUsage; stages: MTLRenderStages); overload; cdecl; procedure useResources(resources: Pid; count: NSUInteger; usage: MTLResourceUsage; stages: MTLRenderStages); overload; cdecl; procedure useResources(resources: Pid; count: NSUInteger; usage: MTLResourceUsage); overload; cdecl; procedure waitForFence(fence: Pointer; beforeStages: MTLRenderStages); cdecl; end; MTLRenderPipelineColorAttachmentDescriptorClass = interface(NSObjectClass) ['{6EAED948-EDCB-4394-B67E-374630AD5BBC}'] end; MTLRenderPipelineColorAttachmentDescriptor = interface(NSObject) ['{CF6F10D4-DAB4-4910-91B5-47DCB1D8FFFB}'] function alphaBlendOperation: MTLBlendOperation; cdecl; function destinationAlphaBlendFactor: MTLBlendFactor; cdecl; function destinationRGBBlendFactor: MTLBlendFactor; cdecl; function isBlendingEnabled: Boolean; cdecl; function pixelFormat: MTLPixelFormat; cdecl; function rgbBlendOperation: MTLBlendOperation; cdecl; procedure setAlphaBlendOperation(alphaBlendOperation: MTLBlendOperation); cdecl; procedure setBlendingEnabled(blendingEnabled: Boolean); cdecl; procedure setDestinationAlphaBlendFactor(destinationAlphaBlendFactor: MTLBlendFactor); cdecl; procedure setDestinationRGBBlendFactor(destinationRGBBlendFactor: MTLBlendFactor); cdecl; procedure setPixelFormat(pixelFormat: MTLPixelFormat); cdecl; procedure setRgbBlendOperation(rgbBlendOperation: MTLBlendOperation); cdecl; procedure setSourceAlphaBlendFactor(sourceAlphaBlendFactor: MTLBlendFactor); cdecl; procedure setSourceRGBBlendFactor(sourceRGBBlendFactor: MTLBlendFactor); cdecl; procedure setWriteMask(writeMask: MTLColorWriteMask); cdecl; function sourceAlphaBlendFactor: MTLBlendFactor; cdecl; function sourceRGBBlendFactor: MTLBlendFactor; cdecl; function writeMask: MTLColorWriteMask; cdecl; end; TMTLRenderPipelineColorAttachmentDescriptor = class(TOCGenericImport<MTLRenderPipelineColorAttachmentDescriptorClass, MTLRenderPipelineColorAttachmentDescriptor>) end; MTLRenderPipelineReflectionClass = interface(NSObjectClass) ['{9FEBD3A0-D6DC-479A-A4E8-07BE4D251625}'] end; MTLRenderPipelineReflection = interface(NSObject) ['{6572F74E-2474-48C7-A3DC-96F702E32C40}'] function fragmentArguments: NSArray; cdecl; function tileArguments: NSArray; cdecl; function vertexArguments: NSArray; cdecl; end; TMTLRenderPipelineReflection = class(TOCGenericImport<MTLRenderPipelineReflectionClass, MTLRenderPipelineReflection>) end; MTLRenderPipelineDescriptorClass = interface(NSObjectClass) ['{8AA7BE66-4B4E-4779-BD23-4E1BEF1A9A45}'] end; MTLRenderPipelineDescriptor = interface(NSObject) ['{E3200A47-13D7-4553-AD86-C4820BA1BEFA}'] [MethodName('label')] function &label: NSString; cdecl; function binaryArchives: NSArray; cdecl; function colorAttachments: MTLRenderPipelineColorAttachmentDescriptorArray; cdecl; function depthAttachmentPixelFormat: MTLPixelFormat; cdecl; function fragmentBuffers: MTLPipelineBufferDescriptorArray; cdecl; function fragmentFunction: Pointer; cdecl; function inputPrimitiveTopology: MTLPrimitiveTopologyClass; cdecl; function isAlphaToCoverageEnabled: Boolean; cdecl; function isAlphaToOneEnabled: Boolean; cdecl; function isRasterizationEnabled: Boolean; cdecl; function isTessellationFactorScaleEnabled: Boolean; cdecl; function maxTessellationFactor: NSUInteger; cdecl; function maxVertexAmplificationCount: NSUInteger; cdecl; function rasterSampleCount: NSUInteger; cdecl; procedure reset; cdecl; function sampleCount: NSUInteger; cdecl; procedure setAlphaToCoverageEnabled(alphaToCoverageEnabled: Boolean); cdecl; procedure setAlphaToOneEnabled(alphaToOneEnabled: Boolean); cdecl; procedure setBinaryArchives(binaryArchives: NSArray); cdecl; procedure setDepthAttachmentPixelFormat(depthAttachmentPixelFormat: MTLPixelFormat); cdecl; procedure setFragmentFunction(fragmentFunction: Pointer); cdecl; procedure setInputPrimitiveTopology(inputPrimitiveTopology: MTLPrimitiveTopologyClass); cdecl; procedure setLabel(&label: NSString); cdecl; procedure setMaxTessellationFactor(maxTessellationFactor: NSUInteger); cdecl; procedure setMaxVertexAmplificationCount(maxVertexAmplificationCount: NSUInteger); cdecl; procedure setRasterizationEnabled(rasterizationEnabled: Boolean); cdecl; procedure setRasterSampleCount(rasterSampleCount: NSUInteger); cdecl; procedure setSampleCount(sampleCount: NSUInteger); cdecl; procedure setStencilAttachmentPixelFormat(stencilAttachmentPixelFormat: MTLPixelFormat); cdecl; procedure setSupportIndirectCommandBuffers(supportIndirectCommandBuffers: Boolean); cdecl; procedure setTessellationControlPointIndexType(tessellationControlPointIndexType: MTLTessellationControlPointIndexType); cdecl; procedure setTessellationFactorFormat(tessellationFactorFormat: MTLTessellationFactorFormat); cdecl; procedure setTessellationFactorScaleEnabled(tessellationFactorScaleEnabled: Boolean); cdecl; procedure setTessellationFactorStepFunction(tessellationFactorStepFunction: MTLTessellationFactorStepFunction); cdecl; procedure setTessellationOutputWindingOrder(tessellationOutputWindingOrder: MTLWinding); cdecl; procedure setTessellationPartitionMode(tessellationPartitionMode: MTLTessellationPartitionMode); cdecl; procedure setVertexDescriptor(vertexDescriptor: MTLVertexDescriptor); cdecl; procedure setVertexFunction(vertexFunction: Pointer); cdecl; function stencilAttachmentPixelFormat: MTLPixelFormat; cdecl; function supportIndirectCommandBuffers: Boolean; cdecl; function tessellationControlPointIndexType: MTLTessellationControlPointIndexType; cdecl; function tessellationFactorFormat: MTLTessellationFactorFormat; cdecl; function tessellationFactorStepFunction: MTLTessellationFactorStepFunction; cdecl; function tessellationOutputWindingOrder: MTLWinding; cdecl; function tessellationPartitionMode: MTLTessellationPartitionMode; cdecl; function vertexBuffers: MTLPipelineBufferDescriptorArray; cdecl; function vertexDescriptor: MTLVertexDescriptor; cdecl; function vertexFunction: Pointer; cdecl; end; TMTLRenderPipelineDescriptor = class(TOCGenericImport<MTLRenderPipelineDescriptorClass, MTLRenderPipelineDescriptor>) end; MTLRenderPipelineState = interface(IObjectiveC) ['{C7A34BB0-D320-4A65-AF67-BBA1E6DB8154}'] [MethodName('label')] function &label: NSString; cdecl; function device: Pointer; cdecl; function imageblockMemoryLengthForDimensions(imageblockDimensions: MTLSize): NSUInteger; cdecl; function imageblockSampleLength: NSUInteger; cdecl; function maxTotalThreadsPerThreadgroup: NSUInteger; cdecl; function supportIndirectCommandBuffers: Boolean; cdecl; function threadgroupSizeMatchesTileSize: Boolean; cdecl; end; MTLRenderPipelineColorAttachmentDescriptorArrayClass = interface(NSObjectClass) ['{4F249328-87D0-41B9-A499-EA5E62670ACE}'] end; MTLRenderPipelineColorAttachmentDescriptorArray = interface(NSObject) ['{039E6917-1187-4519-BAB6-808522BCC5A7}'] function objectAtIndexedSubscript(attachmentIndex: NSUInteger): MTLRenderPipelineColorAttachmentDescriptor; cdecl; procedure setObject(attachment: MTLRenderPipelineColorAttachmentDescriptor; atIndexedSubscript: NSUInteger); cdecl; end; TMTLRenderPipelineColorAttachmentDescriptorArray = class(TOCGenericImport<MTLRenderPipelineColorAttachmentDescriptorArrayClass, MTLRenderPipelineColorAttachmentDescriptorArray>) end; MTLTileRenderPipelineColorAttachmentDescriptorClass = interface(NSObjectClass) ['{18767C1E-289C-4AAB-B33B-E5ADBAB623F8}'] end; MTLTileRenderPipelineColorAttachmentDescriptor = interface(NSObject) ['{780A98AB-CFF8-41D3-80C2-C8E74B0D842C}'] function pixelFormat: MTLPixelFormat; cdecl; procedure setPixelFormat(pixelFormat: MTLPixelFormat); cdecl; end; TMTLTileRenderPipelineColorAttachmentDescriptor = class(TOCGenericImport<MTLTileRenderPipelineColorAttachmentDescriptorClass, MTLTileRenderPipelineColorAttachmentDescriptor>) end; MTLTileRenderPipelineColorAttachmentDescriptorArrayClass = interface(NSObjectClass) ['{EF0DB603-5499-4206-BB3C-A808489B231A}'] end; MTLTileRenderPipelineColorAttachmentDescriptorArray = interface(NSObject) ['{83C7D22D-734D-4FBC-B37F-BFEA644954E6}'] function objectAtIndexedSubscript(attachmentIndex: NSUInteger): MTLTileRenderPipelineColorAttachmentDescriptor; cdecl; procedure setObject(attachment: MTLTileRenderPipelineColorAttachmentDescriptor; atIndexedSubscript: NSUInteger); cdecl; end; TMTLTileRenderPipelineColorAttachmentDescriptorArray = class(TOCGenericImport<MTLTileRenderPipelineColorAttachmentDescriptorArrayClass, MTLTileRenderPipelineColorAttachmentDescriptorArray>) end; MTLTileRenderPipelineDescriptorClass = interface(NSObjectClass) ['{DCA670F7-72D3-4D9E-B85B-382A3C01BF83}'] end; MTLTileRenderPipelineDescriptor = interface(NSObject) ['{27795546-3B18-4E7A-AF33-C7EBD516582E}'] [MethodName('label')] function &label: NSString; cdecl; function binaryArchives: NSArray; cdecl; function colorAttachments: MTLTileRenderPipelineColorAttachmentDescriptorArray; cdecl; function maxTotalThreadsPerThreadgroup: NSUInteger; cdecl; function rasterSampleCount: NSUInteger; cdecl; procedure reset; cdecl; procedure setBinaryArchives(binaryArchives: NSArray); cdecl; procedure setLabel(&label: NSString); cdecl; procedure setMaxTotalThreadsPerThreadgroup(maxTotalThreadsPerThreadgroup: NSUInteger); cdecl; procedure setRasterSampleCount(rasterSampleCount: NSUInteger); cdecl; procedure setThreadgroupSizeMatchesTileSize(threadgroupSizeMatchesTileSize: Boolean); cdecl; procedure setTileFunction(tileFunction: Pointer); cdecl; function threadgroupSizeMatchesTileSize: Boolean; cdecl; function tileBuffers: MTLPipelineBufferDescriptorArray; cdecl; function tileFunction: Pointer; cdecl; end; TMTLTileRenderPipelineDescriptor = class(TOCGenericImport<MTLTileRenderPipelineDescriptorClass, MTLTileRenderPipelineDescriptor>) end; MTLVertexBufferLayoutDescriptorClass = interface(NSObjectClass) ['{F60C6890-96DF-47AF-948B-C14F702D8B39}'] end; MTLVertexBufferLayoutDescriptor = interface(NSObject) ['{10A02B5B-02FC-416A-9C70-21A4EE593739}'] procedure setStepFunction(stepFunction: MTLVertexStepFunction); cdecl; procedure setStepRate(stepRate: NSUInteger); cdecl; procedure setStride(stride: NSUInteger); cdecl; function stepFunction: MTLVertexStepFunction; cdecl; function stepRate: NSUInteger; cdecl; function stride: NSUInteger; cdecl; end; TMTLVertexBufferLayoutDescriptor = class(TOCGenericImport<MTLVertexBufferLayoutDescriptorClass, MTLVertexBufferLayoutDescriptor>) end; MTLVertexBufferLayoutDescriptorArrayClass = interface(NSObjectClass) ['{1968F254-BC77-489F-B1F3-F267161E5708}'] end; MTLVertexBufferLayoutDescriptorArray = interface(NSObject) ['{76D3705F-53E5-4892-B737-36A1F8B24926}'] function objectAtIndexedSubscript(index: NSUInteger): MTLVertexBufferLayoutDescriptor; cdecl; procedure setObject(bufferDesc: MTLVertexBufferLayoutDescriptor; atIndexedSubscript: NSUInteger); cdecl; end; TMTLVertexBufferLayoutDescriptorArray = class(TOCGenericImport<MTLVertexBufferLayoutDescriptorArrayClass, MTLVertexBufferLayoutDescriptorArray>) end; MTLVertexAttributeDescriptorClass = interface(NSObjectClass) ['{868683EC-9254-4DC7-90B8-075AB41E3A18}'] end; MTLVertexAttributeDescriptor = interface(NSObject) ['{104EFFFC-25E2-4E82-BCE1-1238DF58AC97}'] function bufferIndex: NSUInteger; cdecl; function format: MTLVertexFormat; cdecl; function offset: NSUInteger; cdecl; procedure setBufferIndex(bufferIndex: NSUInteger); cdecl; procedure setFormat(format: MTLVertexFormat); cdecl; procedure setOffset(offset: NSUInteger); cdecl; end; TMTLVertexAttributeDescriptor = class(TOCGenericImport<MTLVertexAttributeDescriptorClass, MTLVertexAttributeDescriptor>) end; MTLVertexAttributeDescriptorArrayClass = interface(NSObjectClass) ['{3D7AB8BF-83F4-47A1-9F8D-45F4E121C1D2}'] end; MTLVertexAttributeDescriptorArray = interface(NSObject) ['{62A88D0C-7F28-4792-9458-2209542CB20F}'] function objectAtIndexedSubscript(index: NSUInteger): MTLVertexAttributeDescriptor; cdecl; procedure setObject(attributeDesc: MTLVertexAttributeDescriptor; atIndexedSubscript: NSUInteger); cdecl; end; TMTLVertexAttributeDescriptorArray = class(TOCGenericImport<MTLVertexAttributeDescriptorArrayClass, MTLVertexAttributeDescriptorArray>) end; MTLVertexDescriptorClass = interface(NSObjectClass) ['{D941707F-CAF7-42EC-B2AE-3D99CDFA1839}'] {class} function vertexDescriptor: MTLVertexDescriptor; cdecl; end; MTLVertexDescriptor = interface(NSObject) ['{A082A33E-C98F-4870-A186-B22F6B41E5F8}'] function attributes: MTLVertexAttributeDescriptorArray; cdecl; function layouts: MTLVertexBufferLayoutDescriptorArray; cdecl; procedure reset; cdecl; end; TMTLVertexDescriptor = class(TOCGenericImport<MTLVertexDescriptorClass, MTLVertexDescriptor>) end; MTLParallelRenderCommandEncoder = interface(IObjectiveC) ['{97CF2932-FD17-463B-A2D8-334BB22135F1}'] function renderCommandEncoder: Pointer; cdecl; procedure setColorStoreAction(storeAction: MTLStoreAction; atIndex: NSUInteger); cdecl; procedure setColorStoreActionOptions(storeActionOptions: MTLStoreActionOptions; atIndex: NSUInteger); cdecl; procedure setDepthStoreAction(storeAction: MTLStoreAction); cdecl; procedure setDepthStoreActionOptions(storeActionOptions: MTLStoreActionOptions); cdecl; procedure setStencilStoreAction(storeAction: MTLStoreAction); cdecl; procedure setStencilStoreActionOptions(storeActionOptions: MTLStoreActionOptions); cdecl; end; MTLSamplerDescriptorClass = interface(NSObjectClass) ['{69F3A072-2FA4-4110-9C40-C20CF6DAA586}'] end; MTLSamplerDescriptor = interface(NSObject) ['{B755DEFB-9088-4FAE-9BD6-0206D023D7F9}'] [MethodName('label')] function &label: NSString; cdecl; function borderColor: MTLSamplerBorderColor; cdecl; function compareFunction: MTLCompareFunction; cdecl; function lodAverage: Boolean; cdecl; function lodMaxClamp: Single; cdecl; function lodMinClamp: Single; cdecl; function magFilter: MTLSamplerMinMagFilter; cdecl; function maxAnisotropy: NSUInteger; cdecl; function minFilter: MTLSamplerMinMagFilter; cdecl; function mipFilter: MTLSamplerMipFilter; cdecl; function normalizedCoordinates: Boolean; cdecl; function rAddressMode: MTLSamplerAddressMode; cdecl; function sAddressMode: MTLSamplerAddressMode; cdecl; procedure setBorderColor(borderColor: MTLSamplerBorderColor); cdecl; procedure setCompareFunction(compareFunction: MTLCompareFunction); cdecl; procedure setLabel(&label: NSString); cdecl; procedure setLodAverage(lodAverage: Boolean); cdecl; procedure setLodMaxClamp(lodMaxClamp: Single); cdecl; procedure setLodMinClamp(lodMinClamp: Single); cdecl; procedure setMagFilter(magFilter: MTLSamplerMinMagFilter); cdecl; procedure setMaxAnisotropy(maxAnisotropy: NSUInteger); cdecl; procedure setMinFilter(minFilter: MTLSamplerMinMagFilter); cdecl; procedure setMipFilter(mipFilter: MTLSamplerMipFilter); cdecl; procedure setNormalizedCoordinates(normalizedCoordinates: Boolean); cdecl; procedure setRAddressMode(rAddressMode: MTLSamplerAddressMode); cdecl; procedure setSAddressMode(sAddressMode: MTLSamplerAddressMode); cdecl; procedure setSupportArgumentBuffers(supportArgumentBuffers: Boolean); cdecl; procedure setTAddressMode(tAddressMode: MTLSamplerAddressMode); cdecl; function supportArgumentBuffers: Boolean; cdecl; function tAddressMode: MTLSamplerAddressMode; cdecl; end; TMTLSamplerDescriptor = class(TOCGenericImport<MTLSamplerDescriptorClass, MTLSamplerDescriptor>) end; MTLSamplerState = interface(IObjectiveC) ['{A132BE62-BFBD-4D16-BBE5-55F934824382}'] [MethodName('label')] function &label: NSString; cdecl; function device: Pointer; cdecl; end; MTLHeapDescriptorClass = interface(NSObjectClass) ['{5A26F825-E0AC-4C9D-80E0-DC64E4460794}'] end; MTLHeapDescriptor = interface(NSObject) ['{C1B2F76C-5FA2-4C9C-8320-2806D9E6856B}'] [MethodName('type')] function &type: MTLHeapType; cdecl; function cpuCacheMode: MTLCPUCacheMode; cdecl; function hazardTrackingMode: MTLHazardTrackingMode; cdecl; function resourceOptions: MTLResourceOptions; cdecl; procedure setCpuCacheMode(cpuCacheMode: MTLCPUCacheMode); cdecl; procedure setHazardTrackingMode(hazardTrackingMode: MTLHazardTrackingMode); cdecl; procedure setResourceOptions(resourceOptions: MTLResourceOptions); cdecl; procedure setSize(size: NSUInteger); cdecl; procedure setStorageMode(storageMode: MTLStorageMode); cdecl; procedure setType(&type: MTLHeapType); cdecl; function size: NSUInteger; cdecl; function storageMode: MTLStorageMode; cdecl; end; TMTLHeapDescriptor = class(TOCGenericImport<MTLHeapDescriptorClass, MTLHeapDescriptor>) end; MTLHeap = interface(IObjectiveC) ['{E1D2FC5F-E431-4589-8AD6-B4762132D4A7}'] [MethodName('label')] function &label: NSString; cdecl; [MethodName('type')] function &type: MTLHeapType; cdecl; function cpuCacheMode: MTLCPUCacheMode; cdecl; function currentAllocatedSize: NSUInteger; cdecl; function device: Pointer; cdecl; function hazardTrackingMode: MTLHazardTrackingMode; cdecl; function maxAvailableSizeWithAlignment(alignment: NSUInteger): NSUInteger; cdecl; function newBufferWithLength(length: NSUInteger; options: MTLResourceOptions): Pointer; overload; cdecl; function newBufferWithLength(length: NSUInteger; options: MTLResourceOptions; offset: NSUInteger): Pointer; overload; cdecl; function newTextureWithDescriptor(desc: MTLTextureDescriptor): Pointer; overload; cdecl; function newTextureWithDescriptor(descriptor: MTLTextureDescriptor; offset: NSUInteger): Pointer; overload; cdecl; function resourceOptions: MTLResourceOptions; cdecl; procedure setLabel(&label: NSString); cdecl; function setPurgeableState(state: MTLPurgeableState): MTLPurgeableState; cdecl; function size: NSUInteger; cdecl; function storageMode: MTLStorageMode; cdecl; function usedSize: NSUInteger; cdecl; end; MTLArgumentEncoder = interface(IObjectiveC) ['{2E74FEB3-1A30-4434-A90B-83676DCF8031}'] [MethodName('label')] function &label: NSString; cdecl; function alignment: NSUInteger; cdecl; function constantDataAtIndex(index: NSUInteger): Pointer; cdecl; function device: Pointer; cdecl; function encodedLength: NSUInteger; cdecl; function newArgumentEncoderForBufferAtIndex(index: NSUInteger): Pointer; cdecl; procedure setAccelerationStructure(accelerationStructure: Pointer; atIndex: NSUInteger); cdecl; procedure setArgumentBuffer(argumentBuffer: Pointer; offset: NSUInteger); overload; cdecl; procedure setArgumentBuffer(argumentBuffer: Pointer; startOffset: NSUInteger; arrayElement: NSUInteger); overload; cdecl; procedure setBuffer(buffer: Pointer; offset: NSUInteger; atIndex: NSUInteger); cdecl; procedure setBuffers(buffers: Pid; offsets: PNSUInteger; withRange: NSRange); cdecl; procedure setComputePipelineState(pipeline: Pointer; atIndex: NSUInteger); cdecl; procedure setComputePipelineStates(pipelines: Pid; withRange: NSRange); cdecl; procedure setIndirectCommandBuffer(indirectCommandBuffer: Pointer; atIndex: NSUInteger); cdecl; procedure setIndirectCommandBuffers(buffers: Pid; withRange: NSRange); cdecl; procedure setIntersectionFunctionTable(intersectionFunctionTable: Pointer; atIndex: NSUInteger); cdecl; procedure setIntersectionFunctionTables(intersectionFunctionTables: Pid; withRange: NSRange); cdecl; procedure setLabel(&label: NSString); cdecl; procedure setRenderPipelineState(pipeline: Pointer; atIndex: NSUInteger); cdecl; procedure setRenderPipelineStates(pipelines: Pid; withRange: NSRange); cdecl; procedure setSamplerState(sampler: Pointer; atIndex: NSUInteger); cdecl; procedure setSamplerStates(samplers: Pid; withRange: NSRange); cdecl; procedure setTexture(texture: Pointer; atIndex: NSUInteger); cdecl; procedure setTextures(textures: Pid; withRange: NSRange); cdecl; procedure setVisibleFunctionTable(visibleFunctionTable: Pointer; atIndex: NSUInteger); cdecl; procedure setVisibleFunctionTables(visibleFunctionTables: Pid; withRange: NSRange); cdecl; end; MTLCaptureDescriptorClass = interface(NSObjectClass) ['{555837AC-FACF-4B22-9F22-85F010155DB7}'] end; MTLCaptureDescriptor = interface(NSObject) ['{500084D7-B7D1-4E8B-A9ED-BB7AFC422A1A}'] function captureObject: Pointer; cdecl; function destination: MTLCaptureDestination; cdecl; function outputURL: NSURL; cdecl; procedure setCaptureObject(captureObject: Pointer); cdecl; procedure setDestination(destination: MTLCaptureDestination); cdecl; procedure setOutputURL(outputURL: NSURL); cdecl; end; TMTLCaptureDescriptor = class(TOCGenericImport<MTLCaptureDescriptorClass, MTLCaptureDescriptor>) end; MTLCaptureManagerClass = interface(NSObjectClass) ['{CDAA0736-A36D-49F2-BD86-AA995EADE9AF}'] {class} function sharedCaptureManager: MTLCaptureManager; cdecl; end; MTLCaptureManager = interface(NSObject) ['{C9D8868F-B0AF-4DAF-B6DB-C81C037002CA}'] function defaultCaptureScope: Pointer; cdecl; function isCapturing: Boolean; cdecl; function newCaptureScopeWithCommandQueue(commandQueue: Pointer): Pointer; cdecl; function newCaptureScopeWithDevice(device: Pointer): Pointer; cdecl; procedure setDefaultCaptureScope(defaultCaptureScope: Pointer); cdecl; procedure startCaptureWithCommandQueue(commandQueue: Pointer); cdecl; // API_DEPRECATED("Use startCaptureWithDescriptor:error: instead", macos(10.13, 10.15), ios(11.0, 13.0)) function startCaptureWithDescriptor(descriptor: MTLCaptureDescriptor; error: PPointer): Boolean; cdecl; procedure startCaptureWithDevice(device: Pointer); cdecl; // API_DEPRECATED("Use startCaptureWithDescriptor:error: instead", macos(10.13, 10.15), ios(11.0, 13.0)) procedure startCaptureWithScope(captureScope: Pointer); cdecl; // API_DEPRECATED("Use startCaptureWithDescriptor:error: instead", macos(10.13, 10.15), ios(11.0, 13.0)) procedure stopCapture; cdecl; function supportsDestination(destination: MTLCaptureDestination): Boolean; cdecl; end; TMTLCaptureManager = class(TOCGenericImport<MTLCaptureManagerClass, MTLCaptureManager>) end; MTLCaptureScope = interface(IObjectiveC) ['{614C0FCA-A159-4688-ABF3-83C74A42DDA5}'] [MethodName('label')] function &label: NSString; cdecl; procedure beginScope; cdecl; function commandQueue: Pointer; cdecl; function device: Pointer; cdecl; procedure endScope; cdecl; procedure setLabel(&label: NSString); cdecl; end; MTLIndirectRenderCommand = interface(IObjectiveC) ['{F0FDBEFF-05C6-43DC-A05F-B082C454CEFA}'] procedure drawIndexedPatches(numberOfPatchControlPoints: NSUInteger; patchStart: NSUInteger; patchCount: NSUInteger; patchIndexBuffer: Pointer; patchIndexBufferOffset: NSUInteger; controlPointIndexBuffer: Pointer; controlPointIndexBufferOffset: NSUInteger; instanceCount: NSUInteger; baseInstance: NSUInteger; tessellationFactorBuffer: Pointer; tessellationFactorBufferOffset: NSUInteger; tessellationFactorBufferInstanceStride: NSUInteger); cdecl; procedure drawIndexedPrimitives(primitiveType: MTLPrimitiveType; indexCount: NSUInteger; indexType: MTLIndexType; indexBuffer: Pointer; indexBufferOffset: NSUInteger; instanceCount: NSUInteger; baseVertex: NSInteger; baseInstance: NSUInteger); cdecl; procedure drawPatches(numberOfPatchControlPoints: NSUInteger; patchStart: NSUInteger; patchCount: NSUInteger; patchIndexBuffer: Pointer; patchIndexBufferOffset: NSUInteger; instanceCount: NSUInteger; baseInstance: NSUInteger; tessellationFactorBuffer: Pointer; tessellationFactorBufferOffset: NSUInteger; tessellationFactorBufferInstanceStride: NSUInteger); cdecl; procedure drawPrimitives(primitiveType: MTLPrimitiveType; vertexStart: NSUInteger; vertexCount: NSUInteger; instanceCount: NSUInteger; baseInstance: NSUInteger); cdecl; procedure reset; cdecl; procedure setFragmentBuffer(buffer: Pointer; offset: NSUInteger; atIndex: NSUInteger); cdecl; procedure setRenderPipelineState(pipelineState: Pointer); cdecl; procedure setVertexBuffer(buffer: Pointer; offset: NSUInteger; atIndex: NSUInteger); cdecl; end; MTLIndirectComputeCommand = interface(IObjectiveC) ['{4ADD5FCD-4A90-47A9-A949-43A374D223E2}'] procedure clearBarrier; cdecl; procedure concurrentDispatchThreadgroups(threadgroupsPerGrid: MTLSize; threadsPerThreadgroup: MTLSize); cdecl; procedure concurrentDispatchThreads(threadsPerGrid: MTLSize; threadsPerThreadgroup: MTLSize); cdecl; procedure reset; cdecl; procedure setBarrier; cdecl; procedure setComputePipelineState(pipelineState: Pointer); cdecl; procedure setImageblockWidth(width: NSUInteger; height: NSUInteger); cdecl; procedure setKernelBuffer(buffer: Pointer; offset: NSUInteger; atIndex: NSUInteger); cdecl; procedure setStageInRegion(region: MTLRegion); cdecl; procedure setThreadgroupMemoryLength(length: NSUInteger; atIndex: NSUInteger); cdecl; end; MTLIndirectCommandBufferDescriptorClass = interface(NSObjectClass) ['{9BF7A5B0-C5F9-4E19-9804-934911F47BA9}'] end; MTLIndirectCommandBufferDescriptor = interface(NSObject) ['{E1D35898-E0F3-4711-9FD0-4BD67D8D8DF2}'] function commandTypes: MTLIndirectCommandType; cdecl; function inheritBuffers: Boolean; cdecl; function inheritPipelineState: Boolean; cdecl; function maxFragmentBufferBindCount: NSUInteger; cdecl; function maxKernelBufferBindCount: NSUInteger; cdecl; function maxVertexBufferBindCount: NSUInteger; cdecl; procedure setCommandTypes(commandTypes: MTLIndirectCommandType); cdecl; procedure setInheritBuffers(inheritBuffers: Boolean); cdecl; procedure setInheritPipelineState(inheritPipelineState: Boolean); cdecl; procedure setMaxFragmentBufferBindCount(maxFragmentBufferBindCount: NSUInteger); cdecl; procedure setMaxKernelBufferBindCount(maxKernelBufferBindCount: NSUInteger); cdecl; procedure setMaxVertexBufferBindCount(maxVertexBufferBindCount: NSUInteger); cdecl; end; TMTLIndirectCommandBufferDescriptor = class(TOCGenericImport<MTLIndirectCommandBufferDescriptorClass, MTLIndirectCommandBufferDescriptor>) end; MTLIndirectCommandBuffer = interface(IObjectiveC) ['{D03C8D3E-261D-43F1-BB92-EEE1850DE1BE}'] function indirectComputeCommandAtIndex(commandIndex: NSUInteger): Pointer; cdecl; function indirectRenderCommandAtIndex(commandIndex: NSUInteger): Pointer; cdecl; procedure resetWithRange(range: NSRange); cdecl; function size: NSUInteger; cdecl; end; MTLEvent = interface(IObjectiveC) ['{10CA871A-CEB6-40C0-A03D-125BE92AEF50}'] [MethodName('label')] function &label: NSString; cdecl; function device: Pointer; cdecl; procedure setLabel(&label: NSString); cdecl; end; MTLSharedEventListenerClass = interface(NSObjectClass) ['{8D168806-DCF3-4DA4-85C5-64E88DF2F83B}'] end; MTLSharedEventListener = interface(NSObject) ['{80DE902A-395F-43E7-9A4C-85E69F521440}'] function dispatchQueue: dispatch_queue_t; cdecl; function initWithDispatchQueue(dispatchQueue: dispatch_queue_t): Pointer; cdecl; end; TMTLSharedEventListener = class(TOCGenericImport<MTLSharedEventListenerClass, MTLSharedEventListener>) end; MTLSharedEvent = interface(IObjectiveC) ['{40625E16-9692-4EE1-A542-AFFB49B245EF}'] function newSharedEventHandle: MTLSharedEventHandle; cdecl; procedure notifyListener(listener: MTLSharedEventListener; atValue: UInt64; block: MTLSharedEventNotificationBlock); cdecl; procedure setSignaledValue(signaledValue: UInt64); cdecl; function signaledValue: UInt64; cdecl; end; MTLSharedEventHandleClass = interface(NSObjectClass) ['{A7AB58C9-8C21-47E4-BB5C-53FA64D937AE}'] end; MTLSharedEventHandle = interface(NSObject) ['{71808C31-AF59-4F22-9259-1E199AFE9A83}'] [MethodName('label')] function &label: NSString; cdecl; end; TMTLSharedEventHandle = class(TOCGenericImport<MTLSharedEventHandleClass, MTLSharedEventHandle>) end; MTLLogContainer = interface(IObjectiveC) ['{FB9C2691-FEB6-4CBA-824E-35483C8642E3}'] end; MTLFunctionLogDebugLocation = interface(IObjectiveC) ['{8CC8DA99-6D4B-464B-AE9E-A3D0AA163610}'] function column: NSUInteger; cdecl; function functionName: NSString; cdecl; function line: NSUInteger; cdecl; function URL: NSURL; cdecl; end; MTLFunctionLog = interface(IObjectiveC) ['{33B3C609-A658-4194-81BB-644A4C8E56D6}'] [MethodName('function')] function &function: Pointer; cdecl; [MethodName('type')] function &type: MTLFunctionLogType; cdecl; function debugLocation: Pointer; cdecl; function encoderLabel: NSString; cdecl; end; MTLAccelerationStructureDescriptorClass = interface(NSObjectClass) ['{76B749D3-2535-455B-B9B0-3AADC4DFED89}'] end; MTLAccelerationStructureDescriptor = interface(NSObject) ['{94AA0B1B-258F-48B0-A096-14506ED7951A}'] procedure setUsage(usage: MTLAccelerationStructureUsage); cdecl; function usage: MTLAccelerationStructureUsage; cdecl; end; TMTLAccelerationStructureDescriptor = class(TOCGenericImport<MTLAccelerationStructureDescriptorClass, MTLAccelerationStructureDescriptor>) end; MTLAccelerationStructureGeometryDescriptorClass = interface(NSObjectClass) ['{06E46D77-44F5-4B1D-A1B7-7BC05E65438E}'] end; MTLAccelerationStructureGeometryDescriptor = interface(NSObject) ['{505380D4-42F3-4A84-B845-A1D1D7E63CAB}'] function allowDuplicateIntersectionFunctionInvocation: Boolean; cdecl; function intersectionFunctionTableOffset: NSUInteger; cdecl; function opaque: Boolean; cdecl; procedure setAllowDuplicateIntersectionFunctionInvocation(allowDuplicateIntersectionFunctionInvocation: Boolean); cdecl; procedure setIntersectionFunctionTableOffset(intersectionFunctionTableOffset: NSUInteger); cdecl; procedure setOpaque(opaque: Boolean); cdecl; end; TMTLAccelerationStructureGeometryDescriptor = class(TOCGenericImport<MTLAccelerationStructureGeometryDescriptorClass, MTLAccelerationStructureGeometryDescriptor>) end; MTLPrimitiveAccelerationStructureDescriptorClass = interface(MTLAccelerationStructureDescriptorClass) ['{F92CB14B-2F52-4B1D-BF5D-3901206D3DB7}'] {class} function descriptor: Pointer; cdecl; end; MTLPrimitiveAccelerationStructureDescriptor = interface(MTLAccelerationStructureDescriptor) ['{0F7977B7-E8D6-4C63-B5E0-20D93EF7FDCC}'] function geometryDescriptors: NSArray; cdecl; procedure setGeometryDescriptors(geometryDescriptors: NSArray); cdecl; end; TMTLPrimitiveAccelerationStructureDescriptor = class(TOCGenericImport<MTLPrimitiveAccelerationStructureDescriptorClass, MTLPrimitiveAccelerationStructureDescriptor>) end; MTLAccelerationStructureTriangleGeometryDescriptorClass = interface(MTLAccelerationStructureGeometryDescriptorClass) ['{87B8A76E-3BED-41F3-8248-38B0CCF5C2E0}'] {class} function descriptor: Pointer; cdecl; end; MTLAccelerationStructureTriangleGeometryDescriptor = interface(MTLAccelerationStructureGeometryDescriptor) ['{6EB83184-8022-44BE-98E2-1F79DE06B5FA}'] function indexBuffer: Pointer; cdecl; function indexBufferOffset: NSUInteger; cdecl; function indexType: MTLIndexType; cdecl; procedure setIndexBuffer(indexBuffer: Pointer); cdecl; procedure setIndexBufferOffset(indexBufferOffset: NSUInteger); cdecl; procedure setIndexType(indexType: MTLIndexType); cdecl; procedure setTriangleCount(triangleCount: NSUInteger); cdecl; procedure setVertexBuffer(vertexBuffer: Pointer); cdecl; procedure setVertexBufferOffset(vertexBufferOffset: NSUInteger); cdecl; procedure setVertexStride(vertexStride: NSUInteger); cdecl; function triangleCount: NSUInteger; cdecl; function vertexBuffer: Pointer; cdecl; function vertexBufferOffset: NSUInteger; cdecl; function vertexStride: NSUInteger; cdecl; end; TMTLAccelerationStructureTriangleGeometryDescriptor = class(TOCGenericImport<MTLAccelerationStructureTriangleGeometryDescriptorClass, MTLAccelerationStructureTriangleGeometryDescriptor>) end; MTLAccelerationStructureBoundingBoxGeometryDescriptorClass = interface(MTLAccelerationStructureGeometryDescriptorClass) ['{B36ED013-72A7-4E45-B0EB-1DBC2900C06E}'] {class} function descriptor: Pointer; cdecl; end; MTLAccelerationStructureBoundingBoxGeometryDescriptor = interface(MTLAccelerationStructureGeometryDescriptor) ['{66F36BF9-2392-4F99-A54B-FC51F90747CA}'] function boundingBoxBuffer: Pointer; cdecl; function boundingBoxBufferOffset: NSUInteger; cdecl; function boundingBoxCount: NSUInteger; cdecl; function boundingBoxStride: NSUInteger; cdecl; procedure setBoundingBoxBuffer(boundingBoxBuffer: Pointer); cdecl; procedure setBoundingBoxBufferOffset(boundingBoxBufferOffset: NSUInteger); cdecl; procedure setBoundingBoxCount(boundingBoxCount: NSUInteger); cdecl; procedure setBoundingBoxStride(boundingBoxStride: NSUInteger); cdecl; end; TMTLAccelerationStructureBoundingBoxGeometryDescriptor = class(TOCGenericImport<MTLAccelerationStructureBoundingBoxGeometryDescriptorClass, MTLAccelerationStructureBoundingBoxGeometryDescriptor>) end; MTLInstanceAccelerationStructureDescriptorClass = interface(MTLAccelerationStructureDescriptorClass) ['{207EB5D5-98A7-4FC5-AE81-95A30E354121}'] {class} function descriptor: Pointer; cdecl; end; MTLInstanceAccelerationStructureDescriptor = interface(MTLAccelerationStructureDescriptor) ['{3B5A6C11-74E2-4FFD-B015-5F18269A753A}'] function instanceCount: NSUInteger; cdecl; function instancedAccelerationStructures: NSArray; cdecl; function instanceDescriptorBuffer: Pointer; cdecl; function instanceDescriptorBufferOffset: NSUInteger; cdecl; function instanceDescriptorStride: NSUInteger; cdecl; procedure setInstanceCount(instanceCount: NSUInteger); cdecl; procedure setInstancedAccelerationStructures(instancedAccelerationStructures: NSArray); cdecl; procedure setInstanceDescriptorBuffer(instanceDescriptorBuffer: Pointer); cdecl; procedure setInstanceDescriptorBufferOffset(instanceDescriptorBufferOffset: NSUInteger); cdecl; procedure setInstanceDescriptorStride(instanceDescriptorStride: NSUInteger); cdecl; end; TMTLInstanceAccelerationStructureDescriptor = class(TOCGenericImport<MTLInstanceAccelerationStructureDescriptorClass, MTLInstanceAccelerationStructureDescriptor>) end; MTLAccelerationStructure = interface(IObjectiveC) ['{148E9B28-DAA4-48A4-9870-B99CB6D4F9F1}'] function size: NSUInteger; cdecl; end; MTLAccelerationStructureCommandEncoder = interface(IObjectiveC) ['{27BADD9E-F49B-474D-A259-2E2D759CD4DE}'] procedure buildAccelerationStructure(accelerationStructure: Pointer; descriptor: MTLAccelerationStructureDescriptor; scratchBuffer: Pointer; scratchBufferOffset: NSUInteger); cdecl; procedure copyAccelerationStructure(sourceAccelerationStructure: Pointer; toAccelerationStructure: Pointer); cdecl; procedure copyAndCompactAccelerationStructure(sourceAccelerationStructure: Pointer; toAccelerationStructure: Pointer); cdecl; procedure refitAccelerationStructure(sourceAccelerationStructure: Pointer; descriptor: MTLAccelerationStructureDescriptor; destination: Pointer; scratchBuffer: Pointer; scratchBufferOffset: NSUInteger); cdecl; procedure sampleCountersInBuffer(sampleBuffer: Pointer; atSampleIndex: NSUInteger; withBarrier: Boolean); cdecl; procedure updateFence(fence: Pointer); cdecl; procedure useHeap(heap: Pointer); cdecl; procedure useHeaps(heaps: Pid; count: NSUInteger); cdecl; procedure useResource(resource: Pointer; usage: MTLResourceUsage); cdecl; procedure useResources(resources: Pid; count: NSUInteger; usage: MTLResourceUsage); cdecl; procedure waitForFence(fence: Pointer); cdecl; procedure writeCompactedAccelerationStructureSize(accelerationStructure: Pointer; toBuffer: Pointer; offset: NSUInteger); cdecl; end; MTLRasterizationRateSampleArrayClass = interface(NSObjectClass) ['{CC0D9DBF-0B60-44A2-95CA-B0C7577C5D3A}'] end; MTLRasterizationRateSampleArray = interface(NSObject) ['{8C7D643F-2EE6-41F7-AA18-ED8D557F82C8}'] function objectAtIndexedSubscript(index: NSUInteger): NSNumber; cdecl; procedure setObject(value: NSNumber; atIndexedSubscript: NSUInteger); cdecl; end; TMTLRasterizationRateSampleArray = class(TOCGenericImport<MTLRasterizationRateSampleArrayClass, MTLRasterizationRateSampleArray>) end; MTLRasterizationRateLayerDescriptorClass = interface(NSObjectClass) ['{455471FA-DF08-452B-887A-79F88ABE477E}'] end; MTLRasterizationRateLayerDescriptor = interface(NSObject) ['{D6EAAD95-43DA-4EFA-A15A-24F5F7EF129B}'] function horizontal: MTLRasterizationRateSampleArray; cdecl; function horizontalSampleStorage: PSingle; cdecl; function initWithSampleCount(sampleCount: MTLSize): Pointer; overload; cdecl; function initWithSampleCount(sampleCount: MTLSize; horizontal: PSingle; vertical: PSingle): Pointer; overload; cdecl; function sampleCount: MTLSize; cdecl; function vertical: MTLRasterizationRateSampleArray; cdecl; function verticalSampleStorage: PSingle; cdecl; end; TMTLRasterizationRateLayerDescriptor = class(TOCGenericImport<MTLRasterizationRateLayerDescriptorClass, MTLRasterizationRateLayerDescriptor>) end; PMTLRasterizationRateLayerDescriptor = ^MTLRasterizationRateLayerDescriptor; MTLRasterizationRateLayerArrayClass = interface(NSObjectClass) ['{A750C5BD-4062-4D91-8525-024FA3DBC48B}'] end; MTLRasterizationRateLayerArray = interface(NSObject) ['{5F129A81-19CE-4EDC-A03C-C9D34C26D954}'] function objectAtIndexedSubscript(layerIndex: NSUInteger): MTLRasterizationRateLayerDescriptor; cdecl; procedure setObject(layer: MTLRasterizationRateLayerDescriptor; atIndexedSubscript: NSUInteger); cdecl; end; TMTLRasterizationRateLayerArray = class(TOCGenericImport<MTLRasterizationRateLayerArrayClass, MTLRasterizationRateLayerArray>) end; MTLRasterizationRateMapDescriptorClass = interface(NSObjectClass) ['{02A1CB5E-CB6B-4520-863A-F408562222D1}'] {class} function rasterizationRateMapDescriptorWithScreenSize(screenSize: MTLSize; layerCount: NSUInteger; layers: PMTLRasterizationRateLayerDescriptor): MTLRasterizationRateMapDescriptor; overload; cdecl; {class} function rasterizationRateMapDescriptorWithScreenSize(screenSize: MTLSize; layer: MTLRasterizationRateLayerDescriptor): MTLRasterizationRateMapDescriptor; overload; cdecl; {class} function rasterizationRateMapDescriptorWithScreenSize(screenSize: MTLSize): MTLRasterizationRateMapDescriptor; overload; cdecl; end; MTLRasterizationRateMapDescriptor = interface(NSObject) ['{47CFC615-825E-455A-BFBF-20E69975319B}'] [MethodName('label')] function &label: NSString; cdecl; function layerAtIndex(layerIndex: NSUInteger): MTLRasterizationRateLayerDescriptor; cdecl; function layerCount: NSUInteger; cdecl; function layers: MTLRasterizationRateLayerArray; cdecl; function screenSize: MTLSize; cdecl; procedure setLabel(&label: NSString); cdecl; procedure setLayer(layer: MTLRasterizationRateLayerDescriptor; atIndex: NSUInteger); cdecl; procedure setScreenSize(screenSize: MTLSize); cdecl; end; TMTLRasterizationRateMapDescriptor = class(TOCGenericImport<MTLRasterizationRateMapDescriptorClass, MTLRasterizationRateMapDescriptor>) end; MTLRasterizationRateMap = interface(IObjectiveC) ['{0470A42E-8EB0-4398-839B-8182C9376C62}'] [MethodName('label')] function &label: NSString; cdecl; procedure copyParameterDataToBuffer(buffer: Pointer; offset: NSUInteger); cdecl; function device: Pointer; cdecl; function layerCount: NSUInteger; cdecl; function mapPhysicalToScreenCoordinates(physicalCoordinates: MTLCoordinate2D; forLayer: NSUInteger): MTLCoordinate2D; cdecl; function mapScreenToPhysicalCoordinates(screenCoordinates: MTLCoordinate2D; forLayer: NSUInteger): MTLCoordinate2D; cdecl; function parameterBufferSizeAndAlign: MTLSizeAndAlign; cdecl; function physicalGranularity: MTLSize; cdecl; function physicalSizeForLayer(layerIndex: NSUInteger): MTLSize; cdecl; function screenSize: MTLSize; cdecl; end; MTLDynamicLibrary = interface(IObjectiveC) ['{0A58D4E2-B75B-4909-B0F0-19068407B16A}'] [MethodName('label')] function &label: NSString; cdecl; function device: Pointer; cdecl; function installName: NSString; cdecl; function serializeToURL(url: NSURL; error: PPointer): Boolean; cdecl; procedure setLabel(&label: NSString); cdecl; end; MTLFunctionHandle = interface(IObjectiveC) ['{FE4D18CE-D423-4145-A9EC-32FA3855980C}'] function device: Pointer; cdecl; function functionType: MTLFunctionType; cdecl; function name: NSString; cdecl; end; MTLVisibleFunctionTableDescriptorClass = interface(NSObjectClass) ['{3186E0A8-5C81-4CE7-B6B3-0339491D57B9}'] {class} function visibleFunctionTableDescriptor: MTLVisibleFunctionTableDescriptor; cdecl; end; MTLVisibleFunctionTableDescriptor = interface(NSObject) ['{34724945-3038-48CF-B01C-63D665A88203}'] function functionCount: NSUInteger; cdecl; procedure setFunctionCount(functionCount: NSUInteger); cdecl; end; TMTLVisibleFunctionTableDescriptor = class(TOCGenericImport<MTLVisibleFunctionTableDescriptorClass, MTLVisibleFunctionTableDescriptor>) end; MTLVisibleFunctionTable = interface(IObjectiveC) ['{9DF02309-3242-4D15-8FFE-DEA7549820F7}'] procedure setFunction(&function: Pointer; atIndex: NSUInteger); cdecl; procedure setFunctions(functions: Pid; withRange: NSRange); cdecl; end; MTLBinaryArchiveDescriptorClass = interface(NSObjectClass) ['{97715C5E-D61B-4024-BA73-A58ACFB56118}'] end; MTLBinaryArchiveDescriptor = interface(NSObject) ['{116987FF-3029-49FC-970F-AAE5FB29C7A4}'] procedure setUrl(url: NSURL); cdecl; function url: NSURL; cdecl; end; TMTLBinaryArchiveDescriptor = class(TOCGenericImport<MTLBinaryArchiveDescriptorClass, MTLBinaryArchiveDescriptor>) end; MTLBinaryArchive = interface(IObjectiveC) ['{6BE46D81-CEF4-40D4-AB7A-0661DF7E7DE3}'] [MethodName('label')] function &label: NSString; cdecl; function addComputePipelineFunctionsWithDescriptor(descriptor: MTLComputePipelineDescriptor; error: PPointer): Boolean; cdecl; function addRenderPipelineFunctionsWithDescriptor(descriptor: MTLRenderPipelineDescriptor; error: PPointer): Boolean; cdecl; function addTileRenderPipelineFunctionsWithDescriptor(descriptor: MTLTileRenderPipelineDescriptor; error: PPointer): Boolean; cdecl; function device: Pointer; cdecl; function serializeToURL(url: NSURL; error: PPointer): Boolean; cdecl; procedure setLabel(&label: NSString); cdecl; end; MTLIntersectionFunctionTableDescriptorClass = interface(NSObjectClass) ['{0D1DFD03-EB2D-4557-BB0A-B59D8E80362D}'] {class} function intersectionFunctionTableDescriptor: MTLIntersectionFunctionTableDescriptor; cdecl; end; MTLIntersectionFunctionTableDescriptor = interface(NSObject) ['{99CE0048-C1F0-4118-9B41-52BB277DE4CA}'] function functionCount: NSUInteger; cdecl; procedure setFunctionCount(functionCount: NSUInteger); cdecl; end; TMTLIntersectionFunctionTableDescriptor = class(TOCGenericImport<MTLIntersectionFunctionTableDescriptorClass, MTLIntersectionFunctionTableDescriptor>) end; MTLIntersectionFunctionTable = interface(IObjectiveC) ['{06C308F2-C082-4C28-97FC-F36E393AE34F}'] procedure setBuffer(buffer: Pointer; offset: NSUInteger; atIndex: NSUInteger); cdecl; procedure setBuffers(buffers: Pid; offsets: PNSUInteger; withRange: NSRange); cdecl; procedure setFunction(&function: Pointer; atIndex: NSUInteger); cdecl; procedure setFunctions(functions: Pid; withRange: NSRange); cdecl; procedure setOpaqueTriangleIntersectionFunctionWithSignature(signature: MTLIntersectionFunctionSignature; withRange: NSRange); overload; cdecl; procedure setOpaqueTriangleIntersectionFunctionWithSignature(signature: MTLIntersectionFunctionSignature; atIndex: NSUInteger); overload; cdecl; procedure setVisibleFunctionTable(functionTable: Pointer; atBufferIndex: NSUInteger); cdecl; procedure setVisibleFunctionTables(functionTables: Pid; withBufferRange: NSRange); cdecl; end; function MTLLibraryErrorDomain: NSErrorDomain; function MTLCommonCounterTimestamp: MTLCommonCounter; function MTLCommonCounterTessellationInputPatches: MTLCommonCounter; function MTLCommonCounterVertexInvocations: MTLCommonCounter; function MTLCommonCounterPostTessellationVertexInvocations: MTLCommonCounter; function MTLCommonCounterClipperInvocations: MTLCommonCounter; function MTLCommonCounterClipperPrimitivesOut: MTLCommonCounter; function MTLCommonCounterFragmentInvocations: MTLCommonCounter; function MTLCommonCounterFragmentsPassed: MTLCommonCounter; function MTLCommonCounterComputeKernelInvocations: MTLCommonCounter; function MTLCommonCounterTotalCycles: MTLCommonCounter; function MTLCommonCounterVertexCycles: MTLCommonCounter; function MTLCommonCounterTessellationCycles: MTLCommonCounter; function MTLCommonCounterPostTessellationVertexCycles: MTLCommonCounter; function MTLCommonCounterFragmentCycles: MTLCommonCounter; function MTLCommonCounterRenderTargetWriteCycles: MTLCommonCounter; function MTLCommonCounterSetTimestamp: MTLCommonCounterSet; function MTLCommonCounterSetStageUtilization: MTLCommonCounterSet; function MTLCommonCounterSetStatistic: MTLCommonCounterSet; function MTLCounterErrorDomain: NSErrorDomain; function MTLCommandBufferErrorDomain: NSErrorDomain; function MTLCommandBufferEncoderInfoErrorKey: NSErrorUserInfoKey; function MTLCaptureErrorDomain: NSErrorDomain; function MTLDynamicLibraryDomain: NSErrorDomain; function MTLBinaryArchiveDomain: NSErrorDomain; const libMetal = '/System/Library/Frameworks/Metal.framework/Metal'; function MTLCreateSystemDefaultDevice: Pointer; cdecl; external libMetal name _PU + 'MTLCreateSystemDefaultDevice'; function MTLCopyAllDevices: NSArray; cdecl; external libMetal name _PU + 'MTLCopyAllDevices'; implementation {$IF Defined(IOS) and not Defined(CPUARM)} uses Posix.Dlfcn; var MetalModule: THandle; {$ENDIF} function MTLLibraryErrorDomain: NSErrorDomain; begin Result := CocoaNSStringConst(libMetal, 'MTLLibraryErrorDomain'); end; function MTLCommonCounterTimestamp: MTLCommonCounter; begin Result := CocoaNSStringConst(libMetal, 'MTLCommonCounterTimestamp'); end; function MTLCommonCounterTessellationInputPatches: MTLCommonCounter; begin Result := CocoaNSStringConst(libMetal, 'MTLCommonCounterTessellationInputPatches'); end; function MTLCommonCounterVertexInvocations: MTLCommonCounter; begin Result := CocoaNSStringConst(libMetal, 'MTLCommonCounterVertexInvocations'); end; function MTLCommonCounterPostTessellationVertexInvocations: MTLCommonCounter; begin Result := CocoaNSStringConst(libMetal, 'MTLCommonCounterPostTessellationVertexInvocations'); end; function MTLCommonCounterClipperInvocations: MTLCommonCounter; begin Result := CocoaNSStringConst(libMetal, 'MTLCommonCounterClipperInvocations'); end; function MTLCommonCounterClipperPrimitivesOut: MTLCommonCounter; begin Result := CocoaNSStringConst(libMetal, 'MTLCommonCounterClipperPrimitivesOut'); end; function MTLCommonCounterFragmentInvocations: MTLCommonCounter; begin Result := CocoaNSStringConst(libMetal, 'MTLCommonCounterFragmentInvocations'); end; function MTLCommonCounterFragmentsPassed: MTLCommonCounter; begin Result := CocoaNSStringConst(libMetal, 'MTLCommonCounterFragmentsPassed'); end; function MTLCommonCounterComputeKernelInvocations: MTLCommonCounter; begin Result := CocoaNSStringConst(libMetal, 'MTLCommonCounterComputeKernelInvocations'); end; function MTLCommonCounterTotalCycles: MTLCommonCounter; begin Result := CocoaNSStringConst(libMetal, 'MTLCommonCounterTotalCycles'); end; function MTLCommonCounterVertexCycles: MTLCommonCounter; begin Result := CocoaNSStringConst(libMetal, 'MTLCommonCounterVertexCycles'); end; function MTLCommonCounterTessellationCycles: MTLCommonCounter; begin Result := CocoaNSStringConst(libMetal, 'MTLCommonCounterTessellationCycles'); end; function MTLCommonCounterPostTessellationVertexCycles: MTLCommonCounter; begin Result := CocoaNSStringConst(libMetal, 'MTLCommonCounterPostTessellationVertexCycles'); end; function MTLCommonCounterFragmentCycles: MTLCommonCounter; begin Result := CocoaNSStringConst(libMetal, 'MTLCommonCounterFragmentCycles'); end; function MTLCommonCounterRenderTargetWriteCycles: MTLCommonCounter; begin Result := CocoaNSStringConst(libMetal, 'MTLCommonCounterRenderTargetWriteCycles'); end; function MTLCommonCounterSetTimestamp: MTLCommonCounterSet; begin Result := CocoaNSStringConst(libMetal, 'MTLCommonCounterSetTimestamp'); end; function MTLCommonCounterSetStageUtilization: MTLCommonCounterSet; begin Result := CocoaNSStringConst(libMetal, 'MTLCommonCounterSetStageUtilization'); end; function MTLCommonCounterSetStatistic: MTLCommonCounterSet; begin Result := CocoaNSStringConst(libMetal, 'MTLCommonCounterSetStatistic'); end; function MTLCounterErrorDomain: NSErrorDomain; begin Result := CocoaNSStringConst(libMetal, 'MTLCounterErrorDomain'); end; function MTLCommandBufferErrorDomain: NSErrorDomain; begin Result := CocoaNSStringConst(libMetal, 'MTLCommandBufferErrorDomain'); end; function MTLCommandBufferEncoderInfoErrorKey: NSErrorUserInfoKey; begin Result := CocoaNSStringConst(libMetal, 'MTLCommandBufferEncoderInfoErrorKey'); end; function MTLCaptureErrorDomain: NSErrorDomain; begin Result := CocoaNSStringConst(libMetal, 'MTLCaptureErrorDomain'); end; function MTLDynamicLibraryDomain: NSErrorDomain; begin Result := CocoaNSStringConst(libMetal, 'MTLDynamicLibraryDomain'); end; function MTLBinaryArchiveDomain: NSErrorDomain; begin Result := CocoaNSStringConst(libMetal, 'MTLBinaryArchiveDomain'); end; {$IF Defined(IOS) and not Defined(CPUARM)} initialization MetalModule := dlopen(MarshaledAString(libMetal), RTLD_LAZY); finalization dlclose(MetalModule) {$ENDIF} end.
import 'package:flutter_webrtc/flutter_webrtc.dart'; import 'package:mediasoup_client_flutter/src/consumer.dart'; import 'package:mediasoup_client_flutter/src/data_consumer.dart'; import 'package:mediasoup_client_flutter/src/data_producer.dart'; import 'package:mediasoup_client_flutter/src/FlexQueue/flex_queue.dart'; import 'package:mediasoup_client_flutter/src/ortc.dart'; import 'package:mediasoup_client_flutter/src/producer.dart'; import 'package:mediasoup_client_flutter/src/rtp_parameters.dart'; import 'package:mediasoup_client_flutter/src/sctp_parameters.dart'; import 'package:mediasoup_client_flutter/src/common/enhanced_event_emitter.dart'; import 'package:mediasoup_client_flutter/src/common/logger.dart'; import 'package:mediasoup_client_flutter/src/common/index.dart'; import 'package:mediasoup_client_flutter/src/handlers/handler_interface.dart'; enum Protocol { upd, tcp } extension ProtocolExtension on Protocol { static const Map<String, Protocol> types = { 'tcp': Protocol.tcp, 'udp': Protocol.upd, }; static const Map<Protocol, String> values = { Protocol.tcp: 'tcp', Protocol.upd: 'udp', }; static Protocol fromString(String type) => types[type]!; String get value => values[this]!; } class ProduceArguments { final MediaStreamTrack track; final MediaStream stream; final List<RtpEncodingParameters> encodings; final ProducerCodecOptions? codecOptions; final RtpCodecCapability? codec; final bool stopTracks; final bool disableTrackOnPause; final bool zeroRtpOnPause; final Map<String, dynamic> appData; final String source; const ProduceArguments({ required this.track, required this.stream, required this.encodings, this.codecOptions, this.codec, this.stopTracks = true, this.disableTrackOnPause = true, this.zeroRtpOnPause = false, this.appData = const <String, dynamic>{}, required this.source, }); } class ConsumeArguments { final String id; final String producerId; final RTCRtpMediaType kind; final RtpParameters rtpParameters; final Map<String, dynamic> appData; final Function? accept; final String peerId; const ConsumeArguments({ required this.id, required this.producerId, required this.kind, required this.rtpParameters, required this.appData, this.accept, required this.peerId, }); } enum IceCandidateType { host, srflx, prflx, relay, } extension IceCandidateTypeExtension on IceCandidateType { static const Map<String, IceCandidateType> types = { 'host': IceCandidateType.host, 'prflx': IceCandidateType.prflx, 'relay': IceCandidateType.relay, 'srflx': IceCandidateType.srflx, }; static const Map<IceCandidateType, String> values = { IceCandidateType.host: 'host', IceCandidateType.prflx: 'prflx', IceCandidateType.relay: 'relay', IceCandidateType.srflx: 'srflx', }; static IceCandidateType fromString(String type) => types[type]!; String get value => values[this]!; } class IceParameters { /// ICE username fragment. String usernameFragment; /// ICE password. String password; /// ICE Lite. bool iceLite; IceParameters({ required this.usernameFragment, required this.password, required this.iceLite, }); IceParameters.fromMap(Map data) : usernameFragment = data['usernameFragment'], password = data['password'], iceLite = data['iceLite']; } enum TcpType { active, passive, so, } extension TcpTypeExtension on TcpType { static const Map<String, TcpType> types = { 'active': TcpType.active, 'passive': TcpType.passive, 'so': TcpType.so, }; static const Map<TcpType, String> values = { TcpType.active: 'active', TcpType.passive: 'passive', TcpType.so: 'so', }; static TcpType fromString(String type) => types[type]!; String get value => values[this]!; } class IceCandidate { int component; /// Unique identifier that allows ICE to correlate candidates that appear on /// multiple transports. var foundation; // String foundation; ///The assigned priority of the candidate. int priority; /// The IP address of the candidate. String ip; /// The protocol of the candidate. Protocol? protocol; /// The port for the candidate. int port; /// The type of candidate.. IceCandidateType type; /// The type of TCP candidate. TcpType? tcpType; String transport; String? raddr; int? rport; var generation; var networkId; var networkCost; IceCandidate({ this.component = 1, this.foundation, required this.priority, required this.ip, this.protocol, required this.port, required this.type, this.tcpType, required this.transport, required this.raddr, required this.rport, this.generation, this.networkId, this.networkCost, }); IceCandidate.fromMap(Map data) : component = data['component'] ?? 1, foundation = data['foundation'], // foundation = data['foundation'] is int ? data['foundation'] : data['foundation'].substring(0,3); ip = data['ip'], port = data['port'], priority = data['priority'], type = IceCandidateTypeExtension.fromString(data['type']), protocol = data['protocol'] != null ? ProtocolExtension.fromString(data['protocol']) : null, tcpType = data['tcpType'] != null ? TcpTypeExtension.fromString(data['tcpType']) : null, transport = data['transport'] ?? 'udp', raddr = data['raddr'], rport = data['rport'], generation = data['generation'], networkId = data['network-id'], networkCost = data['network-cost']; Map<String, dynamic> toMap() { Map<String, dynamic> result = {}; result['component'] = component; if (foundation != null) { result['foundation'] = foundation; } result['priority'] = priority; result['ip'] = ip; if (protocol != null) { result['protocol'] = protocol?.value; } result['port'] = port; result['type'] = type.value; if (tcpType != null) { result['tcptype'] = tcpType?.value; } result['transport'] = transport; return result; } static IceCandidate copy(IceCandidate old) { return IceCandidate( component: old.component, foundation: old.foundation, ip: old.ip, port: old.port, priority: old.priority, protocol: old.protocol, tcpType: old.tcpType, type: old.type, generation: old.generation, raddr: old.raddr, rport: old.rport, transport: old.transport, networkId: old.networkId, networkCost: old.networkCost, ); } } enum DtlsRole { auto, client, server, } extension DtlsRoleExtension on DtlsRole { static const Map<String, DtlsRole> types = { 'auto': DtlsRole.auto, 'client': DtlsRole.client, 'server': DtlsRole.server, }; static const Map<DtlsRole, String> values = { DtlsRole.auto: 'auto', DtlsRole.client: 'client', DtlsRole.server: 'server', }; static DtlsRole fromString(String type) => types[type]!; String get value => values[this]!; } class SendDataChannelArguments { bool? ordered; final int? maxPacketLifeTime; final int? maxRetransmits; final Priority? priority; final String? label; final String? protocol; SendDataChannelArguments({ this.ordered, this.maxPacketLifeTime, this.maxRetransmits, this.priority, this.label, this.protocol, }); } class DtlsFingerprint { final String algorithm; final String value; DtlsFingerprint({ required this.algorithm, required this.value, }); DtlsFingerprint.fromMap(Map data) : algorithm = data['algorithm'], value = data['value']; Map<String, String> toMap() { return { 'algorithm': algorithm, 'value': value, }; } } class DtlsParameters { DtlsRole role; final List<DtlsFingerprint> fingerprints; DtlsParameters({ required this.role, this.fingerprints = const [], }); DtlsParameters.fromMap(Map data) : role = DtlsRoleExtension.fromString(data['role']), fingerprints = List<DtlsFingerprint>.from((data['fingerprints'] ?? []) .map((fingerP) => DtlsFingerprint.fromMap(fingerP)) .toList()); Map<String, dynamic> toMap() { return { 'role': role.value, 'fingerprints': fingerprints.map((DtlsFingerprint fp) => fp.toMap()).toList(), }; } } class PlainRtpParameters { String ip; int _ipVersion; int port; int get ipVersion => _ipVersion; set ipVersion(int ip) { if (ip != 4 || ip != 6) { throw 'only 4 or 6'; } _ipVersion = ip; } PlainRtpParameters({ required this.ip, required this.port, required int ipVersion, }) : this._ipVersion = ipVersion, assert(ipVersion != 4 || ipVersion != 6, 'Only 4 or 6'); } Logger _logger = Logger('Transport'); enum Direction { send, recv, } extension DirectionExtension on Direction { static const Map<String, Direction> types = { 'recv': Direction.recv, 'send': Direction.send, }; static const Map<Direction, String> values = { Direction.recv: 'recv', Direction.send: 'send', }; static Direction fromString(String type) => types[type]!; String get value => values[this]!; } class CanProduceByKind { bool audio; bool video; // TODO: what is that? Map<String, bool> tmp; CanProduceByKind({ required this.audio, required this.video, this.tmp = const <String, bool>{}, }); bool canIt(RTCRtpMediaType kind) { if (kind == RTCRtpMediaType.RTCRtpMediaTypeAudio) { return audio; } return video; } } class Transport extends EnhancedEventEmitter { // Id. late String _id; // Closed flag. bool _closed = false; // Direction late Direction _direction; // Extended RTP capabilities. ExtendedRtpCapabilities? _extendedRtpCapabilities; // Whether we can produce audio/video based on computed extended RTP // capabilities. late CanProduceByKind _canProduceByKind; // SCTP max message size if enabled, null otherwise. int? _maxSctpMessageSize; // RTC handler instance. late HandlerInterface _handler; // Transport connection state. String _connectionState = 'new'; // App custom data. late Map<String, dynamic> _appData; // Map of Producers indexed by id. Map<String, Producer> _producers = <String, Producer>{}; // Map of Consumers indexed by id. Map<String, Consumer> _consumers = <String, Consumer>{}; // Map of DataProducers indexed by id. Map<String, DataProducer> _dataProducers = <String, DataProducer>{}; // Map of DataConsumers indexed by id. Map<String, DataConsumer> _dataConsumers = <String, DataConsumer>{}; // Whether the Consumer for RTP probation has been created. bool _probatorConsumerCreated = false; // FlexQueue instance to make async tasks happen sequentially. FlexQueue _flexQueue = FlexQueue(); // Observer instance. EnhancedEventEmitter _observer = EnhancedEventEmitter(); Function? producerCallback; Function? consumerCallback; Function? dataProducerCallback; Function? dataConsumerCallback; /// @emits connect - (transportLocalParameters: any, callback: Function, errback: Function) /// @emits connectionstatechange - (connectionState: ConnectionState) /// @emits produce - (producerLocalParameters: any, callback: Function, errback: Function) /// @emits producedata - (dataProducerLocalParameters: any, callback: Function, errback: Function) Transport({ required Direction direction, required String id, required IceParameters iceParameters, required List<IceCandidate> iceCandidates, required DtlsParameters dtlsParameters, SctpParameters? sctpParameters, List<RTCIceServer> iceServers = const <RTCIceServer>[], RTCIceTransportPolicy? iceTransportPolicy, Map<String, dynamic> additionalSettings = const <String, dynamic>{}, Map<String, dynamic> proprietaryConstraints = const <String, dynamic>{}, Map<String, dynamic> appData = const <String, dynamic>{}, ExtendedRtpCapabilities? extendedRtpCapabilities, required CanProduceByKind canProduceByKind, this.producerCallback, this.consumerCallback, this.dataProducerCallback, this.dataConsumerCallback, }) : super() { _logger.debug('constructor() [id:$id, direction:${direction.value}]'); _id = id; _direction = direction; _extendedRtpCapabilities = extendedRtpCapabilities; _canProduceByKind = canProduceByKind; _maxSctpMessageSize = sctpParameters != null ? sctpParameters.maxMessageSize : null; // Clone and sanitize additionalSettings. additionalSettings = Map<String, dynamic>.of(additionalSettings); additionalSettings.remove('iceServers'); additionalSettings.remove('iceTransportPolicy'); additionalSettings.remove('bundlePolicy'); additionalSettings.remove('rtcpMuxPolicy'); additionalSettings.remove('sdpSemantics'); _handler = HandlerInterface.handlerFactory(); _handler.run( options: HandlerRunOptions( direction: direction, iceParameters: iceParameters, iceCandidates: iceCandidates, dtlsParameters: dtlsParameters, sctpParameters: sctpParameters, iceServers: iceServers, iceTransportPolicy: iceTransportPolicy, additionalSettings: additionalSettings, proprietaryConstraints: proprietaryConstraints, extendedRtpCapabilities: extendedRtpCapabilities, ), ); _appData = appData; _handleHandler(); } void _handleHandler() { HandlerInterface handler = _handler; handler.on( '@connect', (Map data) { DtlsParameters dtlsParameters = data['dtlsParameters']; Function callback = data['callback']; Function errback = data['errback']; if (_closed) { errback('closed'); return; } safeEmit('connect', { 'dtlsParameters': dtlsParameters, 'callback': callback, 'errback': errback }); }, ); handler.on( '@connectionstatechange', (Map data) { String connectionState = data['state']; if (connectionState == _connectionState) { return; } _logger.debug('connection state changed to $connectionState'); _connectionState = connectionState; if (!_closed) { safeEmit('connectionstatechange', { 'connectionState': connectionState, }); } }, ); } /// Transport id. String get id => _id; // Whether the Transport is closed. bool get closed => _closed; // Transport direction. Direction get direction => _direction; /// RTC handler instance. HandlerInterface get handler => _handler; /// Connection state. String get connectionState => _connectionState; /// App custom data. Map<String, dynamic> get appData => _appData; /// Invalid setter. set appData(Map<dynamic, dynamic> newAppData) { throw ('no.. Connot override appData object'); } /// Observer. /// /// @emits close /// @emits newproducer - (producer: Producer) /// @emits newconsumer - (producer: Producer) /// @emits newdataproducer - (dataProducer: DataProducer) /// @emits newdataconsumer - (dataProducer: DataProducer) EnhancedEventEmitter get observer => _observer; /// Close the Transport. Future<void> close() async { if (_closed) { return; } _logger.debug('close()'); _closed = true; // TODO: close task handler. // Close the handler. await _handler.close(); // Close all Producers. for (Producer producer in _producers.values) { producer.transportClosed(); } _producers.clear(); // Close all Consumers. for (Consumer consumer in _consumers.values) { consumer.transportClosed(); } _consumers.clear(); // Close all DataProducers. for (DataProducer dataProducer in _dataProducers.values) { dataProducer.transportClosed(); } _dataProducers.clear(); // Close all DataConsumers. for (DataConsumer dataConsumer in _dataConsumers.values) { dataConsumer.transportClosed(); } _dataConsumers.clear(); // Emit observer event. _observer.safeEmit('close'); } /// Get associated Transport (RTCPeerConnection) stats. /// /// @returns {List<StatsReport>} Future<List<StatsReport>> getState() async { if (_closed) { throw ('closed'); } return await _handler.getTransportStats(); } /// Restart ICE connection. void restartIce(IceParameters iceParameters) { _logger.debug('restartIce()'); if (this._closed) throw ('closed'); else if (iceParameters == null) throw ('missing iceParameters'); // Enqueue command. _flexQueue.addTask(FlexTaskAdd( id: '', argument: iceParameters, execFun: _handler.restartIce, message: 'transport.restartIce()', )); } /// Update ICE servers. void updateIceServers(List<RTCIceServer> iceServers) { _logger.debug('updateIceServers()'); if (this._closed) throw ('closed'); else if (iceServers == null) throw ('missing iceServers'); _flexQueue.addTask(FlexTaskAdd( id: '', argument: iceServers, execFun: _handler.updateIceServers, message: 'transport.updateIceServers()', )); } void _handleProducer(Producer producer) { producer.on('@close', () { _producers.remove(producer.id); if (_closed) { return; } _flexQueue.addTask(FlexTaskRemove( id: producer.id, argument: producer.localId, execFun: _handler.stopSending, message: 'producer @close event', errorCallbackFun: (error) => _logger.warn('producer.close() failed:${error.toString()}'), )); }); producer.on('@replacetrack', (data) { final MediaStreamTrack track = data['track']; final callback = data['callback']; final errback = data['errback']; _flexQueue.addTask(FlexTaskAdd( id: '', argument: ReplaceTrackOptions(localId: producer.localId, track: track), callbackFun: callback, errorCallbackFun: errback, execFun: _handler.replaceTrack, message: 'producer @replacetrack event', )); }); producer.on('@setmaxspatiallayer', (data) { final spatialLayer = data['spatialLayer']; final callback = data['callback']; final errback = data['errback']; _flexQueue.addTask(FlexTaskAdd( id: '', argument: SetMaxSpatialLayerOptions( localId: producer.localId, spatialLayer: spatialLayer), callbackFun: callback, errorCallbackFun: errback, execFun: _handler.setMaxSpatialLayer, message: 'producer @setmaxspatiallayer event', )); }); producer.on('@setrtpencodingparameters', (data) { final params = data['params']; final callback = data['callback']; final errback = data['errback']; _flexQueue.addTask(FlexTaskAdd( id: '', argument: SetRtpEncodingParametersOptions( localId: producer.localId, params: params), execFun: _handler.setRtpEncodingParameters, callbackFun: callback, errorCallbackFun: errback, message: 'producer @setrtpencodingparameters event', )); }); producer.on('@getstats', (data) { final callback = data['callback']; final errback = data['errback']; if (_closed) { return errback(Error.safeToString('close')); } _handler .getSenderStats(producer.localId) .then(callback) .catchError(errback); }); } void _handleConsumer(Consumer consumer) { consumer.on('@close', () { _consumers.remove(consumer.id); if (_closed) { return; } _flexQueue.addTask(FlexTaskRemove( id: consumer.id, argument: consumer.localId, execFun: _handler.stopReceiving, message: 'consumer @close event', )); }); consumer.on('@getstats', (data) { final callback = data['callback']; final errback = data['errback']; if (_closed) { return errback(Error.safeToString('closed')); } _handler .getReceiverStats(consumer.localId) .then(callback) .catchError(errback); }); } void _handleDataProducer(DataProducer dataProducer) { dataProducer.on('@close', () { _dataProducers.remove(dataProducer.id); }); } void _handleDataConsumer(DataConsumer dataConsumer) { dataConsumer.on('@close', () { _dataConsumers.remove(dataConsumer.id); }); } Future<void> _produce(ProduceArguments arguments) async { try { List<RtpEncodingParameters> normalizedEncodings = []; if (arguments.encodings != null && arguments.encodings.isEmpty) { normalizedEncodings = []; } else if (arguments.encodings != null && arguments.encodings.isNotEmpty) { normalizedEncodings = arguments.encodings.map((RtpEncodingParameters encoding) { RtpEncodingParameters normalizedEncoding = RtpEncodingParameters(active: true); if (encoding.active == false) { normalizedEncoding.active = false; } if (encoding.dtx != null) { normalizedEncoding.dtx = encoding.dtx; } if (encoding.scalabilityMode != null) { normalizedEncoding.scalabilityMode = encoding.scalabilityMode; } if (encoding.scaleResolutionDownBy != null) { normalizedEncoding.scaleResolutionDownBy = encoding.scaleResolutionDownBy; } if (encoding.maxBitrate != null) { normalizedEncoding.maxBitrate = encoding.maxBitrate; } if (encoding.maxFramerate != null) { normalizedEncoding.maxFramerate = encoding.maxFramerate; } if (encoding.adaptivePtime != null) { normalizedEncoding.adaptivePtime = encoding.adaptivePtime; } if (encoding.priority != null) { normalizedEncoding.priority = encoding.priority; } if (encoding.networkPriority != null) { normalizedEncoding.networkPriority = encoding.networkPriority; } return normalizedEncoding; }).toList(); } HandlerSendResult sendResult = await _handler.send(HandlerSendOptions( track: arguments.track, encodings: normalizedEncodings, codecOptions: arguments.codecOptions, codec: arguments.codec, stream: arguments.stream, )); try { // This will fill rtpParameters's missing fields with default values. Ortc.validateRtpParameters(sendResult.rtpParameters); String id = await safeEmitAsFuture('produce', { 'kind': arguments.track.kind, 'rtpParameters': sendResult.rtpParameters, 'appData': arguments.appData, }); Producer producer = Producer( id: id, localId: sendResult.localId, rtpSender: sendResult.rtpSender, track: arguments.track, rtpParameters: sendResult.rtpParameters, stopTracks: arguments.stopTracks, disableTrackOnPause: arguments.disableTrackOnPause, zeroRtpOnPause: arguments.zeroRtpOnPause, appData: arguments.appData, stream: arguments.stream, source: arguments.source, ); _producers[producer.id] = producer; _handleProducer(producer); // Emit observer event. _observer.safeEmit('newProducer', { 'producer': producer, }); producerCallback?.call(producer); } catch (error) { _handler.stopSending(sendResult.localId); throw error; } } catch (error) { // This catch is needed to stop the given track if the command above // failed due to closed Transport. if (arguments.stopTracks) { try { arguments.track.stop(); } catch (error2) {} } throw error; } } /// Create a Producer. /// use producerCallback to receive a new Producer. void produce({ required MediaStreamTrack track, required MediaStream stream, List<RtpEncodingParameters> encodings = const <RtpEncodingParameters>[], ProducerCodecOptions? codecOptions, RtpCodecCapability? codec, bool stopTracks = true, bool disableTrackOnPause = true, bool zeroRtpOnPause = false, Map<String, dynamic> appData = const <String, dynamic>{}, required String source, }) { _logger.debug('produce() [track:${track.toString()}'); if (_direction != Direction.send) { throw ('not a sending Transport'); } else if (track.kind == null || !_canProduceByKind .canIt(RTCRtpMediaTypeExtension.fromString(track.kind!))) { throw ('cannot produce ${track.kind}'); } else if (listeners('connect').isEmpty && _connectionState == 'new') { throw ('no "connect" listener set into this transport'); } else if (listeners('produce').isEmpty) { throw ('no "pruduce" listener set into this transport'); } _flexQueue.addTask( FlexTaskAdd( id: '', message: 'transport.produce()', execFun: _produce, argument: ProduceArguments( track: track, stream: stream, encodings: encodings, codecOptions: codecOptions, codec: codec, stopTracks: stopTracks, disableTrackOnPause: disableTrackOnPause, zeroRtpOnPause: zeroRtpOnPause, appData: appData, source: source, ), ), ); } Future<void> _consume(ConsumeArguments arguments) async { // Unsure the device can consume it. bool canConsume = Ortc.canReceive(arguments.rtpParameters, _extendedRtpCapabilities); if (!canConsume) { throw ('cannot consume this Producer'); } HandlerReceiveResult receiveResult = await _handler.receive(HandlerReceiveOptions( trackId: arguments.id, kind: arguments.kind, rtpParameters: arguments.rtpParameters, )); Consumer consumer = Consumer( id: arguments.id, localId: receiveResult.localId, producerId: arguments.producerId, rtpParameters: arguments.rtpParameters, appData: Map<String, dynamic>.from(arguments.appData), track: receiveResult.track, rtpReceiver: receiveResult.rtpReceiver, stream: receiveResult.stream, peerId: arguments.peerId, ); _consumers[consumer.id] = consumer; _handleConsumer(consumer); // If this is the first video Consumer and the Consumer for RTP probation // has not yet been created, create it now. if (!_probatorConsumerCreated && arguments.kind == RTCRtpMediaType.RTCRtpMediaTypeVideo) { try { RtpParameters probatorRtpParameters = Ortc.generateProbatorRtpparameters(consumer.rtpParameters); await _handler.receive(HandlerReceiveOptions( trackId: 'probator', kind: RTCRtpMediaType.RTCRtpMediaTypeVideo, rtpParameters: probatorRtpParameters, )); _logger.debug('consume() | Consumer for RTP probation created'); _probatorConsumerCreated = true; } catch (error) { _logger.error( 'consume() | failed to create Consumer for RTP probation:${error.toString()}'); } } // Emit observer event. _observer.safeEmit('newconsumer', {'consumer': consumer}); consumerCallback?.call(consumer, arguments.accept); } /// Create a Consumer to consume a remote Producer. /// use consumerCallback to receive a new Consumer. void consume({ required String id, required String producerId, required String peerId, required RTCRtpMediaType kind, required RtpParameters rtpParameters, Map<String, dynamic> appData = const <String, dynamic>{}, Function? accept, }) { _logger.debug('consume()'); rtpParameters = RtpParameters.copy(rtpParameters); if (_closed) { throw ('closed'); } else if (_direction != Direction.recv) { throw ('not a receiving Transport'); } else if (kind != RTCRtpMediaType.RTCRtpMediaTypeAudio && kind != RTCRtpMediaType.RTCRtpMediaTypeVideo) { throw ('invalid kind ${RTCRtpMediaTypeExtension.value(kind)}'); } else if (listeners('connect').isEmpty && _connectionState == 'new') { throw ('no "connect" listener set into this transport'); } _flexQueue.addTask( FlexTaskAdd( id: id, message: 'transport.consume()', execFun: _consume, argument: ConsumeArguments( id: id, producerId: producerId, kind: kind, rtpParameters: rtpParameters, appData: appData, accept: accept, peerId: peerId, ), ), ); } /// Create a DataProducer /// use dataProducerCallback to receive a new ProducerData. void produceData({ bool ordered = true, required int maxPacketLife, required int maxRetransmits, Priority priority = Priority.Low, String label = '', String protocol = '', Map<String, dynamic> appData = const <String, dynamic>{}, }) { _logger.debug('produceData()'); if (_direction != Direction.send) { throw ('not a sending Transport'); } else if (_maxSctpMessageSize == null) { throw ('SCTP not enabled by remote Transport'); } if (listeners('connect').isEmpty && _connectionState == 'new') { throw ('no "connect" listener set into this transport'); } else if (listeners('producedata').isEmpty) { throw ('no "producedata" listener set into this transport'); } if (maxPacketLife != 0 || maxRetransmits != 0) { ordered = false; } // Enqueue command. _flexQueue.addTask(FlexTaskAdd( id: '', execFun: () async { HandlerSendDataChannelResult sendDataResult = await _handler.sendDataChannel( SendDataChannelArguments( ordered: ordered, maxPacketLifeTime: maxPacketLife, maxRetransmits: maxRetransmits, priority: priority, label: label, protocol: protocol, ), ); // This will fill sctpStreamParameters's missing fields with default values. Ortc.validateSctpStreamParameters( sendDataResult.sctpStreamParameters); String id = await safeEmitAsFuture('producedata', { 'sctpStreamParameters': sendDataResult.sctpStreamParameters, 'label': label, 'protocol': protocol, 'appData': appData, }); DataProducer dataProducer = DataProducer( id: id, dataChannel: sendDataResult.dataChannel, sctpStreamParameters: sendDataResult.sctpStreamParameters, appData: appData, ); _dataProducers[dataProducer.id] = dataProducer; _handleDataProducer(dataProducer); // Emit observer event. _observer.safeEmit('newdataproducer', { 'dataProducer': dataProducer, }); dataProducerCallback?.call(dataProducer); })); } // Create a DataConsumer // use dataConsuemrCallback to receive a new DataConsumer. void consumeData({ required String id, required String dataProducerId, required SctpStreamParameters sctpStreamParameters, String label = '', String protocol = '', Map<String, dynamic> appData = const <String, dynamic>{}, }) { _logger.debug('consumeData()'); sctpStreamParameters = SctpStreamParameters.copy(sctpStreamParameters); if (_closed) { throw ('closed'); } else if (_direction != Direction.recv) { throw ('not a receiving Transport'); } else if (_maxSctpMessageSize == null) { throw ('SCTP not enabled by remote Transport'); } else if (listeners('connect').isEmpty && _connectionState == 'new') { throw ('no "connect" listener set into this transport'); } // This may throw. Ortc.validateSctpStreamParameters(sctpStreamParameters); // Enqueue command. _flexQueue.addTask(FlexTaskAdd( id: id, message: 'transport.consumeData()', execFun: () async { HandlerReceiveDataChannelResult receiveDataChannelResult = await _handler.receiveDataChannel(HandlerReceiveDataChannelOptions( sctpStreamParameters: sctpStreamParameters, label: label, protocol: protocol, )); DataConsumer dataConsumer = DataConsumer( id: id, dataProducerId: dataProducerId, dataChannel: receiveDataChannelResult.dataChannel, sctpStreamParameters: sctpStreamParameters, appData: appData); _dataConsumers[dataConsumer.id] = dataConsumer; _handleDataConsumer(dataConsumer); // Emit observer event. _observer.safeEmit('newdataconsumer', { 'dataConsumer': dataConsumer, }); dataConsumerCallback?.call(dataConsumer); }, )); } }
<footer> <p>2013 © FLATY Admin Template.</p> </footer>
# Covis19app ![](https://raw.githubusercontent.com/charanakanhu/Covis19app/master/Screenshot_20200422_225826%5B1%5D.jpg) ![](https://raw.githubusercontent.com/charanakanhu/Covis19app/master/Screenshot_20200422_225853%5B1%5D.jpg) ![](https://raw.githubusercontent.com/charanakanhu/Covis19app/master/Screenshot_20200422_225927%5B1%5D.jpg)
# buildinfo-create See the *buildinfo* library for documentation: - Package: https://packagist.org/packages/fostam/buildinfo - Repository: https://github.com/fostam/php-buildinfo
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; use kartik\file\FileInput; use common\models\Profile; /* @var $this yii\web\View */ /* @var $model app\modules\admin\models\Testimonial */ /* @var $form yii\widgets\ActiveForm */ if($model->feat_image != ''){ $image = Yii::$app->params['baseurl'] . '/uploads/testimonial/thumbs/'. $model->feat_image; }else{ $image = Yii::$app->params['baseurl'] . '/uploads/no-image.png'; } if (!Yii::$app->user->isGuest) { $data = Profile::find()->where(['user_id' => \Yii::$app->user->id])->one(); $model->email = \Yii::$app->user->identity->email; $model->name = $data->fname." ".$data->lname; } ?> <div class="testimonial-form"> <?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]); ?> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <?= $form->field($model, 'name')->textInput(['placeholder' => 'Name',])->label(false) ?> </div> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <?= $form->field($model, 'email')->textInput(['placeholder' => 'Email',])->label(false) ?> </div> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <?= $form->field($model, 'descr')->textarea(['placeholder' => 'Description',])->label(false) ?> </div> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <?= $form->field($model, 'feat_image')->widget(FileInput::classname(), [ 'options' => ['accept' => 'image/*', 'value' => $model->feat_image], 'pluginOptions' => [ 'showCaption' => false, 'showRemove' => false, 'showUpload' => false, 'initialPreview'=>[ Html::img($image, ['class'=>'file-preview-image', 'alt'=>'', 'title'=>'' ,'height'=>'100px','width'=>'100px']), ], ] ])->label(false); ?> </div> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <div class="send-msg"> <button type="submit" class="btn btn-default" name="contact-button">Submit</button> </div> </div> <?php ActiveForm::end(); ?> <div class="success"></div> </div>
--- layout: post title: Algorithms - Dynamic Programming date: 2021-03-13 22:30:00 -0700 categories: study-notes tag: algorithms --- * content {:toc} Last Update: 2020-03-13 ## Edit Distance ```python ''' Given two strings, return the minimum edit distance. Given: s1: horse s2: ros Return: 3 ''' class EditDistance: def solution(self, s1, s2): dp = [[0 for _ in range(len(s2) + 1)] for _ in range(len(s1) + 1)] for i in range(len(s1) + 1): dp[i][0] = i for j in range(len(s2) + 1): dp[0][j] = j for i in range(1, len(s1) + 1): for j in range(1, len(s2) + 1): if s1[i - 1] == s2[j - 1]: dp[i][j] = dp[i - 1][j - 1] else: dp[i][j] = min(dp[i - 1][j - 1], dp[i - 1][j], dp[i][j - 1]) + 1 return dp[-1][-1] ``` ## Job Schedule ```python ''' Given a list of jobs with their start times, end times and profits. Return the maximum profit one can achieve by completing these jobs without time conflict. Args: startTimes: a list of start times of corresponding jobs (integer) endTimes: a list of end times of corresponding jobs (integer) profits: a list of profits of corresponding jobs (integer) Returns: maximum profit achievable ''' class JobSchedule: def solution(self, startTimes, endTimes, profits): # sort by endTime, startTime and finally profit jobs = sorted(zip(startTimes, endTimes, profits), key=lambda x: (x[1], x[0], x[2])) endTimes = sorted(endTimes) # define dp array: mp[i] is the max profit up to i_th job # mp[0] = 0: when there is no job, there is no profit mp = [0 for _ in range(len(jobs) + 1)] for i in range(1, len(mp)): # current job s, e, p = jobs[i - 1] # find the last job that ends before current job start time s j = self._find_job_that_ends_before(s, endTimes) # job index j maps to max profit index j + 1 # update mp[i] with the bigger value of: # 1. previous max profit mp[i-1] (not work on current job) # 2. the max profit up to (j+1)_th job + current job profit mp[j + 1] + p mp[i] = max(mp[i - 1], mp[j + 1] + p) return mp[-1] def _find_job_that_ends_before(self, target, endTimes): for i in range(len(endTimes)): if endTimes[i] > target: return i - 1 return len(endTimes) - 1 ```
#!/bin/bash -e # Each Metricbeat requires access to Elasticsearch to send Metric information and optionally (but at least one times) # access to Kibana in order to load the Metricbeat Dashboards into Kibana. # This script adjusts the configured list of Elasticsearch hosts as required by Metricbeat. In addition it is # using the first Elasticsearch host as the Kibana-Host if not given externally with KIBANA_HOST # Save the originally given parameters as they are forwarded to the original docker-entrypoint script params=$@ export METRICBEAT_KIBANA_ENABLED=false export METRICBEAT_ELASTICSEARCH_ENABLED=false export METRICBEAT_LOGSTASH_ENABLED=false export METRICBEAT_BEAT_ENABLED=false export METRICBEAT_MEMCACHED_ENABLED=false export METRICBEAT_SYSTEM_ENABLED=false export METRICBEAT_DOCKER_ENABLED=false # Don't start if the node-name is not set if [ -z "${METRICBEAT_NODE_NAME}" ];then echo "METRICBEAT_NODE_NAME is missing"; exit 55; fi if [ -z "${METRICBEAT_MODULES}" ];then echo "METRICBEAT_MODULES is missing"; exit 77; else # Parse the comma separated list IFS=', ' read -r -a array <<< "${METRICBEAT_MODULES}" for module in "${array[@]}" do if [ "${module}" = "kibana" ]; then echo "Enable metricbeat Kibana module" export METRICBEAT_KIBANA_ENABLED=true continue; fi if [ "${module}" = "elasticsearch" ]; then echo "Enable metricbeat Elasticsearch module" export METRICBEAT_ELASTICSEARCH_ENABLED=true continue; fi if [ "${module}" = "logstash" ]; then echo "Enable metricbeat Logstash module" export METRICBEAT_LOGSTASH_ENABLED=true continue; fi if [ "${module}" = "filebeat" ]; then echo "Enable metricbeat Beat module" export METRICBEAT_BEAT_ENABLED=true continue; fi if [ "${module}" = "memcached" ]; then echo "Enable metricbeat Memcached module" export METRICBEAT_MEMCACHED_ENABLED=true continue; fi if [ "${module}" = "system" ]; then echo "Enable metricbeat System module" export METRICBEAT_SYSTEM_ENABLED=true continue; fi if [ "${module}" = "docker" ]; then echo "Enable metricbeat Docker module" export METRICBEAT_DOCKER_ENABLED=true continue; fi done fi if [ "${METRICBEAT_ENABLED}" = "false" ];then echo "Metricbeat is disabled as parameter METRICBEAT_ENABLED is set to false"; exit 88; fi if [ -z "${METRICBEAT_USERNAME}" ] || [ -z "${METRICBEAT_PASSWORD}" ];then if [ "${ELASTICSEARCH_ANONYMOUS_ENABLED}" = "false" ];then echo "ELASTICSEARCH_ANONYMOUS_ENABLED is false, but parameter: METRICBEAT_USERNAME or METRICBEAT_PASSWORD is missing"; exit 98; fi fi if [ -z "${ELASTICSEARCH_HOSTS}" ];then echo "Parameter: ELASTICSEARCH_HOSTS is missing"; exit 99; fi if [ -z "${KIBANA_HOST}" ];then echo "Parameter KIBANA_HOST not given, using https://kibana:5601 as default"; kibanaHost="https://kibana:5601" # This is the default as given by Docker-Compose export KIBANA_HOST=$kibanaHost echo "KIBANA_HOST set to $kibanaHost" fi # All Elasticsearch hosts should be monitored by one Metricbeat # Therefore the list format of the given Elasticsearch hosts must be adjusted for Metricbeat elasticHosts=`echo ${ELASTICSEARCH_HOSTS} | awk ' function ltrim(s) { sub(/^[ \t\r\n]+/, "", s); return s } function rtrim(s) { sub(/[ \t\r\n]+$/, "", s); return s } function trim(s) { return rtrim(ltrim(s)); } { split($0, va, /,/); vl=""; for (v in va) { if (vl =="" ) vl = sprintf("\"%s\"", trim(va[v])); else vl = vl sprintf(",\"%s\"", trim(va[v])); } printf("'[%s]'", vl) }' ` echo "Elasticsearch hosts: ${elasticHosts} will be monitored by Metricbeat" # Check if Kibana-Host is reachable and if not, disable Kibana-Monitoring curl -skf ${KIBANA_HOST} || rc=$? if [ \( "$rc" != "0" -a "$rc" != "" \) ] && [ "${SKIP_VALIDATION}" != true ]; then echo "KIBANA_HOST: ${KIBANA_HOST} is not reachable. Got negative returncode for command: curl -kv ${KIBANA_HOST}"; echo "Metricbeat Kibana monitoring will be disabled on this host."; export METRICBEAT_KIBANA_ENABLED=false; else # Only if Kibana is reachable, try to load Dashboards is enabled echo "Successfully connected to Kibana-Host: ${KIBANA_HOST}." if [ "${METRICBEAT_SETUP_DASHBOARDS}" != "false" ];then echo "Loading Metricbeat Dashboards into Kibana"; # Get the config file required to load Kibana-Dashboards for i in "$@" do case $i in -c) shift configFile="$1" break ;; *) shift ;; esac done echo "Calling metricbeat setup with config file: ${configFile}" if [ "${BATS_TEST}" != true ]; then metricbeat setup --strict.perms=false -e -c ${configFile} fi fi fi export ELASTICSEARCH_HOSTS=$elasticHosts # Skip, if running in a test if [ "${BATS_TEST}" != true ]; then # Finally call the original Docker-Entrypoint /usr/local/bin/docker-entrypoint $params fi
/* * Copyright [2020] [kongpingan] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package com.kpa.imagekotlindemo.features.image import android.os.Bundle import android.util.Log import android.view.View import androidx.lifecycle.ViewModel import androidx.recyclerview.widget.StaggeredGridLayoutManager import com.kpa.imagekotlindemo.R import com.kpa.imagekotlindemo.core.base.BaseFragment import com.kpa.imagekotlindemo.core.exception.Failure import com.kpa.imagekotlindemo.core.extension.failure import com.kpa.imagekotlindemo.core.extension.observe import com.kpa.imagekotlindemo.core.extension.viewModel import com.kpa.imagekotlindemo.core.navigation.Navigator import com.kpa.imagekotlindemo.features.image.adapter.ImageAdapter import com.kpa.imagekotlindemo.features.image.data.GetImage import com.kpa.imagekotlindemo.features.image.entry.Image import com.kpa.imagekotlindemo.features.image.viewmodel.ImageViewModel import kotlinx.android.synthetic.main.activity_image.* import javax.inject.Inject /** * author : kpa * e-mail : billkp@yeah.net */ class ImageFragment : BaseFragment() { @Inject lateinit var navigator: Navigator @Inject lateinit var mAdapter: ImageAdapter private lateinit var imageViewModel: ImageViewModel override fun layoutId(): Int = R.layout.activity_image override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) appComponent.inject(this) imageViewModel = viewModel(viewModelFactory) { observe(image, ::renderImageList) failure(failure, ::handleFailure) } } override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) initializeView() loadImageList() } private fun loadImageList() { imageViewModel.loadImage(1, 30) } private fun initializeView() { imageList.layoutManager = StaggeredGridLayoutManager(3, StaggeredGridLayoutManager.VERTICAL) imageList.adapter = mAdapter mAdapter.clickListener = { image, navigationExtras -> // click } } private fun renderImageList(image: List<Image>?) { mAdapter.collection = image.orEmpty() hideProgress() } private fun hideProgress() { } private fun handleFailure(failure: Failure?) { when (failure) { is Failure.NetworkConnection -> renderFailure("网络异常") is Failure.ServerError -> renderFailure("服务异常") } } private fun renderFailure(s: String) { Log.e("ImageKotlinDemo", s) } }
package unboks.passthrough import org.junit.jupiter.api.extension.ExtendWith import unboks.util.Ints import unboks.util.PassthroughAssertExtension import unboks.util.PassthroughAssertExtension.Companion.trace import unboks.util.PermutationTest @ExtendWith(PassthroughAssertExtension::class) class ClassTests { private class Box<T>(val value: T) @PermutationTest fun testSimpleOtherClass( @Ints(0, 1) value: Int ) { val box = Box(value) trace(box.value) } private sealed class Base(protected val value: String) { abstract fun compute(): String class DerivedA(value: String) : Base(value) { override fun compute(): String = "A$value" } class DerivedB(value: String) : Base(value) { override fun compute(): String = "B$value" } } @PermutationTest fun testDynamicDispatch( @Ints(0, 1) value: Int ) { val instance = if (value == 0) Base.DerivedA("Hello!") else Base.DerivedB("Hmm") trace(instance.compute()) } }
#!/bin/bash # This test verifies that flags passed through gc_goopts and gc_link_opts # attributes in go_library, go_binary, go_test, and cgo_library are actually # passed to the Go compiler. # # Each of the targets listed below is expected to fail, but only if the # "-u" flag is passed to the compiler or linker (reject unsafe code). This # test builds the targets manually and verifies Bazel fails with the expected # error message. cd $(dirname "$0") result=0 function check_build_fails { local target=$1 local message=$2 local outfile=$(mktemp) bazel build "$target" 2>&1 | tee "$outfile" local target_result=${PIPESTATUS[0]} if [ $target_result -eq 0 ]; then echo "build of $target succeeded but should have failed" >&2 echo "wrote output to $outfile" >&2 return 1 fi if ! grep -q "$message" "$outfile"; then echo "build of $target failed for a different reason" >&2 return 1 fi return 0 } compile_test_targets=( :unsafe_srcs_lib :unsafe_library_lib :unsafe_srcs_bin :unsafe_library_bin :unsafe_srcs_test :unsafe_library_test :unsafe_cgo_lib :unsafe_cgo_client_lib ) for target in "${compile_test_targets[@]}"; do check_build_fails "$target" "cannot import package unsafe" if [ $? -ne 0 ]; then result=1 fi done link_test_targets=( :unsafe_link_bin :unsafe_link_test ) for target in "${link_test_targets[@]}"; do check_build_fails "$target" "load of unsafe package" if [ $? -ne 0 ]; then result=1 fi done exit $result
export const { PORT, HOST, TIME_WINDOW, MAX_LIMIT, PG_WRITER_CONNECTION_STRING, PG_READER_CONNECTION_STRING, PG_REMOVER_CONNECTION_STRING, HTTP_SUCCESS, HTTP_CREATED, HTTP_NO_CONTENT, HTTP_UNAUTHORIZED, HTTP_FORBIDDEN, HTTP_ERROR, SALT_ROUNDS, } = process.env;
package jsdocs object ExampleJS { val greeting = "Hello!" }
// good explanation - https://leetcode.com/explore/learn/card/data-structure-tree/134/traverse-a-tree/ /** * In-order traversal is to traverse the left subtree first. * Then visit the root. Finally, traverse the right subtree. * Typically, for binary search tree, we can retrieve all * the data in sorted order using in-order traversal. * * Uses of Inorder * In case of binary search trees (BST), * Inorder traversal gives nodes in non-decreasing order. * To get nodes of BST in non-increasing order, * a variation of Inorder traversal where Inorder itraversal s reversed, can be used. * * Time Complexity. * O(N), * because we visit each node exactly once. * And the depth of the tree might be N in the worst case. * The level of recursion might be at most N in the worst case. * Therefore, taking system stack into consideration, * the Space Complexity is O(N) as well. * The complexity might be different due to a different implementation. * It is comparatively easy to do traversal recursively * but when the depth of the tree is too large, * we might suffer from `stack overflow` problem. * That's one of the main reasons why we want to solve this problem iteratively sometimes. * * Definition for a binary tree node: * public class TreeNode { * number val; * TreeNode left; * TreeNode right; * TreeNode(number x) { val = x; } * } * */ class InOrderTraversal { constructor() {} /** * @param {TreeNode} root * @returns {*[]} */ inorderTraversal(root) { const answer = new Array(); this._inorderTraversal(root, answer); return answer; } /** * @param {TreeNode} root * @param {*[]} answer */ _inorderTraversal(root, answer) { if (root === null) { return; } this._inorderTraversal(root.left, answer); // traverse left subtree answer.push(root.val); // visit the root this._inorderTraversal(root.right, answer); // traverse right subtree } }
-- Limited non-deterministic sample of 1980 publication references SELECT wp.source_id, wp.document_title, wp.publication_year AS source_year, wr.cited_source_uid, ref_wp.document_title AS reference_title, ref_wp.publication_year AS reference_year FROM wos_publications wp JOIN wos_references wr ON wr.source_id = wp.source_id JOIN wos_publications ref_wp ON ref_wp.source_id = wr.cited_source_uid WHERE wp.publication_year = '1980' LIMIT 100; -- 5m:15s -- Limited deterministic sample of 1980 publication references SELECT wp.source_id, wp.document_title, wp.publication_year AS source_year, wr.cited_source_uid, ref_wp.document_title AS reference_title, ref_wp.publication_year AS reference_year FROM wos_publications wp JOIN wos_references wr ON wr.source_id = wp.source_id JOIN wos_publications ref_wp ON ref_wp.source_id = wr.cited_source_uid WHERE wp.publication_year = '1980' ORDER BY wp.source_id LIMIT 100; -- Limited deterministic sample of publication references from the Uzzi 1980 dataset SELECT d.source_id, source_wp.document_title, d.source_year, d.source_document_id_type, d.source_issn, d.cited_source_uid, reference_wp.document_title AS reference_title, d.reference_year, d.reference_document_id_type, d.reference_issn FROM dataset1980 d JOIN wos_publications source_wp ON source_wp.source_id = d.source_id JOIN wos_publications reference_wp ON reference_wp.source_id = d.cited_source_uid ORDER BY d.source_id LIMIT 100;
package im.actor.server.values import akka.actor.{ ActorSystem, ExtendedActorSystem, Extension, ExtensionId, ExtensionIdProvider } import akka.util.Timeout import im.actor.config.ActorConfig final class ValuesExtension(val system: ActorSystem) extends Extension with SyncedSet { val defaultTimeout = Timeout(ActorConfig.defaultTimeout) } object ValuesExtension extends ExtensionId[ValuesExtension] with ExtensionIdProvider { override def createExtension(system: ExtendedActorSystem): ValuesExtension = new ValuesExtension(system) override def lookup(): ExtensionId[_ <: Extension] = ValuesExtension }
using Microsoft.Graph; using Newtonsoft.Json; namespace Fdk.M365Register.ApiApp.Models { /// <summary> /// This represents the entity for logged-in user details. /// </summary> public class LoggedInUser { /// <summary> /// Initializes a new instance of the <see cref="LoggedInUser" /> class. /// </summary> /// <param name="user"><see cref="User"/> instance.</param> public LoggedInUser(User user) { this.Upn = user?.UserPrincipalName; this.DisplayName = user?.DisplayName; this.Email = user?.Mail; } /// <summary> /// Gets or sets the UPN. /// </summary> [JsonProperty("upn")] public virtual string Upn { get; set; } /// <summary> /// Gets or sets the display name. /// </summary> [JsonProperty("displayName")] public virtual string DisplayName { get; set; } /// <summary> /// Gets or sets the email. /// </summary> [JsonProperty("email")] public virtual string Email { get; set; } } }
# Java Naming Convention > Interface Naming ## PascalCase - Begin with an uppercase letter - Avoid acronyms and abbreviations ```java interface Bookable {   ... }   ```
using EMBC.ExpenseAuthorization.Api.ETeam.Responses; using Xunit; namespace EMBC.Tests.Unit.ExpenseAuthorization.Api.ETeam.Responses { public class GetPicklistKeywordsResponseTests { [Fact] public void ParseResponse() { string xml = EmbeddedResource.Get<GetPicklistKeywordsResponseTests>("GetPicklistKeywordsResponse.txt"); GetPicklistKeywordsResponse sut = new GetPicklistKeywordsResponse(); sut.LoadFromXml(xml); Assert.NotEmpty(sut.Values); } } }
class MonitorEvent < ActiveRecord::Base belongs_to :incident, inverse_of: :events has_many :snapshots, foreign_key: 'event_id', inverse_of: :event # NOTE: the `pingometer_id` field will often not be filled in because it was, # until recently, available only for the latest event in Pingometer's API. # The `accepted` field represents whether an event should be considered. Some # monitors are known to have been incorrectly configured during certain time # periods -- we want to collect all event data, but mark event from those # time periods as not accepted. # TODO: only include accepted events in the default scope? default_scope { order(:date) } def self.latest self.last end def self.from_pingometer(pingometer_event, monitor=nil, state=nil) self.new( status: pingometer_event['type'], date: self.pingometer_time(pingometer_event['utc_timestamp']), pingometer_id: pingometer_event['id'], monitor: monitor, state: state ) end def self.create_from_pingometer(*args) event = self.from_pingometer(*args) event.save event end def up? status != 0 end def in_date_range?(start_date, end_date) self.date >= start_date && self.date <= end_date end protected def self.pingometer_time(timestamp) # It's almost ISO8601, except it's missing the time zone :( # Hopefully Pingometer will fix this, so be future proof by trying to parse before fixing. time = Time.parse(timestamp) if !time.utc? time = Time.parse("#{timestamp}Z") end time end end
{-# LANGUAGE GeneralizedNewtypeDeriving #-} module MonadTransformers.StackSpec where import Control.Monad.Trans import Control.Monad.Trans.State import Control.Monad.Trans.Writer import Test.Hspec main :: IO () main = hspec spec newtype Stack a = Stack { unStack :: StateT Int (WriterT [Int] IO) a } deriving (Functor, Applicative, Monad) fooStack :: Stack () fooStack = Stack $ do put 1 -- State layer lift $ tell [2] -- Writer layer -- Disabled it, no need to print it -- lift $ lift $ print 3 -- IO layer -- liftIO $ print 3 -- read the IO layer directly pure () evalStack :: Stack a -> IO [Int] evalStack m = execWriterT (evalStateT (unStack m) 0) spec :: Spec spec = do describe "creates the stack" $ do it "is layered" $ do res <- evalStack fooStack res `shouldBe` [2]
package loon.live2d; import loon.LSystem; import loon.LTexture; import loon.LTextureBatch; import loon.canvas.LColor; import loon.live2d.framework.L2DModelMatrix; import loon.live2d.graphics.*; import loon.opengl.BlendState; import loon.opengl.GL20; import loon.opengl.GLEx; import loon.utils.ListMap; public class DrawParamImpl extends DrawParam { private LColor color = new LColor(LColor.white); private ListMap<Integer, LTexture> textures = new ListMap<Integer, LTexture>(32); public DrawParamImpl() { } @Override public void drawTexture(final L2DModelMatrix matrix, final GLEx gl, final int textureNo, final int indexCount, final short[] indexArray, final float[] vertexArray, final float[] uvArray, final float opacity, final int colorCompositionType) { if (opacity < 0.01) { return; } LTexture texture = textures.get(textureNo); if (texture != null) { int sfactor = 0; int dfactor = 0; switch (colorCompositionType) { case 0: default: if (this._updateAlpha) { sfactor = 1; } else { sfactor = 770; } dfactor = 771; break; case 1: sfactor = 770; dfactor = 1; break; case 2: sfactor = 0; dfactor = 768; } if (list.size > textureNo) { float r = this.list.get(textureNo).r; float g = this.list.get(textureNo).g; float b = this.list.get(textureNo).b; float a = this.list.get(textureNo).a; if (this._updateAlpha) { color.setColor(this.red * opacity * r, this.green * opacity * g, this.blue * opacity * b, this.alpha * opacity * a); } else { color.setColor(this.red * r, this.green * g, this.blue * b, this.alpha * a * opacity); } } LSystem.base().graphics().gl.glBlendFunc(sfactor, dfactor); LTextureBatch batch = texture.getTextureBatch("drawlive2d", 4096); batch.setBlendState(BlendState.Null); batch.begin(); if (this._scale.x == 1f && this._scale.y == 1f) { batch.setBatchMatrix(matrix.getArray()); } batch.setGLType(GL20.GL_TRIANGLES); batch.draw(indexArray, vertexArray, uvArray, _location.x, _location.y, _scale.x, _scale.y, color); batch.end(); } } public void loadTexture(final int no, LTexture texture) { textures.put(no, texture); } public void deleteTextures() { for (int i = 0; i < textures.size; i++) { LTexture tex = textures.getValueAt(i); if (tex != null) { tex.close(); } } textures.clear(); } }
package io.github.cactacea.backend.auth.server.models.requests.session import com.twitter.finatra.validation.{MethodValidation, Size, ValidationResult} import io.github.cactacea.backend.auth.server.utils.validations.ValueValidator import io.swagger.annotations.ApiModelProperty case class PutUserName( @ApiModelProperty(value = "User name.", required = true) @Size(min = 2, max = 50) name: String ) { @MethodValidation def userNameCheck: ValidationResult = ValueValidator.validateUserName(name) }
{-# LANGUAGE OverloadedStrings #-} module LScheme.Parser.InternalSpec where import Test.Hspec import LScheme.Internal.Testing import LScheme.SchemeVal import LScheme.Parser.Internal spec :: Spec spec = do describe "parseListLikes" $ do it "parses (a test)" $ ll "(a test)" `shouldBe` Right (List [Atom "a", Atom "test"]) it "can handle ( some spaces )" $ ll "( some spaces )" `shouldBe` Right (List [Atom "some", Atom "spaces"]) it "parses (a b . c)" $ ll "(a b . c)" `shouldBe` Right (DottedList [Atom "a", Atom "b"] (Atom "c")) it "parses ( dotted . list)" $ ll "( dotted . list)" `shouldBe` Right (DottedList [Atom "dotted"] (Atom "list")) where ll = pt parseListLikes
use std::future::{self, Future}; use std::pin::Pin; use hyper::{ client::HttpConnector, header::{HeaderMap, HeaderName, HeaderValue}, Body, Request, }; use serde::de::DeserializeOwned; use crate::error::{ErrorResponse, StripeError}; use crate::params::{AppInfo, Headers}; use crate::resources::ApiVersion; static USER_AGENT: &str = concat!("Stripe/v3 RustBindings/", env!("CARGO_PKG_VERSION")); #[cfg(feature = "hyper-rustls")] mod connector { use hyper::client::{connect::dns::GaiResolver, HttpConnector}; pub use hyper_rustls::HttpsConnector; pub fn create() -> HttpsConnector<HttpConnector<GaiResolver>> { HttpsConnector::with_native_roots() } } #[cfg(feature = "hyper-tls")] mod connector { use hyper::client::{connect::dns::GaiResolver, HttpConnector}; pub use hyper_tls::HttpsConnector; pub fn create() -> HttpsConnector<HttpConnector<GaiResolver>> { HttpsConnector::new() } } #[cfg(all(feature = "hyper-tls", feature = "hyper-rustls"))] compile_error!("You must enable only one TLS implementation"); type HttpClient = hyper::Client<connector::HttpsConnector<HttpConnector>, Body>; pub type Response<T> = Pin<Box<dyn Future<Output = Result<T, StripeError>> + Send + Sync>>; #[allow(dead_code)] #[inline(always)] pub(crate) fn ok<T: Send + Sync + 'static>(ok: T) -> Response<T> { Box::pin(future::ready(Ok(ok))) } #[allow(dead_code)] #[inline(always)] pub(crate) fn err<T: Send + Sync + 'static>(err: StripeError) -> Response<T> { Box::pin(future::ready(Err(err))) } #[derive(Clone)] pub struct Client { host: String, client: HttpClient, secret_key: String, headers: Headers, app_info: Option<AppInfo>, } impl Client { /// Creates a new client pointed to `https://api.stripe.com/` pub fn new(secret_key: impl Into<String>) -> Client { Client::from_url("https://api.stripe.com/", secret_key) } /// Creates a new client posted to a custom `scheme://host/` pub fn from_url(scheme_host: impl Into<String>, secret_key: impl Into<String>) -> Client { let url = scheme_host.into(); let host = if url.ends_with('/') { format!("{}v1", url) } else { format!("{}/v1", url) }; let https = connector::create(); let client = hyper::Client::builder().build(https); // TODO: Automatically determine the latest supported api version in codegen? let headers = Headers { stripe_version: Some(ApiVersion::V2020_08_27), ..Default::default() }; Client { host, client, secret_key: secret_key.into(), headers, app_info: Some(AppInfo::default()), } } /// Clones a new client with different headers. /// /// This is the recommended way to send requests for many different Stripe accounts /// or with different Meta, Extra, and Expand headers while using the same secret key. pub fn with_headers(&self, headers: Headers) -> Client { let mut client = self.clone(); client.headers = headers; client } pub fn set_app_info(&mut self, name: String, version: Option<String>, url: Option<String>) { self.app_info = Some(AppInfo { name, url, version }); } /// Sets a value for the Stripe-Account header /// /// This is recommended if you are acting as only one Account for the lifetime of the client. /// Otherwise, prefer `client.with(Headers{stripe_account: "acct_ABC", ..})`. pub fn set_stripe_account<S: Into<String>>(&mut self, account_id: S) { self.headers.stripe_account = Some(account_id.into()); } /// Make a `GET` http request with just a path pub fn get<T: DeserializeOwned + Send + Sync + 'static>(&self, path: &str) -> Response<T> { let url = self.url(path); let mut req = Request::builder() .method("GET") .uri(url) .body(Body::empty()) .expect("request is correct"); *req.headers_mut() = self.headers(); send(&self.client, req) } /// Make a `GET` http request with url query parameters pub fn get_query<T: DeserializeOwned + Send + Sync + 'static, P: serde::Serialize>( &self, path: &str, params: P, ) -> Response<T> { let url = match self.url_with_params(path, params) { Err(err) => return Box::pin(future::ready(Err(err))), Ok(ok) => ok, }; let mut req = Request::builder() .method("GET") .uri(url) .body(Body::empty()) .expect("request is correct"); *req.headers_mut() = self.headers(); send(&self.client, req) } /// Make a `DELETE` http request with just a path pub fn delete<T: DeserializeOwned + Send + Sync + 'static>(&self, path: &str) -> Response<T> { let url = self.url(path); let mut req = Request::builder() .method("DELETE") .uri(url) .body(Body::empty()) .expect("request is correct"); *req.headers_mut() = self.headers(); send(&self.client, req) } /// Make a `DELETE` http request with url query parameters pub fn delete_query<T: DeserializeOwned + Send + Sync + 'static, P: serde::Serialize>( &self, path: &str, params: P, ) -> Response<T> { let url = match self.url_with_params(path, params) { Err(err) => return Box::pin(future::ready(Err(err))), Ok(ok) => ok, }; let mut req = Request::builder() .method("DELETE") .uri(url) .body(Body::empty()) .expect("request is correct"); *req.headers_mut() = self.headers(); send(&self.client, req) } /// Make a `POST` http request with just a path pub fn post<T: DeserializeOwned + Send + Sync + 'static>(&self, path: &str) -> Response<T> { let url = self.url(path); let mut req = Request::builder() .method("POST") .uri(url) .body(Body::empty()) .expect("request is correct"); *req.headers_mut() = self.headers(); send(&self.client, req) } /// Make a `POST` http request with urlencoded body pub fn post_form<T: DeserializeOwned + Send + Sync + 'static, F: serde::Serialize>( &self, path: &str, form: F, ) -> Response<T> { let url = self.url(path); let mut req = Request::builder() .method("POST") .uri(url) .body(match serde_qs::to_string(&form) { Err(err) => { return Box::pin(future::ready(Err(StripeError::QueryStringSerialize(err)))) } Ok(body) => Body::from(body), }) .expect("request is correct"); *req.headers_mut() = self.headers(); req.headers_mut().insert( HeaderName::from_static("content-type"), HeaderValue::from_static("application/x-www-form-urlencoded"), ); send(&self.client, req) } fn url(&self, path: &str) -> String { format!("{}/{}", self.host, path.trim_start_matches('/')) } fn url_with_params<P: serde::Serialize>( &self, path: &str, params: P, ) -> Result<String, StripeError> { let params = serde_qs::to_string(&params).map_err(StripeError::from)?; Ok(format!("{}/{}?{}", self.host, &path[1..], params)) } fn headers(&self) -> HeaderMap { let mut headers = HeaderMap::new(); headers.insert( HeaderName::from_static("authorization"), HeaderValue::from_str(&format!("Bearer {}", self.secret_key)) .expect("secret key is valid header value"), ); if let Some(account) = &self.headers.stripe_account { headers.insert( HeaderName::from_static("stripe-account"), HeaderValue::from_str(account).expect("stripe account is valid header value"), ); } if let Some(client_id) = &self.headers.client_id { headers.insert( HeaderName::from_static("client-id"), HeaderValue::from_str(client_id).expect("client id valid header value"), ); } if let Some(stripe_version) = &self.headers.stripe_version { headers.insert( HeaderName::from_static("stripe-version"), HeaderValue::from_str(stripe_version.as_str()) .expect("stripe version is valid header value"), ); } if let Some(app_info) = &self.app_info { let user_agent_app_info = format!("{} {}", USER_AGENT, format_app_info(app_info)); headers.insert( HeaderName::from_static("user-agent"), HeaderValue::from_str(user_agent_app_info.trim()) .expect("app info is valid header value"), ); } else { headers.insert( HeaderName::from_static("user-agent"), HeaderValue::from_static(USER_AGENT), ); }; headers } } fn send<T: DeserializeOwned + Send + Sync + 'static>( client: &HttpClient, request: hyper::Request<Body>, ) -> Response<T> { let client = client.clone(); // N.B. Client is send sync; cloned clients share the same pool. Box::pin(async move { let bytes = send_inner(&client, request).await?; serde_json::from_slice(&bytes).map_err(StripeError::from) }) } async fn send_inner( client: &HttpClient, request: hyper::Request<Body>, ) -> Result<hyper::body::Bytes, StripeError> { let response = client.request(request).await?; let status = response.status(); let bytes = hyper::body::to_bytes(response.into_body()).await?; if !status.is_success() { Err(serde_json::from_slice(&bytes) .map(|mut e: ErrorResponse| { e.error.http_status = status.into(); StripeError::from(e.error) }) .unwrap_or_else(StripeError::from)) } else { Ok(bytes) } } /// Formats a plugin's 'App Info' into a string that can be added to the end of an User-Agent string. /// /// This formatting matches that of other libraries, and if changed then it should be changed everywhere. fn format_app_info(info: &AppInfo) -> String { let formatted: String = match (&info.version, &info.url) { (Some(a), Some(b)) => format!("{}/{} ({})", &info.name, a, b), (Some(a), None) => format!("{}/{}", &info.name, a), (None, Some(b)) => format!("{}/{}", &info.name, b), _ => info.name.to_string(), }; formatted }
import {FindAllStationsHandler} from './find-all-stations.handler'; import {FindSensorsHandler} from './find-sensors.handler'; import {GetSensorDataHandler} from './get-sensor-data.handler'; import {GetStationIndexHandler} from './get-station-index.handler'; export const queryHandlers = [ FindAllStationsHandler, FindSensorsHandler, GetSensorDataHandler, GetStationIndexHandler ];
plugins { application } application { mainClassName = "com.github.ryandens.consumer.Main" } dependencies { // AutoValue for reducing boilerplate in creating immutable value objects val autoValueVersion = "1.7" compileOnly("com.google.auto.value", "auto-value-annotations", autoValueVersion) annotationProcessor("com.google.auto.value", "auto-value", autoValueVersion) // jackson for object serialization/deserialization implementation("com.fasterxml.jackson.core", "jackson-databind", "2.11.0") testImplementation("au.com.dius", "pact-jvm-consumer-junit5", "4.0.10") }
package example.kieker; import java.io.IOException; import java.util.List; import org.junit.Assert; import org.junit.Before; import org.junit.Test; public class TestStaticOperationExecution { @Test public void testRegularExecution() throws IOException { Instrumentable.staticMethod(); } }
ChangeLog ========= All notable changes to the project are documented in this file. [v1.5][] - 2021-09-09 --------------------- ### Changes - Add support for handling IPv4 addresses mapped on IPv6 - Pass through SOCK_STREAM in `recv()`, `recvfrom()` and `recvmsg()` ### Fixes - Restore IP_PKTINFO option on socket after interface inspection - Fix uninitialized variable [v1.4][] - 2021-09-06 --------------------- ### Changes - Allow access if `getsockaname()` or `getifaddrs()` fails - Use `SO_DOMAIN` socket option to query for `AF_INET` and `AF_INET6` domain sockets. These are the only ones we are concerned with, let everything else pass through [v1.3][] - 2021-09-03 --------------------- ### Fixes - Fixes for wrapping Net-SNMP and other services that use `AF_UNIX` IPC [v1.2][] - 2021-09-01 --------------------- ### Changes - Add support for wrapping `recvmsg()` and `recv()` syscalls, in addition to the existing `recvfrom()` wrapper - Slightly improved test framework, with .log files and overview - Only check ACL if `accept()` doesn't return error ### Fixes - Fix markdown links in changelog diffs - Fix uninitialized variable in test server [v1.1][] - 2021-08-26 --------------------- ### Changes - Add support for UDP services by wrapping `recvfrom()` - Add support for IPv6 - Scope ACL environment variable with `ACCEPT_GUARD_` prefix to avoid clashing with other uses of ACL on the system. Incompatible change! - Simplify build system slightly - Add basic test suite to verify accept guard, based on `unshare` - Replace unsafe `strncpy()` with safer version that NUL terminates. In a world of systemd named interfaces we are always at `IFNAMSIZ` ### Fixes - Check return value from `getenv()`, may be `NULL` [v1.0][] - 2021-08-20 --------------------- First public release. Basic `accept()` wrapper which reads allowed interface:port tuples from an `ACL=iface:port;iface2:port` environment variable. [v1.5]: https://github.com/westermo/accept-guard/compare/v1.4...v1.5 [v1.4]: https://github.com/westermo/accept-guard/compare/v1.3...v1.4 [v1.3]: https://github.com/westermo/accept-guard/compare/v1.2...v1.3 [v1.2]: https://github.com/westermo/accept-guard/compare/v1.1...v1.2 [v1.1]: https://github.com/westermo/accept-guard/compare/v1.0...v1.1 [v1.0]: https://github.com/westermo/accept-guard/compare/v0.0...v1.0
# DogBook DogBook ( AngularJs + BS4 + Api + Json) https://lmsite.github.io/DogBook/
package org.broadinstitute.dsde.workbench.avram import org.broadinstitute.dsde.workbench.avram.model.AvramException import org.broadinstitute.dsde.workbench.avram.util.AvramResult trait AvramResultSupport { /** * Perform computations represented by an AvramResult and produce the result value. This will * throw an exception for any errors raised by the computation. * * NOTE: This is a convenience for tests and is not intended for situations where proper error * handling is required. */ def unsafeRun[A](result: AvramResult[A]): A = { AvramResult.unsafeRun(identity[A], (e: AvramException) => throw e, (e: Throwable) => throw new Exception("Unhandled error", e))(result) } }
#include <Nvim/Blinky.hpp> nvim::Blinky::Blinky(nvim::DataHolder &dataHolder, nvim::GUIOptions &GUIOptions) : mDataHolder(dataHolder) , mGUIOptions(GUIOptions) , mBlinkPeriod(sf::milliseconds(500)) , mIsON(true) , mModeChanged(false) { setTextOffset(0, 0); mCursor.setFillColor(sf::Color::Black); mDrawableChar.setString(" "); mDrawableChar.setFont(mGUIOptions.getFont()); mDrawableChar.setCharacterSize(mGUIOptions.getFontSize()); changeMode(Mode::NORMAL); } void nvim::Blinky::update(sf::Time dt, bool layoutChanged) { if (layoutChanged || mTimer.getElapsedTime() > mBlinkPeriod || mModeChanged) { mIsON = !mIsON; //switch state if (layoutChanged || mModeChanged) { mIsON = true; mModeChanged = false; } if (mIsON) { auto pos = mDataHolder.getCursorPosition(); auto row = pos.x; auto col = pos.y; mCursor.setPosition(col * mGUIOptions.getCharWidth(), row * mGUIOptions.getLineSpacing()); mCursor.setFillColor(mDataHolder.getPrimaryForegroundColor()); mDrawableChar.setString(mDataHolder.getTextAtRow(row)[col]); mDrawableChar.setStyle(mDataHolder.getTextAttributesAtRow(row)[col]); mDrawableChar.setColor(mDataHolder.getPrimaryBackgroundColor()); mDrawableChar.setPosition(mCursor.getPosition() + sf::Vector2f(mOffsetX, mOffsetY)); } mTimer.restart(); } } void nvim::Blinky::render(sf::RenderTarget &target, const sf::RenderStates &states) const { if (mIsON) { target.draw(mCursor, states); if (mMode == Mode::NORMAL) target.draw(mDrawableChar, states); } } void nvim::Blinky::changeMode(Mode mode) { mMode = mode; mModeChanged = true; if (mode == Mode::NORMAL) mCursor.setSize({static_cast<float>(mGUIOptions.getCharWidth()), static_cast<float>(mGUIOptions.getLineSpacing())}); else mCursor.setSize({static_cast<float>(ceil(mGUIOptions.getCharWidth() / 5.0)), static_cast<float>(mGUIOptions.getLineSpacing())}); } void nvim::Blinky::setTextOffset(int x, int y) { mOffsetX = x; mOffsetY = y; }
package com.gu.android.mediacodec.mvp.widget; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Color; import android.graphics.drawable.ShapeDrawable; import android.graphics.drawable.shapes.RoundRectShape; import android.util.AttributeSet; import android.util.TypedValue; import android.view.Gravity; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import com.example.basemodule.log.LogUtil; import com.gu.android.mediacodec.R; public class StatusView extends LinearLayout { private int mTextSize; private int bgColor; float[] outs = {90, 90, 90, 90, 90, 90, 90, 90}; public StatusView(Context context) { this(context, null); } public StatusView(Context context, AttributeSet attrs) { this(context, attrs, 0); } public StatusView(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); init(context, attrs); } private void init(Context context, AttributeSet attrs) { setOrientation(HORIZONTAL); setGravity(Gravity.CENTER); mTextSize = 12; bgColor = 0xff888888; String text = ""; if (attrs != null) { TypedArray array = context.obtainStyledAttributes(attrs, R.styleable.StatusView); if (array != null) { bgColor = array.getColor(R.styleable.StatusView_bg_color, 0xff888888); mTextSize = array.getDimensionPixelSize(R.styleable.StatusView_textSize, 12); text = String.valueOf(array.getText(R.styleable.StatusView_text)); array.recycle(); } } addViews(context, text, mTextSize, Color.RED, bgColor); } private void addViews( Context context, String text, int textSize, int dotColor, int backgroundColor) { TextView textView = createTextView(context, text, textSize); int textViewHeight = textView.getMeasuredHeight(); int padding = textViewHeight / 3; ImageView dot = createDotImageView(context, textViewHeight, dotColor); LogUtil.log("dot", "dot width=" + dot.getMeasuredWidth()); addView(textView); MarginLayoutParams params = (MarginLayoutParams) dot.getLayoutParams(); params.setMargins(padding, 0, 0, 0); addView(dot, params); ShapeDrawable backgroundDrawable = createBackgroundDrawable(backgroundColor, padding); setBackground(backgroundDrawable); } private TextView createTextView(Context context, String text, int textSize) { TextView textView = new TextView(context); textView.setText(text); textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize); textView.setTextColor(Color.WHITE); int spec = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED); textView.measure(spec, spec); return textView; } private ImageView createDotImageView(Context context, int size, int color) { ImageView imageView = new ImageView(context); imageView.setLayoutParams(new LayoutParams(size, size)); DotDrawable dotDrawable = new DotDrawable(size, color); imageView.setImageDrawable(dotDrawable); return imageView; } private ShapeDrawable createBackgroundDrawable(int backgroundColor, int padding) { RoundRectShape shape = new RoundRectShape(outs, null, null); ShapeDrawable drawable = new ShapeDrawable(shape); drawable.getPaint().setColor(backgroundColor); drawable.setPadding(padding, padding, padding, padding); return drawable; } public void update(String text, int dotColor) { if (getChildCount() == 2) { removeAllViews(); addViews(getContext(), text, mTextSize, dotColor, bgColor); } } }
/* * Copyright LWJGL. All rights reserved. * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.opengl; import java.nio.*; import org.lwjgl.system.*; import static org.lwjgl.system.Checks.*; import static org.lwjgl.system.JNI.*; import static org.lwjgl.system.MemoryStack.*; import static org.lwjgl.system.MemoryUtil.*; /** * Native bindings to the <a target="_blank" href="https://www.khronos.org/registry/OpenGL/extensions/ARB/GLX_ARB_get_proc_address.txt">GLX_ARB_get_proc_address</a> extension. * * <p>This extension adds a function to return the address of GLX and GL extension functions, given the function name. This is necessary with (for example) * heterogenous implementations where hardware drivers may implement extension functions not known to the link library; a similar situation on Windows * implementations resulted in the {@code wglGetProcAddress} function.</p> */ public class GLXARBGetProcAddress { protected GLXARBGetProcAddress() { throw new UnsupportedOperationException(); } // --- [ glXGetProcAddressARB ] --- /** Unsafe version of: {@link #glXGetProcAddressARB GetProcAddressARB} */ public static long nglXGetProcAddressARB(long procName) { long __functionAddress = GL.getCapabilitiesGLXClient().glXGetProcAddressARB; if (CHECKS) { check(__functionAddress); } return callPP(procName, __functionAddress); } /** * Returns the address of the extension function named by procName. The pointer returned should be cast to a function pointer type matching the extension * function's definition in that extension specification. A return value of {@code NULL} indicates that the specified function does not exist for the * implementation. * * <p>A non-{@code NULL} return value for {@code glXGetProcAddressARB} does not guarantee that an extension function is actually supported at runtime. The client * must must also query {@link GL11C#glGetString GetString}({@link GL11#GL_EXTENSIONS}) or {@link GLX11#glXQueryExtensionsString QueryExtensionsString} to determine if an extension is supported by a particular * context.</p> * * <p>GL function pointers returned by {@code glXGetProcAddressARB} are independent of the currently bound context and may be used by any context which * supports the extension.</p> * * <p>{@code glXGetProcAddressARB} may be queried for all of the following functions:</p> * * <ul> * <li>All GL and GLX extension functions supported by the implementation (whether those extensions are supported by the current context or not).</li> * <li>All core (non-extension) functions in GL and GLX from version 1.0 up to and including the versions of those specifications supported by the * implementation, as determined by {@link GL11C#glGetString GetString}({@link GL11#GL_VERSION}) and {@link GLX#glXQueryVersion QueryVersion} queries.</li> * </ul> * * @param procName the function name to query */ @NativeType("void *") public static long glXGetProcAddressARB(@NativeType("GLchar const *") ByteBuffer procName) { if (CHECKS) { checkNT1(procName); } return nglXGetProcAddressARB(memAddress(procName)); } /** * Returns the address of the extension function named by procName. The pointer returned should be cast to a function pointer type matching the extension * function's definition in that extension specification. A return value of {@code NULL} indicates that the specified function does not exist for the * implementation. * * <p>A non-{@code NULL} return value for {@code glXGetProcAddressARB} does not guarantee that an extension function is actually supported at runtime. The client * must must also query {@link GL11C#glGetString GetString}({@link GL11#GL_EXTENSIONS}) or {@link GLX11#glXQueryExtensionsString QueryExtensionsString} to determine if an extension is supported by a particular * context.</p> * * <p>GL function pointers returned by {@code glXGetProcAddressARB} are independent of the currently bound context and may be used by any context which * supports the extension.</p> * * <p>{@code glXGetProcAddressARB} may be queried for all of the following functions:</p> * * <ul> * <li>All GL and GLX extension functions supported by the implementation (whether those extensions are supported by the current context or not).</li> * <li>All core (non-extension) functions in GL and GLX from version 1.0 up to and including the versions of those specifications supported by the * implementation, as determined by {@link GL11C#glGetString GetString}({@link GL11#GL_VERSION}) and {@link GLX#glXQueryVersion QueryVersion} queries.</li> * </ul> * * @param procName the function name to query */ @NativeType("void *") public static long glXGetProcAddressARB(@NativeType("GLchar const *") CharSequence procName) { MemoryStack stack = stackGet(); int stackPointer = stack.getPointer(); try { stack.nASCII(procName, true); long procNameEncoded = stack.getPointerAddress(); return nglXGetProcAddressARB(procNameEncoded); } finally { stack.setPointer(stackPointer); } } }
// This is an independent project of an individual developer. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com using System; using System.Collections.Generic; using NetExtender.Types.Dictionaries.Interfaces; namespace NetExtender.Types.Maps.Interfaces { public interface IIndexMap<TKey, TValue> : IMap<TKey, TValue>, IIndexDictionary<TKey, TValue> { public Int32 IndexOfValue(TValue key); public KeyValuePair<TValue, TKey> GetValueKeyPairByIndex(Int32 index); public Boolean TryGetValueKeyPairByIndex(Int32 index, out KeyValuePair<TValue, TKey> pair); public void Insert(TValue key, TKey value); public void Insert(Int32 index, TValue key, TKey value); public Boolean TryInsert(TValue key, TKey value); public Boolean TryInsert(Int32 index, TValue key, TKey value); } }
import { createColors } from 'colorette'; import { once } from 'events'; import build from 'pino-abstract-transport'; import SonicBoom, { SonicBoomOpts } from 'sonic-boom'; import { isatty } from 'tty'; import util from 'util'; import type { LogDescriptor } from './types.js'; export interface PrettyTransportOptions { destination: number | SonicBoomOpts['dest']; } export function createPrettifier(options?: { fd?: number; color?: boolean }) { const forceNoColor: boolean = process.env.TERM === 'dumb' || 'NO_COLOR' in process.env; const useColor = forceNoColor ? false : options?.color === true || (!!options?.fd && isatty(options.fd)); const { bgRed, bgYellow, black, blue, bold, dim, gray, green, red, whiteBright, } = createColors({ useColor }); const formatLevel = (level: number): string => { switch (level) { case 60: // LogLevelNumbers.Fatal: return bgRed(whiteBright(bold('FATAL'))); case 50: // LogLevelNumbers.Error: return red('ERROR'); case 40: // LogLevelNumbers.Warn: return bgYellow(black(bold('WARN'))); case 30: // LogLevelNumbers.Info: return blue('INFO'); case 20: // LogLevelNumbers.Debug: return green('DEBUG'); case 10: // LogLevelNumbers.Trace: return dim('TRACE'); case 0: // LogLevelNumbers.Silent: default: return dim('SILENT'); } }; return (log: LogDescriptor): string => { const { level, msg = '', time, name, hostname, pid, ...rest } = log; const formattedName = name ? `(${name})` : ''; const formattedMsg = msg && ` ${bold(msg)}`; const formattedRest = Object.keys(rest).length > 0 ? ` ${util.inspect(rest, { colors: useColor, compact: true, sorted: true, })}` : ''; return `${gray(new Date(time).toJSON())} ${formatLevel(level).padEnd( 6, ' ', )}${formattedName} ${formattedMsg}${formattedRest}`; }; } export default async function (options: PrettyTransportOptions) { const fd = typeof options.destination === 'number' ? options.destination : undefined; const prettifier = createPrettifier({ fd }); // SonicBoom is necessary to avoid loops with the main thread. // It is the same of pino.destination(). const destination = new SonicBoom({ fd, dest: typeof options.destination !== 'number' && options.destination ? options.destination : undefined, sync: false, }); await once(destination, 'ready'); return build( async function (source) { // eslint-disable-next-line no-restricted-syntax for await (const obj of source) { const toDrain = !destination.write(`${prettifier(obj)}\n`); // This block will handle backpressure if (toDrain) { await once(destination, 'drain'); } } }, { async close(err?: Error) { if (err) { console.warn(err); } destination.end(); await once(destination, 'close'); }, }, ); }
export * from './create-link-type' export * from './is-link-type' export * from './link-type.type' export * from './to/index'
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using System.Drawing.Imaging; using System.Windows.Forms; namespace IPInformer2 { public enum TrayIconType { Connecting = 0, NoNetwork = 1, OK = 2, Off=3, Panic=4, Warning = 5 } public static class TrayIcons { private static Icon[] trayIcons = new Icon[6]; [System.Runtime.InteropServices.DllImport("user32.dll", CharSet = System.Runtime.InteropServices.CharSet.Auto)] private extern static bool DestroyIcon(IntPtr handle); static TrayIcons() { trayIcons[(int)TrayIconType.Connecting] = Properties.Resources.ip_blue_16x16; trayIcons[(int)TrayIconType.NoNetwork] = Properties.Resources.ip_gray_16x16; trayIcons[(int)TrayIconType.OK] = Properties.Resources.ip_green_16x16; trayIcons[(int)TrayIconType.Off] = Properties.Resources.ip_off_16x16; trayIcons[(int)TrayIconType.Panic] = Properties.Resources.ip_red_16x16; trayIcons[(int)TrayIconType.Warning] = Properties.Resources.ip_yellow_16x16; } public static void TrayIcon(TrayIconType TargetIcon, NotifyIcon ni, bool warning) { ni.Icon=trayIcons[(int)TargetIcon]; if (warning) { SetWarning(ni); } } private static void SetWarning(NotifyIcon ni) { Icon tmpIcon = ni.Icon; IconConverter icconv = new IconConverter(); Bitmap TargetBitmap = (Bitmap)icconv.ConvertTo(tmpIcon, typeof(Bitmap)); Bitmap OverlayBitmap = Properties.Resources.overlay; Bitmap ResultBitmap = new Bitmap(TargetBitmap.Width, TargetBitmap.Height, PixelFormat.Format32bppArgb); Graphics graph = Graphics.FromImage(ResultBitmap); graph.CompositingMode = System.Drawing.Drawing2D.CompositingMode.SourceOver; graph.DrawImage(TargetBitmap, 0, 0); graph.DrawImage(OverlayBitmap, 0, TargetBitmap.Height - OverlayBitmap.Height); IntPtr hIcon = ResultBitmap.GetHicon(); tmpIcon = Icon.FromHandle(hIcon); ni.Icon = tmpIcon; } } }