<?php

namespace FFI;

// CData class if declared separately (via the code)
// to avoid the gentree code complications due to a single type.
// See FFIRoot::register_builtin_classes().

class Scope {
  /** @return \FFI\CData but actually, a concrete \FFI\CData_int64 or other, depends on $type */
  public function new(string $type, bool $owned = true);

  /** @return \FFI\CData but actually, something like ^1, but may be ffi &ref */
  public function cast(string $type, \FFI\CData $cdata);
}
