Module raster.import_owned

Public retained import API for one owned physical raster resource.

Raw external pointer ownership is established separately through an explicit @system adoption boundary such as tryAdoptMallocResource().

Once an OwnedByteResource exists, this module provides the @safe transition

from

OwnedByteResource + PlaneByteLayout[] + Region2D

to

RasterLease!T

The raw pointer and release machinery remain behind package-internal trusted/system boundaries.

Date

2026-10-05

Functions

NameDescription
tryImportOwnedRaster(resource, planes, residentRegion, lease) Imports one retained raster backed by one OwnedByteResource.

Structs

NameDescription
OwnedRasterImportResult Stable public result of one retained owned-raster import attempt.

Enums

NameDescription
OwnedRasterImportError Stable public error categories for retained owned-raster import.
OwnedRasterResourceDisposition What happened to the physical release obligation during an import attempt.