LibrePCB Developers Documentation
Loading...
Searching...
No Matches
ffi.h
Go to the documentation of this file.
1// WARNING: This file is autogenerated by cbindgen, don't modify it manually.
2// clang-format off
3
4#pragma once
5
6#include <cstdarg>
7#include <cstddef>
8#include <cstdint>
9#include <cstdlib>
10#include <ostream>
11#include <new>
12#include <QtCore>
13#define NONNULL
14
15namespace librepcb {
16namespace rs {
17
18extern "C" {
19
20extern size_t ffi_qbytearray_len(const QByteArray * NONNULL obj);
21
22extern const uint8_t *ffi_qbytearray_data(const QByteArray * NONNULL obj);
23
24extern uint8_t *ffi_qbytearray_data_mut(QByteArray * NONNULL obj);
25
26extern void ffi_qbytearray_resize(QByteArray * NONNULL obj,
27 size_t len,
28 uint8_t value);
29
30extern size_t ffi_qstring_len(const QString * NONNULL obj);
31
32extern const uint16_t *ffi_qstring_utf16(const QString * NONNULL obj);
33
34extern void ffi_qstring_set(QString * NONNULL obj, const char *s, size_t len);
35
40
41} // extern "C"
42
43} // namespace rs
44} // namespace librepcb
45
46// clang-format on
#define NONNULL
Definition ffi.h:13
void ffi_qbytearray_resize(QByteArray *obj, std::size_t len, uint8_t value)
Definition ffi.cpp:47
void ffi_qstring_set(QString *obj, const char *s, std::size_t len)
Definition ffi.cpp:72
uint8_t * ffi_qbytearray_data_mut(QByteArray *obj)
Definition ffi.cpp:43
void ffi_increment_number_in_string(QString *NONNULL s)
std::size_t ffi_qbytearray_len(const QByteArray *obj)
Definition ffi.cpp:35
const uint8_t * ffi_qbytearray_data(const QByteArray *obj)
Definition ffi.cpp:39
uintptr_t ffi_qstring_len(const QString *obj)
Definition ffi.cpp:64
const uint16_t * ffi_qstring_utf16(const QString *obj)
Definition ffi.cpp:68
Definition occmodel.cpp:76