Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/VLC/src/rust/vlcrs-core/src/object/   (VLC Media Plyer ©)  Datei vom 23.9.2026 mit Größe 975 B image not shown  

Quelle  sys.rs   Sprache: Rust

 

use crate::object::Object;
use std::marker::PhantomData;
use std::ptr::NonNull;

#[repr(C)]
pub(super) struct ObjectInternals {
    _unused: [u8; 0],
}

#[repr(C)]
pub(super) struct ObjectMarker {
    _unused: [u8; 0],
}

#[repr(C)]
#[derive(Copy, Clone)]
pub(super) union ObjectInternalData<'parent> {
    pub internals: Option<NonNull<ObjectInternals>>,
    pub marker: Option<NonNull<ObjectMarker>>,
    pub _parent: PhantomData<&'parent Object<'parent>>,
}

extern "C" {

    ///
    /// Create a VLC object, with an optional parent.
    ///
    /// For now, the lifetime is more constrained than necessary so that
    /// the function can be used in test without creating unsound situations.
    ///
    pub(crate) fn vlc_object_create<'parent, 'child>(
        parent: Option<&'_ Object<'parent>>,
        length: core::ffi::c_size_t,
    ) -> Option<NonNull<Object<'child>>>
    where
        'parent: 'child;

    pub(crate) fn vlc_object_delete(obj: &mut Object);
}

Messung
CHZG
8610010095

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-11-04) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover


Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.