Skip to content
FutureBlitz

    Install

    Import std.ffi.cdata

    std.ffi.cdata

    CData: the constraint for the types C code has, which a Ptr points to and SizeOf measures.

    std/ffi/cdata.fb

    Types

    CData interface

    Public Interface CData

    What C code has, which the compiler decides, as it does Sendable: numbers, Bools, Enums, CStrings, Ptrs, Callbacks, @CLayout Structs, and fixed arrays of these. A type parameter with it can be a Ptr's T and SizeOf's, as in Unsafe Function First<T: CData>(p: Ptr<T>): T. It's only a constraint, and a Struct that lists it is checked for it.

    std/ffi/cdata.fb, line 7

    Report an issue with this page or with FutureBlitz on GitHub.