Skip to content

types

Public field aliases and helpers for common C-compatible scalar formats.

Functions:

  • c_char

    Annotated metadata for a char array of the given length. Returns Python bytes.

  • c_uuid

    Annotated metadata for a single UUID. Expects 16-byte char array.

Attributes:

  • c_bool

    Annotated metadata for one or more bools. count>1 represents a tuple of values.

  • c_complex_double

    Annotated metadata for one or more complex doubles. count>1 represents a tuple of values.

  • c_complex_float

    Annotated metadata for one or more complex floats. count>1 represents a tuple of values.

  • c_double

    Annotated metadata for one or more doubles. count>1 represents a tuple of values.

  • c_float

    Annotated metadata for one or more floats. count>1 represents a tuple of values.

  • c_int

    Annotated metadata for one or more ints. count>1 represents a tuple of values.

  • c_long

    Annotated metadata for one or more longs. count>1 represents a tuple of values.

  • c_long_long

    Annotated metadata for one or more long longs. count>1 represents a tuple of values.

  • c_short

    Annotated metadata for one or more shorts. count>1 represents a tuple of values.

  • c_signed_char

    Annotated metadata for one or more signed chars. count>1 represents a tuple of values.

  • c_size_t

    Annotated metadata for one or more size_t values. count>1 represents a tuple of values.

  • c_ssize_t

    Annotated metadata for one or more ssize_t values. count>1 represents a tuple of values.

  • c_unsigned_char

    Annotated metadata for one or more unsigned chars. count>1 represents a tuple of values.

  • c_unsigned_int

    Annotated metadata for one or more unsigned ints. count>1 represents a tuple of values.

  • c_unsigned_long

    Annotated metadata for one or more unsigned longs. count>1 represents a tuple of values.

  • c_unsigned_long_long

    Annotated metadata for unsigned long longs. count>1 represents a tuple of values.

  • c_unsigned_short

    Annotated metadata for one or more unsigned shorts. count>1 represents a tuple of values.

c_bool module-attribute

c_bool = _make_one_or_many(bool, '?')

Annotated metadata for one or more bools. count>1 represents a tuple of values.

c_complex_double module-attribute

c_complex_double = _make_one_or_many(complex, 'D')

Annotated metadata for one or more complex doubles. count>1 represents a tuple of values.

c_complex_float module-attribute

c_complex_float = _make_one_or_many(complex, 'F')

Annotated metadata for one or more complex floats. count>1 represents a tuple of values.

c_double module-attribute

c_double = _make_one_or_many(float, 'd')

Annotated metadata for one or more doubles. count>1 represents a tuple of values.

c_float module-attribute

c_float = _make_one_or_many(float, 'f')

Annotated metadata for one or more floats. count>1 represents a tuple of values.

c_int module-attribute

c_int = _make_one_or_many(int, 'i')

Annotated metadata for one or more ints. count>1 represents a tuple of values.

c_long module-attribute

c_long = _make_one_or_many(int, 'l')

Annotated metadata for one or more longs. count>1 represents a tuple of values.

c_long_long module-attribute

c_long_long = _make_one_or_many(int, 'q')

Annotated metadata for one or more long longs. count>1 represents a tuple of values.

c_short module-attribute

c_short = _make_one_or_many(int, 'h')

Annotated metadata for one or more shorts. count>1 represents a tuple of values.

c_signed_char module-attribute

c_signed_char = _make_one_or_many(int, 'b')

Annotated metadata for one or more signed chars. count>1 represents a tuple of values.

c_size_t module-attribute

c_size_t = _make_one_or_many(int, 'N')

Annotated metadata for one or more size_t values. count>1 represents a tuple of values.

c_ssize_t module-attribute

c_ssize_t = _make_one_or_many(int, 'n')

Annotated metadata for one or more ssize_t values. count>1 represents a tuple of values.

c_unsigned_char module-attribute

c_unsigned_char = _make_one_or_many(int, 'B')

Annotated metadata for one or more unsigned chars. count>1 represents a tuple of values.

c_unsigned_int module-attribute

c_unsigned_int = _make_one_or_many(int, 'I')

Annotated metadata for one or more unsigned ints. count>1 represents a tuple of values.

c_unsigned_long module-attribute

c_unsigned_long = _make_one_or_many(int, 'L')

Annotated metadata for one or more unsigned longs. count>1 represents a tuple of values.

c_unsigned_long_long module-attribute

c_unsigned_long_long = _make_one_or_many(int, 'Q')

Annotated metadata for unsigned long longs. count>1 represents a tuple of values.

c_unsigned_short module-attribute

c_unsigned_short = _make_one_or_many(int, 'H')

Annotated metadata for one or more unsigned shorts. count>1 represents a tuple of values.

c_char

c_char(count: int) -> CFormat

Annotated metadata for a char array of the given length. Returns Python bytes.

c_uuid

c_uuid() -> CFormat[UUID]

Annotated metadata for a single UUID. Expects 16-byte char array.