Programming GuideData MarshallingData Marshalling Default marshalling rules for arrays, spans, and structs Pinned vs copied memory, ownership, and lifetimes GPU transfers (H2D/D2H), page-locked memory, async copies Custom marshalling hooks and advanced scenarios