2024-02-06 20:19:53 +08:00
|
|
|
// This file is automatically generated, so please do not edit it.
|
2024-11-03 15:33:52 +08:00
|
|
|
// @generated by `flutter_rust_bridge`@ 2.5.1.
|
2024-02-06 20:19:53 +08:00
|
|
|
|
|
|
|
// ignore_for_file: unused_import, unused_element, unnecessary_import, duplicate_ignore, invalid_use_of_internal_member, annotate_overrides, non_constant_identifier_names, curly_braces_in_flow_control_structures, prefer_const_literals_to_create_immutables, unused_field
|
|
|
|
|
2024-05-01 13:48:37 +08:00
|
|
|
import 'api/asar_api.dart';
|
2024-02-07 00:20:06 +08:00
|
|
|
import 'api/http_api.dart';
|
2024-04-16 22:34:50 +08:00
|
|
|
import 'api/rs_process.dart';
|
2024-04-28 22:28:48 +08:00
|
|
|
import 'api/win32_api.dart';
|
2024-02-06 20:19:53 +08:00
|
|
|
import 'dart:async';
|
|
|
|
import 'dart:convert';
|
|
|
|
import 'dart:ffi' as ffi;
|
|
|
|
import 'frb_generated.dart';
|
2024-02-07 19:32:36 +08:00
|
|
|
import 'http_package.dart';
|
2024-02-06 20:19:53 +08:00
|
|
|
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated_io.dart';
|
|
|
|
|
|
|
|
abstract class RustLibApiImplPlatform extends BaseApiImpl<RustLibWire> {
|
|
|
|
RustLibApiImplPlatform({
|
|
|
|
required super.handler,
|
|
|
|
required super.wire,
|
|
|
|
required super.generalizedFrbRustBinding,
|
|
|
|
required super.portManager,
|
|
|
|
});
|
|
|
|
|
2024-02-15 21:24:39 +08:00
|
|
|
@protected
|
|
|
|
AnyhowException dco_decode_AnyhowException(dynamic raw);
|
|
|
|
|
2024-02-07 00:20:06 +08:00
|
|
|
@protected
|
|
|
|
Map<String, String> dco_decode_Map_String_String(dynamic raw);
|
|
|
|
|
2024-04-16 22:34:50 +08:00
|
|
|
@protected
|
|
|
|
RustStreamSink<RsProcessStreamData>
|
|
|
|
dco_decode_StreamSink_rs_process_stream_data_Dco(dynamic raw);
|
2024-04-11 19:52:13 +08:00
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
String dco_decode_String(dynamic raw);
|
|
|
|
|
2024-04-28 21:50:36 +08:00
|
|
|
@protected
|
|
|
|
bool dco_decode_bool(dynamic raw);
|
|
|
|
|
2024-11-03 15:57:37 +08:00
|
|
|
@protected
|
|
|
|
bool dco_decode_box_autoadd_bool(dynamic raw);
|
|
|
|
|
2024-05-01 13:48:37 +08:00
|
|
|
@protected
|
|
|
|
RsiLauncherAsarData dco_decode_box_autoadd_rsi_launcher_asar_data(
|
|
|
|
dynamic raw);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
2024-05-29 21:52:04 +08:00
|
|
|
BigInt dco_decode_box_autoadd_u_64(dynamic raw);
|
2024-02-07 19:32:36 +08:00
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
int dco_decode_i_32(dynamic raw);
|
|
|
|
|
2024-02-07 22:19:43 +08:00
|
|
|
@protected
|
|
|
|
List<String> dco_decode_list_String(dynamic raw);
|
|
|
|
|
2024-05-01 13:48:37 +08:00
|
|
|
@protected
|
|
|
|
List<int> dco_decode_list_prim_u_8_loose(dynamic raw);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
Uint8List dco_decode_list_prim_u_8_strict(dynamic raw);
|
|
|
|
|
2024-02-07 00:20:06 +08:00
|
|
|
@protected
|
|
|
|
List<(String, String)> dco_decode_list_record_string_string(dynamic raw);
|
|
|
|
|
2024-03-10 20:28:24 +08:00
|
|
|
@protected
|
|
|
|
MyHttpVersion dco_decode_my_http_version(dynamic raw);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
|
|
|
MyMethod dco_decode_my_method(dynamic raw);
|
|
|
|
|
2024-02-07 00:20:06 +08:00
|
|
|
@protected
|
|
|
|
Map<String, String>? dco_decode_opt_Map_String_String(dynamic raw);
|
|
|
|
|
2024-03-12 20:07:06 +08:00
|
|
|
@protected
|
|
|
|
String? dco_decode_opt_String(dynamic raw);
|
|
|
|
|
2024-11-03 15:57:37 +08:00
|
|
|
@protected
|
|
|
|
bool? dco_decode_opt_box_autoadd_bool(dynamic raw);
|
|
|
|
|
2024-02-07 00:20:06 +08:00
|
|
|
@protected
|
2024-05-29 21:52:04 +08:00
|
|
|
BigInt? dco_decode_opt_box_autoadd_u_64(dynamic raw);
|
2024-02-07 19:32:36 +08:00
|
|
|
|
|
|
|
@protected
|
|
|
|
Uint8List? dco_decode_opt_list_prim_u_8_strict(dynamic raw);
|
2024-02-07 00:20:06 +08:00
|
|
|
|
|
|
|
@protected
|
|
|
|
(String, String) dco_decode_record_string_string(dynamic raw);
|
|
|
|
|
2024-04-16 22:34:50 +08:00
|
|
|
@protected
|
|
|
|
RsProcessStreamData dco_decode_rs_process_stream_data(dynamic raw);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
RsProcessStreamDataType dco_decode_rs_process_stream_data_type(dynamic raw);
|
|
|
|
|
2024-05-01 13:48:37 +08:00
|
|
|
@protected
|
|
|
|
RsiLauncherAsarData dco_decode_rsi_launcher_asar_data(dynamic raw);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
|
|
|
RustHttpResponse dco_decode_rust_http_response(dynamic raw);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
int dco_decode_u_16(dynamic raw);
|
|
|
|
|
2024-04-16 22:34:50 +08:00
|
|
|
@protected
|
|
|
|
int dco_decode_u_32(dynamic raw);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
2024-05-29 21:52:04 +08:00
|
|
|
BigInt dco_decode_u_64(dynamic raw);
|
2024-02-06 20:19:53 +08:00
|
|
|
|
|
|
|
@protected
|
|
|
|
int dco_decode_u_8(dynamic raw);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
void dco_decode_unit(dynamic raw);
|
|
|
|
|
2024-02-15 21:24:39 +08:00
|
|
|
@protected
|
|
|
|
AnyhowException sse_decode_AnyhowException(SseDeserializer deserializer);
|
|
|
|
|
2024-02-07 00:20:06 +08:00
|
|
|
@protected
|
|
|
|
Map<String, String> sse_decode_Map_String_String(
|
|
|
|
SseDeserializer deserializer);
|
|
|
|
|
2024-04-16 22:34:50 +08:00
|
|
|
@protected
|
|
|
|
RustStreamSink<RsProcessStreamData>
|
|
|
|
sse_decode_StreamSink_rs_process_stream_data_Dco(
|
|
|
|
SseDeserializer deserializer);
|
2024-04-11 19:52:13 +08:00
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
String sse_decode_String(SseDeserializer deserializer);
|
|
|
|
|
2024-04-28 21:50:36 +08:00
|
|
|
@protected
|
|
|
|
bool sse_decode_bool(SseDeserializer deserializer);
|
|
|
|
|
2024-11-03 15:57:37 +08:00
|
|
|
@protected
|
|
|
|
bool sse_decode_box_autoadd_bool(SseDeserializer deserializer);
|
|
|
|
|
2024-05-01 13:48:37 +08:00
|
|
|
@protected
|
|
|
|
RsiLauncherAsarData sse_decode_box_autoadd_rsi_launcher_asar_data(
|
|
|
|
SseDeserializer deserializer);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
2024-05-29 21:52:04 +08:00
|
|
|
BigInt sse_decode_box_autoadd_u_64(SseDeserializer deserializer);
|
2024-02-07 19:32:36 +08:00
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
int sse_decode_i_32(SseDeserializer deserializer);
|
|
|
|
|
2024-02-07 22:19:43 +08:00
|
|
|
@protected
|
|
|
|
List<String> sse_decode_list_String(SseDeserializer deserializer);
|
|
|
|
|
2024-05-01 13:48:37 +08:00
|
|
|
@protected
|
|
|
|
List<int> sse_decode_list_prim_u_8_loose(SseDeserializer deserializer);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
Uint8List sse_decode_list_prim_u_8_strict(SseDeserializer deserializer);
|
|
|
|
|
2024-02-07 00:20:06 +08:00
|
|
|
@protected
|
|
|
|
List<(String, String)> sse_decode_list_record_string_string(
|
|
|
|
SseDeserializer deserializer);
|
|
|
|
|
2024-03-10 20:28:24 +08:00
|
|
|
@protected
|
|
|
|
MyHttpVersion sse_decode_my_http_version(SseDeserializer deserializer);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
|
|
|
MyMethod sse_decode_my_method(SseDeserializer deserializer);
|
|
|
|
|
2024-02-07 00:20:06 +08:00
|
|
|
@protected
|
|
|
|
Map<String, String>? sse_decode_opt_Map_String_String(
|
|
|
|
SseDeserializer deserializer);
|
|
|
|
|
2024-03-12 20:07:06 +08:00
|
|
|
@protected
|
|
|
|
String? sse_decode_opt_String(SseDeserializer deserializer);
|
|
|
|
|
2024-11-03 15:57:37 +08:00
|
|
|
@protected
|
|
|
|
bool? sse_decode_opt_box_autoadd_bool(SseDeserializer deserializer);
|
|
|
|
|
2024-02-07 00:20:06 +08:00
|
|
|
@protected
|
2024-05-29 21:52:04 +08:00
|
|
|
BigInt? sse_decode_opt_box_autoadd_u_64(SseDeserializer deserializer);
|
2024-02-07 19:32:36 +08:00
|
|
|
|
|
|
|
@protected
|
|
|
|
Uint8List? sse_decode_opt_list_prim_u_8_strict(SseDeserializer deserializer);
|
2024-02-07 00:20:06 +08:00
|
|
|
|
|
|
|
@protected
|
|
|
|
(String, String) sse_decode_record_string_string(
|
|
|
|
SseDeserializer deserializer);
|
|
|
|
|
2024-04-16 22:34:50 +08:00
|
|
|
@protected
|
|
|
|
RsProcessStreamData sse_decode_rs_process_stream_data(
|
|
|
|
SseDeserializer deserializer);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
RsProcessStreamDataType sse_decode_rs_process_stream_data_type(
|
|
|
|
SseDeserializer deserializer);
|
|
|
|
|
2024-05-01 13:48:37 +08:00
|
|
|
@protected
|
|
|
|
RsiLauncherAsarData sse_decode_rsi_launcher_asar_data(
|
|
|
|
SseDeserializer deserializer);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
|
|
|
RustHttpResponse sse_decode_rust_http_response(SseDeserializer deserializer);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
int sse_decode_u_16(SseDeserializer deserializer);
|
|
|
|
|
2024-04-16 22:34:50 +08:00
|
|
|
@protected
|
|
|
|
int sse_decode_u_32(SseDeserializer deserializer);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
2024-05-29 21:52:04 +08:00
|
|
|
BigInt sse_decode_u_64(SseDeserializer deserializer);
|
2024-02-06 20:19:53 +08:00
|
|
|
|
|
|
|
@protected
|
|
|
|
int sse_decode_u_8(SseDeserializer deserializer);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
void sse_decode_unit(SseDeserializer deserializer);
|
|
|
|
|
2024-03-13 22:41:28 +08:00
|
|
|
@protected
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_AnyhowException(
|
|
|
|
AnyhowException raw) {
|
|
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
|
|
throw UnimplementedError();
|
|
|
|
}
|
|
|
|
|
|
|
|
@protected
|
|
|
|
ffi.Pointer<wire_cst_list_record_string_string> cst_encode_Map_String_String(
|
|
|
|
Map<String, String> raw) {
|
|
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
|
|
return cst_encode_list_record_string_string(
|
|
|
|
raw.entries.map((e) => (e.key, e.value)).toList());
|
|
|
|
}
|
|
|
|
|
2024-04-11 19:52:13 +08:00
|
|
|
@protected
|
2024-04-16 22:34:50 +08:00
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict>
|
|
|
|
cst_encode_StreamSink_rs_process_stream_data_Dco(
|
|
|
|
RustStreamSink<RsProcessStreamData> raw) {
|
2024-04-11 19:52:13 +08:00
|
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
|
|
return cst_encode_String(raw.setupAndSerialize(
|
|
|
|
codec: DcoCodec(
|
2024-06-16 09:07:22 +08:00
|
|
|
decodeSuccessData: dco_decode_rs_process_stream_data,
|
|
|
|
decodeErrorData: dco_decode_AnyhowException,
|
|
|
|
)));
|
2024-04-11 19:52:13 +08:00
|
|
|
}
|
|
|
|
|
2024-03-13 22:41:28 +08:00
|
|
|
@protected
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_String(String raw) {
|
|
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
|
|
return cst_encode_list_prim_u_8_strict(utf8.encoder.convert(raw));
|
|
|
|
}
|
|
|
|
|
2024-11-03 15:57:37 +08:00
|
|
|
@protected
|
|
|
|
ffi.Pointer<ffi.Bool> cst_encode_box_autoadd_bool(bool raw) {
|
|
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
|
|
return wire.cst_new_box_autoadd_bool(cst_encode_bool(raw));
|
|
|
|
}
|
|
|
|
|
2024-05-01 13:48:37 +08:00
|
|
|
@protected
|
|
|
|
ffi.Pointer<wire_cst_rsi_launcher_asar_data>
|
|
|
|
cst_encode_box_autoadd_rsi_launcher_asar_data(RsiLauncherAsarData raw) {
|
|
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
|
|
final ptr = wire.cst_new_box_autoadd_rsi_launcher_asar_data();
|
|
|
|
cst_api_fill_to_wire_rsi_launcher_asar_data(raw, ptr.ref);
|
|
|
|
return ptr;
|
|
|
|
}
|
|
|
|
|
2024-03-13 22:41:28 +08:00
|
|
|
@protected
|
2024-05-29 21:52:04 +08:00
|
|
|
ffi.Pointer<ffi.Uint64> cst_encode_box_autoadd_u_64(BigInt raw) {
|
2024-03-13 22:41:28 +08:00
|
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
|
|
return wire.cst_new_box_autoadd_u_64(cst_encode_u_64(raw));
|
|
|
|
}
|
|
|
|
|
|
|
|
@protected
|
|
|
|
ffi.Pointer<wire_cst_list_String> cst_encode_list_String(List<String> raw) {
|
|
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
|
|
final ans = wire.cst_new_list_String(raw.length);
|
|
|
|
for (var i = 0; i < raw.length; ++i) {
|
|
|
|
ans.ref.ptr[i] = cst_encode_String(raw[i]);
|
|
|
|
}
|
|
|
|
return ans;
|
|
|
|
}
|
|
|
|
|
2024-05-01 13:48:37 +08:00
|
|
|
@protected
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_loose> cst_encode_list_prim_u_8_loose(
|
|
|
|
List<int> raw) {
|
|
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
|
|
final ans = wire.cst_new_list_prim_u_8_loose(raw.length);
|
|
|
|
ans.ref.ptr.asTypedList(raw.length).setAll(0, raw);
|
|
|
|
return ans;
|
|
|
|
}
|
|
|
|
|
2024-03-13 22:41:28 +08:00
|
|
|
@protected
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_list_prim_u_8_strict(
|
|
|
|
Uint8List raw) {
|
|
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
|
|
final ans = wire.cst_new_list_prim_u_8_strict(raw.length);
|
|
|
|
ans.ref.ptr.asTypedList(raw.length).setAll(0, raw);
|
|
|
|
return ans;
|
|
|
|
}
|
|
|
|
|
|
|
|
@protected
|
|
|
|
ffi.Pointer<wire_cst_list_record_string_string>
|
|
|
|
cst_encode_list_record_string_string(List<(String, String)> raw) {
|
|
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
|
|
final ans = wire.cst_new_list_record_string_string(raw.length);
|
|
|
|
for (var i = 0; i < raw.length; ++i) {
|
|
|
|
cst_api_fill_to_wire_record_string_string(raw[i], ans.ref.ptr[i]);
|
|
|
|
}
|
|
|
|
return ans;
|
|
|
|
}
|
|
|
|
|
|
|
|
@protected
|
|
|
|
ffi.Pointer<wire_cst_list_record_string_string>
|
|
|
|
cst_encode_opt_Map_String_String(Map<String, String>? raw) {
|
|
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
|
|
return raw == null ? ffi.nullptr : cst_encode_Map_String_String(raw);
|
|
|
|
}
|
|
|
|
|
|
|
|
@protected
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_encode_opt_String(
|
|
|
|
String? raw) {
|
|
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
|
|
return raw == null ? ffi.nullptr : cst_encode_String(raw);
|
|
|
|
}
|
|
|
|
|
2024-11-03 15:57:37 +08:00
|
|
|
@protected
|
|
|
|
ffi.Pointer<ffi.Bool> cst_encode_opt_box_autoadd_bool(bool? raw) {
|
|
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
|
|
return raw == null ? ffi.nullptr : cst_encode_box_autoadd_bool(raw);
|
|
|
|
}
|
|
|
|
|
2024-03-13 22:41:28 +08:00
|
|
|
@protected
|
2024-05-29 21:52:04 +08:00
|
|
|
ffi.Pointer<ffi.Uint64> cst_encode_opt_box_autoadd_u_64(BigInt? raw) {
|
2024-03-13 22:41:28 +08:00
|
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
|
|
return raw == null ? ffi.nullptr : cst_encode_box_autoadd_u_64(raw);
|
|
|
|
}
|
|
|
|
|
|
|
|
@protected
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict>
|
|
|
|
cst_encode_opt_list_prim_u_8_strict(Uint8List? raw) {
|
|
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
|
|
|
return raw == null ? ffi.nullptr : cst_encode_list_prim_u_8_strict(raw);
|
|
|
|
}
|
|
|
|
|
|
|
|
@protected
|
2024-05-29 21:52:04 +08:00
|
|
|
int cst_encode_u_64(BigInt raw) {
|
2024-03-13 22:41:28 +08:00
|
|
|
// Codec=Cst (C-struct based), see doc to use other codecs
|
2024-05-29 21:52:04 +08:00
|
|
|
return raw.toSigned(64).toInt();
|
2024-03-13 22:41:28 +08:00
|
|
|
}
|
|
|
|
|
2024-05-01 13:48:37 +08:00
|
|
|
@protected
|
|
|
|
void cst_api_fill_to_wire_box_autoadd_rsi_launcher_asar_data(
|
|
|
|
RsiLauncherAsarData apiObj,
|
|
|
|
ffi.Pointer<wire_cst_rsi_launcher_asar_data> wireObj) {
|
|
|
|
cst_api_fill_to_wire_rsi_launcher_asar_data(apiObj, wireObj.ref);
|
|
|
|
}
|
|
|
|
|
2024-03-13 22:41:28 +08:00
|
|
|
@protected
|
|
|
|
void cst_api_fill_to_wire_record_string_string(
|
|
|
|
(String, String) apiObj, wire_cst_record_string_string wireObj) {
|
|
|
|
wireObj.field0 = cst_encode_String(apiObj.$1);
|
|
|
|
wireObj.field1 = cst_encode_String(apiObj.$2);
|
|
|
|
}
|
|
|
|
|
2024-04-16 22:34:50 +08:00
|
|
|
@protected
|
|
|
|
void cst_api_fill_to_wire_rs_process_stream_data(
|
|
|
|
RsProcessStreamData apiObj, wire_cst_rs_process_stream_data wireObj) {
|
|
|
|
wireObj.data_type = cst_encode_rs_process_stream_data_type(apiObj.dataType);
|
|
|
|
wireObj.data = cst_encode_String(apiObj.data);
|
2024-04-17 21:40:08 +08:00
|
|
|
wireObj.rs_pid = cst_encode_u_32(apiObj.rsPid);
|
2024-04-16 22:34:50 +08:00
|
|
|
}
|
|
|
|
|
2024-05-01 13:48:37 +08:00
|
|
|
@protected
|
|
|
|
void cst_api_fill_to_wire_rsi_launcher_asar_data(
|
|
|
|
RsiLauncherAsarData apiObj, wire_cst_rsi_launcher_asar_data wireObj) {
|
|
|
|
wireObj.asar_path = cst_encode_String(apiObj.asarPath);
|
|
|
|
wireObj.main_js_path = cst_encode_String(apiObj.mainJsPath);
|
|
|
|
wireObj.main_js_content =
|
|
|
|
cst_encode_list_prim_u_8_strict(apiObj.mainJsContent);
|
|
|
|
}
|
|
|
|
|
2024-03-13 22:41:28 +08:00
|
|
|
@protected
|
|
|
|
void cst_api_fill_to_wire_rust_http_response(
|
|
|
|
RustHttpResponse apiObj, wire_cst_rust_http_response wireObj) {
|
|
|
|
wireObj.status_code = cst_encode_u_16(apiObj.statusCode);
|
|
|
|
wireObj.headers = cst_encode_Map_String_String(apiObj.headers);
|
|
|
|
wireObj.url = cst_encode_String(apiObj.url);
|
|
|
|
wireObj.content_length =
|
|
|
|
cst_encode_opt_box_autoadd_u_64(apiObj.contentLength);
|
|
|
|
wireObj.version = cst_encode_my_http_version(apiObj.version);
|
|
|
|
wireObj.remote_addr = cst_encode_String(apiObj.remoteAddr);
|
|
|
|
wireObj.data = cst_encode_opt_list_prim_u_8_strict(apiObj.data);
|
|
|
|
}
|
|
|
|
|
2024-04-28 21:50:36 +08:00
|
|
|
@protected
|
|
|
|
bool cst_encode_bool(bool raw);
|
|
|
|
|
2024-03-13 22:41:28 +08:00
|
|
|
@protected
|
|
|
|
int cst_encode_i_32(int raw);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
int cst_encode_my_http_version(MyHttpVersion raw);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
int cst_encode_my_method(MyMethod raw);
|
|
|
|
|
2024-04-16 22:34:50 +08:00
|
|
|
@protected
|
|
|
|
int cst_encode_rs_process_stream_data_type(RsProcessStreamDataType raw);
|
|
|
|
|
2024-03-13 22:41:28 +08:00
|
|
|
@protected
|
|
|
|
int cst_encode_u_16(int raw);
|
|
|
|
|
2024-04-16 22:34:50 +08:00
|
|
|
@protected
|
|
|
|
int cst_encode_u_32(int raw);
|
|
|
|
|
2024-03-13 22:41:28 +08:00
|
|
|
@protected
|
|
|
|
int cst_encode_u_8(int raw);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
void cst_encode_unit(void raw);
|
|
|
|
|
2024-02-15 21:24:39 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_AnyhowException(
|
|
|
|
AnyhowException self, SseSerializer serializer);
|
|
|
|
|
2024-02-07 00:20:06 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_Map_String_String(
|
|
|
|
Map<String, String> self, SseSerializer serializer);
|
|
|
|
|
2024-04-16 22:34:50 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_StreamSink_rs_process_stream_data_Dco(
|
|
|
|
RustStreamSink<RsProcessStreamData> self, SseSerializer serializer);
|
2024-04-11 19:52:13 +08:00
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_String(String self, SseSerializer serializer);
|
|
|
|
|
2024-04-28 21:50:36 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_bool(bool self, SseSerializer serializer);
|
|
|
|
|
2024-11-03 15:57:37 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_box_autoadd_bool(bool self, SseSerializer serializer);
|
|
|
|
|
2024-05-01 13:48:37 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_box_autoadd_rsi_launcher_asar_data(
|
|
|
|
RsiLauncherAsarData self, SseSerializer serializer);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
2024-05-29 21:52:04 +08:00
|
|
|
void sse_encode_box_autoadd_u_64(BigInt self, SseSerializer serializer);
|
2024-02-07 19:32:36 +08:00
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_i_32(int self, SseSerializer serializer);
|
|
|
|
|
2024-02-07 22:19:43 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_list_String(List<String> self, SseSerializer serializer);
|
|
|
|
|
2024-05-01 13:48:37 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_list_prim_u_8_loose(List<int> self, SseSerializer serializer);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_list_prim_u_8_strict(
|
|
|
|
Uint8List self, SseSerializer serializer);
|
|
|
|
|
2024-02-07 00:20:06 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_list_record_string_string(
|
|
|
|
List<(String, String)> self, SseSerializer serializer);
|
|
|
|
|
2024-03-10 20:28:24 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_my_http_version(MyHttpVersion self, SseSerializer serializer);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_my_method(MyMethod self, SseSerializer serializer);
|
|
|
|
|
2024-02-07 00:20:06 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_opt_Map_String_String(
|
|
|
|
Map<String, String>? self, SseSerializer serializer);
|
|
|
|
|
2024-03-12 20:07:06 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_opt_String(String? self, SseSerializer serializer);
|
|
|
|
|
2024-11-03 15:57:37 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_opt_box_autoadd_bool(bool? self, SseSerializer serializer);
|
|
|
|
|
2024-02-07 00:20:06 +08:00
|
|
|
@protected
|
2024-05-29 21:52:04 +08:00
|
|
|
void sse_encode_opt_box_autoadd_u_64(BigInt? self, SseSerializer serializer);
|
2024-02-07 19:32:36 +08:00
|
|
|
|
|
|
|
@protected
|
|
|
|
void sse_encode_opt_list_prim_u_8_strict(
|
|
|
|
Uint8List? self, SseSerializer serializer);
|
2024-02-07 00:20:06 +08:00
|
|
|
|
|
|
|
@protected
|
|
|
|
void sse_encode_record_string_string(
|
|
|
|
(String, String) self, SseSerializer serializer);
|
|
|
|
|
2024-04-16 22:34:50 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_rs_process_stream_data(
|
|
|
|
RsProcessStreamData self, SseSerializer serializer);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
void sse_encode_rs_process_stream_data_type(
|
|
|
|
RsProcessStreamDataType self, SseSerializer serializer);
|
|
|
|
|
2024-05-01 13:48:37 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_rsi_launcher_asar_data(
|
|
|
|
RsiLauncherAsarData self, SseSerializer serializer);
|
|
|
|
|
2024-02-07 19:32:36 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_rust_http_response(
|
|
|
|
RustHttpResponse self, SseSerializer serializer);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
void sse_encode_u_16(int self, SseSerializer serializer);
|
|
|
|
|
2024-04-16 22:34:50 +08:00
|
|
|
@protected
|
|
|
|
void sse_encode_u_32(int self, SseSerializer serializer);
|
|
|
|
|
2024-02-06 20:19:53 +08:00
|
|
|
@protected
|
2024-05-29 21:52:04 +08:00
|
|
|
void sse_encode_u_64(BigInt self, SseSerializer serializer);
|
2024-02-06 20:19:53 +08:00
|
|
|
|
|
|
|
@protected
|
|
|
|
void sse_encode_u_8(int self, SseSerializer serializer);
|
|
|
|
|
|
|
|
@protected
|
|
|
|
void sse_encode_unit(void self, SseSerializer serializer);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Section: wire_class
|
|
|
|
|
2024-03-13 22:41:28 +08:00
|
|
|
// ignore_for_file: camel_case_types, non_constant_identifier_names, avoid_positional_boolean_parameters, annotate_overrides, constant_identifier_names
|
|
|
|
// AUTO GENERATED FILE, DO NOT EDIT.
|
|
|
|
//
|
|
|
|
// Generated by `package:ffigen`.
|
|
|
|
// ignore_for_file: type=lint
|
|
|
|
|
|
|
|
/// generated by flutter_rust_bridge
|
2024-02-06 20:19:53 +08:00
|
|
|
class RustLibWire implements BaseWire {
|
|
|
|
factory RustLibWire.fromExternalLibrary(ExternalLibrary lib) =>
|
|
|
|
RustLibWire(lib.ffiDynamicLibrary);
|
|
|
|
|
|
|
|
/// Holds the symbol lookup function.
|
|
|
|
final ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName)
|
|
|
|
_lookup;
|
|
|
|
|
|
|
|
/// The symbols are looked up in [dynamicLibrary].
|
|
|
|
RustLibWire(ffi.DynamicLibrary dynamicLibrary)
|
|
|
|
: _lookup = dynamicLibrary.lookup;
|
2024-03-13 22:41:28 +08:00
|
|
|
|
|
|
|
/// The symbols are looked up with [lookup].
|
|
|
|
RustLibWire.fromLookup(
|
|
|
|
ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName)
|
|
|
|
lookup)
|
|
|
|
: _lookup = lookup;
|
|
|
|
|
|
|
|
void store_dart_post_cobject(
|
|
|
|
DartPostCObjectFnType ptr,
|
|
|
|
) {
|
|
|
|
return _store_dart_post_cobject(
|
|
|
|
ptr,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
late final _store_dart_post_cobjectPtr =
|
|
|
|
_lookup<ffi.NativeFunction<ffi.Void Function(DartPostCObjectFnType)>>(
|
|
|
|
'store_dart_post_cobject');
|
|
|
|
late final _store_dart_post_cobject = _store_dart_post_cobjectPtr
|
|
|
|
.asFunction<void Function(DartPostCObjectFnType)>();
|
|
|
|
|
2024-05-22 20:05:50 +08:00
|
|
|
void wire__crate__api__asar_api__get_rsi_launcher_asar_data(
|
2024-05-01 13:48:37 +08:00
|
|
|
int port_,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> asar_path,
|
|
|
|
) {
|
2024-05-22 20:05:50 +08:00
|
|
|
return _wire__crate__api__asar_api__get_rsi_launcher_asar_data(
|
2024-05-01 13:48:37 +08:00
|
|
|
port_,
|
|
|
|
asar_path,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2024-05-22 20:05:50 +08:00
|
|
|
late final _wire__crate__api__asar_api__get_rsi_launcher_asar_dataPtr = _lookup<
|
2024-05-01 13:48:37 +08:00
|
|
|
ffi.NativeFunction<
|
|
|
|
ffi.Void Function(
|
|
|
|
ffi.Int64, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>(
|
2024-05-22 20:05:50 +08:00
|
|
|
'frbgen_starcitizen_doctor_wire__crate__api__asar_api__get_rsi_launcher_asar_data');
|
|
|
|
late final _wire__crate__api__asar_api__get_rsi_launcher_asar_data =
|
|
|
|
_wire__crate__api__asar_api__get_rsi_launcher_asar_dataPtr.asFunction<
|
2024-05-01 13:48:37 +08:00
|
|
|
void Function(int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>();
|
|
|
|
|
2024-05-22 20:05:50 +08:00
|
|
|
void wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js(
|
2024-05-01 13:48:37 +08:00
|
|
|
int port_,
|
|
|
|
ffi.Pointer<wire_cst_rsi_launcher_asar_data> that,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_loose> content,
|
|
|
|
) {
|
2024-05-22 20:05:50 +08:00
|
|
|
return _wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js(
|
2024-05-01 13:48:37 +08:00
|
|
|
port_,
|
|
|
|
that,
|
|
|
|
content,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2024-05-22 20:05:50 +08:00
|
|
|
late final _wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_jsPtr =
|
|
|
|
_lookup<
|
|
|
|
ffi.NativeFunction<
|
|
|
|
ffi.Void Function(
|
|
|
|
ffi.Int64,
|
|
|
|
ffi.Pointer<wire_cst_rsi_launcher_asar_data>,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_loose>)>>(
|
|
|
|
'frbgen_starcitizen_doctor_wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js');
|
|
|
|
late final _wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_js =
|
|
|
|
_wire__crate__api__asar_api__rsi_launcher_asar_data_write_main_jsPtr
|
|
|
|
.asFunction<
|
|
|
|
void Function(int, ffi.Pointer<wire_cst_rsi_launcher_asar_data>,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_loose>)>();
|
|
|
|
|
|
|
|
void wire__crate__api__http_api__dns_lookup_ips(
|
2024-03-13 22:41:28 +08:00
|
|
|
int port_,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> host,
|
|
|
|
) {
|
2024-05-22 20:05:50 +08:00
|
|
|
return _wire__crate__api__http_api__dns_lookup_ips(
|
2024-03-13 22:41:28 +08:00
|
|
|
port_,
|
|
|
|
host,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2024-05-22 20:05:50 +08:00
|
|
|
late final _wire__crate__api__http_api__dns_lookup_ipsPtr = _lookup<
|
2024-03-13 22:41:28 +08:00
|
|
|
ffi.NativeFunction<
|
|
|
|
ffi.Void Function(
|
|
|
|
ffi.Int64, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>(
|
2024-05-22 20:05:50 +08:00
|
|
|
'frbgen_starcitizen_doctor_wire__crate__api__http_api__dns_lookup_ips');
|
|
|
|
late final _wire__crate__api__http_api__dns_lookup_ips =
|
|
|
|
_wire__crate__api__http_api__dns_lookup_ipsPtr.asFunction<
|
|
|
|
void Function(int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>();
|
2024-03-13 22:41:28 +08:00
|
|
|
|
2024-05-22 20:05:50 +08:00
|
|
|
void wire__crate__api__http_api__dns_lookup_txt(
|
2024-03-13 22:41:28 +08:00
|
|
|
int port_,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> host,
|
|
|
|
) {
|
2024-05-22 20:05:50 +08:00
|
|
|
return _wire__crate__api__http_api__dns_lookup_txt(
|
2024-03-13 22:41:28 +08:00
|
|
|
port_,
|
|
|
|
host,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2024-05-22 20:05:50 +08:00
|
|
|
late final _wire__crate__api__http_api__dns_lookup_txtPtr = _lookup<
|
2024-03-13 22:41:28 +08:00
|
|
|
ffi.NativeFunction<
|
|
|
|
ffi.Void Function(
|
|
|
|
ffi.Int64, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>(
|
2024-05-22 20:05:50 +08:00
|
|
|
'frbgen_starcitizen_doctor_wire__crate__api__http_api__dns_lookup_txt');
|
|
|
|
late final _wire__crate__api__http_api__dns_lookup_txt =
|
|
|
|
_wire__crate__api__http_api__dns_lookup_txtPtr.asFunction<
|
|
|
|
void Function(int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>();
|
2024-03-13 22:41:28 +08:00
|
|
|
|
2024-05-22 20:05:50 +08:00
|
|
|
void wire__crate__api__http_api__fetch(
|
2024-03-13 22:41:28 +08:00
|
|
|
int port_,
|
|
|
|
int method,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> url,
|
|
|
|
ffi.Pointer<wire_cst_list_record_string_string> headers,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> input_data,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> with_ip_address,
|
2024-11-03 15:57:37 +08:00
|
|
|
ffi.Pointer<ffi.Bool> with_custom_dns,
|
2024-03-13 22:41:28 +08:00
|
|
|
) {
|
2024-05-22 20:05:50 +08:00
|
|
|
return _wire__crate__api__http_api__fetch(
|
2024-03-13 22:41:28 +08:00
|
|
|
port_,
|
|
|
|
method,
|
|
|
|
url,
|
|
|
|
headers,
|
|
|
|
input_data,
|
|
|
|
with_ip_address,
|
2024-11-03 15:57:37 +08:00
|
|
|
with_custom_dns,
|
2024-03-13 22:41:28 +08:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2024-05-22 20:05:50 +08:00
|
|
|
late final _wire__crate__api__http_api__fetchPtr = _lookup<
|
2024-03-13 22:41:28 +08:00
|
|
|
ffi.NativeFunction<
|
|
|
|
ffi.Void Function(
|
|
|
|
ffi.Int64,
|
|
|
|
ffi.Int32,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
|
|
|
|
ffi.Pointer<wire_cst_list_record_string_string>,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
|
2024-11-03 15:57:37 +08:00
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
|
|
|
|
ffi.Pointer<ffi.Bool>)>>(
|
2024-05-22 20:05:50 +08:00
|
|
|
'frbgen_starcitizen_doctor_wire__crate__api__http_api__fetch');
|
|
|
|
late final _wire__crate__api__http_api__fetch =
|
|
|
|
_wire__crate__api__http_api__fetchPtr.asFunction<
|
|
|
|
void Function(
|
|
|
|
int,
|
|
|
|
int,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
|
|
|
|
ffi.Pointer<wire_cst_list_record_string_string>,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
|
2024-11-03 15:57:37 +08:00
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
|
|
|
|
ffi.Pointer<ffi.Bool>)>();
|
2024-05-22 20:05:50 +08:00
|
|
|
|
|
|
|
void wire__crate__api__http_api__set_default_header(
|
2024-03-13 22:41:28 +08:00
|
|
|
int port_,
|
|
|
|
ffi.Pointer<wire_cst_list_record_string_string> headers,
|
|
|
|
) {
|
2024-05-22 20:05:50 +08:00
|
|
|
return _wire__crate__api__http_api__set_default_header(
|
2024-03-13 22:41:28 +08:00
|
|
|
port_,
|
|
|
|
headers,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2024-05-22 20:05:50 +08:00
|
|
|
late final _wire__crate__api__http_api__set_default_headerPtr = _lookup<
|
2024-03-13 22:41:28 +08:00
|
|
|
ffi.NativeFunction<
|
|
|
|
ffi.Void Function(
|
|
|
|
ffi.Int64, ffi.Pointer<wire_cst_list_record_string_string>)>>(
|
2024-05-22 20:05:50 +08:00
|
|
|
'frbgen_starcitizen_doctor_wire__crate__api__http_api__set_default_header');
|
|
|
|
late final _wire__crate__api__http_api__set_default_header =
|
|
|
|
_wire__crate__api__http_api__set_default_headerPtr.asFunction<
|
|
|
|
void Function(
|
|
|
|
int, ffi.Pointer<wire_cst_list_record_string_string>)>();
|
2024-03-13 22:41:28 +08:00
|
|
|
|
2024-05-22 20:05:50 +08:00
|
|
|
void wire__crate__api__rs_process__start(
|
2024-03-13 22:41:28 +08:00
|
|
|
int port_,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> executable,
|
|
|
|
ffi.Pointer<wire_cst_list_String> arguments,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> working_directory,
|
2024-04-11 19:52:13 +08:00
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> stream_sink,
|
2024-03-13 22:41:28 +08:00
|
|
|
) {
|
2024-05-22 20:05:50 +08:00
|
|
|
return _wire__crate__api__rs_process__start(
|
2024-03-13 22:41:28 +08:00
|
|
|
port_,
|
|
|
|
executable,
|
|
|
|
arguments,
|
|
|
|
working_directory,
|
2024-04-11 19:52:13 +08:00
|
|
|
stream_sink,
|
2024-03-13 22:41:28 +08:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2024-05-22 20:05:50 +08:00
|
|
|
late final _wire__crate__api__rs_process__startPtr = _lookup<
|
2024-03-13 22:41:28 +08:00
|
|
|
ffi.NativeFunction<
|
|
|
|
ffi.Void Function(
|
|
|
|
ffi.Int64,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
|
|
|
|
ffi.Pointer<wire_cst_list_String>,
|
2024-04-11 19:52:13 +08:00
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
|
2024-03-13 22:41:28 +08:00
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>(
|
2024-05-22 20:05:50 +08:00
|
|
|
'frbgen_starcitizen_doctor_wire__crate__api__rs_process__start');
|
|
|
|
late final _wire__crate__api__rs_process__start =
|
|
|
|
_wire__crate__api__rs_process__startPtr.asFunction<
|
|
|
|
void Function(
|
|
|
|
int,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
|
|
|
|
ffi.Pointer<wire_cst_list_String>,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict>)>();
|
|
|
|
|
|
|
|
void wire__crate__api__rs_process__write(
|
2024-04-16 22:34:50 +08:00
|
|
|
int port_,
|
2024-04-17 21:40:08 +08:00
|
|
|
int rs_pid,
|
2024-04-16 22:34:50 +08:00
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> data,
|
|
|
|
) {
|
2024-05-22 20:05:50 +08:00
|
|
|
return _wire__crate__api__rs_process__write(
|
2024-04-16 22:34:50 +08:00
|
|
|
port_,
|
2024-04-17 21:40:08 +08:00
|
|
|
rs_pid,
|
2024-04-16 22:34:50 +08:00
|
|
|
data,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2024-05-22 20:05:50 +08:00
|
|
|
late final _wire__crate__api__rs_process__writePtr = _lookup<
|
2024-04-16 22:34:50 +08:00
|
|
|
ffi.NativeFunction<
|
2024-04-17 21:40:08 +08:00
|
|
|
ffi.Void Function(ffi.Int64, ffi.Uint32,
|
2024-04-16 22:34:50 +08:00
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>(
|
2024-05-22 20:05:50 +08:00
|
|
|
'frbgen_starcitizen_doctor_wire__crate__api__rs_process__write');
|
|
|
|
late final _wire__crate__api__rs_process__write =
|
|
|
|
_wire__crate__api__rs_process__writePtr.asFunction<
|
|
|
|
void Function(
|
|
|
|
int, int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>();
|
2024-04-16 22:34:50 +08:00
|
|
|
|
2024-05-22 20:05:50 +08:00
|
|
|
void wire__crate__api__win32_api__send_notify(
|
2024-04-28 22:28:48 +08:00
|
|
|
int port_,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> summary,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> body,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> app_name,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> app_id,
|
|
|
|
) {
|
2024-05-22 20:05:50 +08:00
|
|
|
return _wire__crate__api__win32_api__send_notify(
|
2024-04-28 22:28:48 +08:00
|
|
|
port_,
|
|
|
|
summary,
|
|
|
|
body,
|
|
|
|
app_name,
|
|
|
|
app_id,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2024-05-22 20:05:50 +08:00
|
|
|
late final _wire__crate__api__win32_api__send_notifyPtr = _lookup<
|
2024-04-28 22:28:48 +08:00
|
|
|
ffi.NativeFunction<
|
|
|
|
ffi.Void Function(
|
|
|
|
ffi.Int64,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>(
|
2024-05-22 20:05:50 +08:00
|
|
|
'frbgen_starcitizen_doctor_wire__crate__api__win32_api__send_notify');
|
|
|
|
late final _wire__crate__api__win32_api__send_notify =
|
|
|
|
_wire__crate__api__win32_api__send_notifyPtr.asFunction<
|
|
|
|
void Function(
|
|
|
|
int,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict>,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict>)>();
|
|
|
|
|
|
|
|
void wire__crate__api__win32_api__set_foreground_window(
|
2024-04-28 22:28:48 +08:00
|
|
|
int port_,
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> window_name,
|
|
|
|
) {
|
2024-05-22 20:05:50 +08:00
|
|
|
return _wire__crate__api__win32_api__set_foreground_window(
|
2024-04-28 22:28:48 +08:00
|
|
|
port_,
|
|
|
|
window_name,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2024-05-22 20:05:50 +08:00
|
|
|
late final _wire__crate__api__win32_api__set_foreground_windowPtr = _lookup<
|
2024-04-28 22:28:48 +08:00
|
|
|
ffi.NativeFunction<
|
|
|
|
ffi.Void Function(
|
|
|
|
ffi.Int64, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>>(
|
2024-05-22 20:05:50 +08:00
|
|
|
'frbgen_starcitizen_doctor_wire__crate__api__win32_api__set_foreground_window');
|
|
|
|
late final _wire__crate__api__win32_api__set_foreground_window =
|
|
|
|
_wire__crate__api__win32_api__set_foreground_windowPtr.asFunction<
|
2024-04-28 22:28:48 +08:00
|
|
|
void Function(int, ffi.Pointer<wire_cst_list_prim_u_8_strict>)>();
|
|
|
|
|
2024-11-03 15:57:37 +08:00
|
|
|
ffi.Pointer<ffi.Bool> cst_new_box_autoadd_bool(
|
|
|
|
bool value,
|
|
|
|
) {
|
|
|
|
return _cst_new_box_autoadd_bool(
|
|
|
|
value,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
late final _cst_new_box_autoadd_boolPtr =
|
|
|
|
_lookup<ffi.NativeFunction<ffi.Pointer<ffi.Bool> Function(ffi.Bool)>>(
|
|
|
|
'frbgen_starcitizen_doctor_cst_new_box_autoadd_bool');
|
|
|
|
late final _cst_new_box_autoadd_bool = _cst_new_box_autoadd_boolPtr
|
|
|
|
.asFunction<ffi.Pointer<ffi.Bool> Function(bool)>();
|
|
|
|
|
2024-05-01 13:48:37 +08:00
|
|
|
ffi.Pointer<wire_cst_rsi_launcher_asar_data>
|
|
|
|
cst_new_box_autoadd_rsi_launcher_asar_data() {
|
|
|
|
return _cst_new_box_autoadd_rsi_launcher_asar_data();
|
|
|
|
}
|
|
|
|
|
|
|
|
late final _cst_new_box_autoadd_rsi_launcher_asar_dataPtr = _lookup<
|
|
|
|
ffi.NativeFunction<
|
|
|
|
ffi.Pointer<wire_cst_rsi_launcher_asar_data> Function()>>(
|
|
|
|
'frbgen_starcitizen_doctor_cst_new_box_autoadd_rsi_launcher_asar_data');
|
|
|
|
late final _cst_new_box_autoadd_rsi_launcher_asar_data =
|
|
|
|
_cst_new_box_autoadd_rsi_launcher_asar_dataPtr.asFunction<
|
|
|
|
ffi.Pointer<wire_cst_rsi_launcher_asar_data> Function()>();
|
|
|
|
|
2024-03-13 22:41:28 +08:00
|
|
|
ffi.Pointer<ffi.Uint64> cst_new_box_autoadd_u_64(
|
|
|
|
int value,
|
|
|
|
) {
|
|
|
|
return _cst_new_box_autoadd_u_64(
|
|
|
|
value,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
late final _cst_new_box_autoadd_u_64Ptr =
|
|
|
|
_lookup<ffi.NativeFunction<ffi.Pointer<ffi.Uint64> Function(ffi.Uint64)>>(
|
|
|
|
'frbgen_starcitizen_doctor_cst_new_box_autoadd_u_64');
|
|
|
|
late final _cst_new_box_autoadd_u_64 = _cst_new_box_autoadd_u_64Ptr
|
|
|
|
.asFunction<ffi.Pointer<ffi.Uint64> Function(int)>();
|
|
|
|
|
|
|
|
ffi.Pointer<wire_cst_list_String> cst_new_list_String(
|
|
|
|
int len,
|
|
|
|
) {
|
|
|
|
return _cst_new_list_String(
|
|
|
|
len,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
late final _cst_new_list_StringPtr = _lookup<
|
|
|
|
ffi.NativeFunction<
|
|
|
|
ffi.Pointer<wire_cst_list_String> Function(
|
|
|
|
ffi.Int32)>>('frbgen_starcitizen_doctor_cst_new_list_String');
|
|
|
|
late final _cst_new_list_String = _cst_new_list_StringPtr
|
|
|
|
.asFunction<ffi.Pointer<wire_cst_list_String> Function(int)>();
|
|
|
|
|
2024-05-01 13:48:37 +08:00
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_loose> cst_new_list_prim_u_8_loose(
|
|
|
|
int len,
|
|
|
|
) {
|
|
|
|
return _cst_new_list_prim_u_8_loose(
|
|
|
|
len,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
late final _cst_new_list_prim_u_8_loosePtr = _lookup<
|
|
|
|
ffi.NativeFunction<
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_loose> Function(ffi.Int32)>>(
|
|
|
|
'frbgen_starcitizen_doctor_cst_new_list_prim_u_8_loose');
|
|
|
|
late final _cst_new_list_prim_u_8_loose = _cst_new_list_prim_u_8_loosePtr
|
|
|
|
.asFunction<ffi.Pointer<wire_cst_list_prim_u_8_loose> Function(int)>();
|
|
|
|
|
2024-03-13 22:41:28 +08:00
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> cst_new_list_prim_u_8_strict(
|
|
|
|
int len,
|
|
|
|
) {
|
|
|
|
return _cst_new_list_prim_u_8_strict(
|
|
|
|
len,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
late final _cst_new_list_prim_u_8_strictPtr = _lookup<
|
|
|
|
ffi.NativeFunction<
|
|
|
|
ffi.Pointer<wire_cst_list_prim_u_8_strict> Function(ffi.Int32)>>(
|
|
|
|
'frbgen_starcitizen_doctor_cst_new_list_prim_u_8_strict');
|
|
|
|
late final _cst_new_list_prim_u_8_strict = _cst_new_list_prim_u_8_strictPtr
|
|
|
|
.asFunction<ffi.Pointer<wire_cst_list_prim_u_8_strict> Function(int)>();
|
|
|
|
|
|
|
|
ffi.Pointer<wire_cst_list_record_string_string>
|
|
|
|
cst_new_list_record_string_string(
|
|
|
|
int len,
|
|
|
|
) {
|
|
|
|
return _cst_new_list_record_string_string(
|
|
|
|
len,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
late final _cst_new_list_record_string_stringPtr = _lookup<
|
|
|
|
ffi.NativeFunction<
|
|
|
|
ffi.Pointer<wire_cst_list_record_string_string> Function(
|
|
|
|
ffi.Int32)>>(
|
|
|
|
'frbgen_starcitizen_doctor_cst_new_list_record_string_string');
|
|
|
|
late final _cst_new_list_record_string_string =
|
|
|
|
_cst_new_list_record_string_stringPtr.asFunction<
|
|
|
|
ffi.Pointer<wire_cst_list_record_string_string> Function(int)>();
|
|
|
|
|
|
|
|
int dummy_method_to_enforce_bundling() {
|
|
|
|
return _dummy_method_to_enforce_bundling();
|
|
|
|
}
|
|
|
|
|
|
|
|
late final _dummy_method_to_enforce_bundlingPtr =
|
|
|
|
_lookup<ffi.NativeFunction<ffi.Int64 Function()>>(
|
|
|
|
'dummy_method_to_enforce_bundling');
|
|
|
|
late final _dummy_method_to_enforce_bundling =
|
|
|
|
_dummy_method_to_enforce_bundlingPtr.asFunction<int Function()>();
|
|
|
|
}
|
|
|
|
|
|
|
|
typedef DartPostCObjectFnType
|
|
|
|
= ffi.Pointer<ffi.NativeFunction<DartPostCObjectFnTypeFunction>>;
|
|
|
|
typedef DartPostCObjectFnTypeFunction = ffi.Bool Function(
|
|
|
|
DartPort port_id, ffi.Pointer<ffi.Void> message);
|
|
|
|
typedef DartDartPostCObjectFnTypeFunction = bool Function(
|
|
|
|
DartDartPort port_id, ffi.Pointer<ffi.Void> message);
|
|
|
|
typedef DartPort = ffi.Int64;
|
|
|
|
typedef DartDartPort = int;
|
|
|
|
|
|
|
|
final class wire_cst_list_prim_u_8_strict extends ffi.Struct {
|
|
|
|
external ffi.Pointer<ffi.Uint8> ptr;
|
|
|
|
|
|
|
|
@ffi.Int32()
|
|
|
|
external int len;
|
|
|
|
}
|
|
|
|
|
2024-05-01 13:48:37 +08:00
|
|
|
final class wire_cst_rsi_launcher_asar_data extends ffi.Struct {
|
|
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> asar_path;
|
|
|
|
|
|
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> main_js_path;
|
|
|
|
|
|
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> main_js_content;
|
|
|
|
}
|
|
|
|
|
|
|
|
final class wire_cst_list_prim_u_8_loose extends ffi.Struct {
|
|
|
|
external ffi.Pointer<ffi.Uint8> ptr;
|
|
|
|
|
|
|
|
@ffi.Int32()
|
|
|
|
external int len;
|
|
|
|
}
|
|
|
|
|
2024-03-13 22:41:28 +08:00
|
|
|
final class wire_cst_record_string_string extends ffi.Struct {
|
|
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> field0;
|
|
|
|
|
|
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> field1;
|
|
|
|
}
|
|
|
|
|
|
|
|
final class wire_cst_list_record_string_string extends ffi.Struct {
|
|
|
|
external ffi.Pointer<wire_cst_record_string_string> ptr;
|
|
|
|
|
|
|
|
@ffi.Int32()
|
|
|
|
external int len;
|
|
|
|
}
|
|
|
|
|
|
|
|
final class wire_cst_list_String extends ffi.Struct {
|
|
|
|
external ffi.Pointer<ffi.Pointer<wire_cst_list_prim_u_8_strict>> ptr;
|
|
|
|
|
|
|
|
@ffi.Int32()
|
|
|
|
external int len;
|
|
|
|
}
|
|
|
|
|
2024-04-16 22:34:50 +08:00
|
|
|
final class wire_cst_rs_process_stream_data extends ffi.Struct {
|
|
|
|
@ffi.Int32()
|
|
|
|
external int data_type;
|
|
|
|
|
|
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> data;
|
2024-04-17 21:40:08 +08:00
|
|
|
|
|
|
|
@ffi.Uint32()
|
|
|
|
external int rs_pid;
|
2024-04-16 22:34:50 +08:00
|
|
|
}
|
|
|
|
|
2024-03-13 22:41:28 +08:00
|
|
|
final class wire_cst_rust_http_response extends ffi.Struct {
|
|
|
|
@ffi.Uint16()
|
|
|
|
external int status_code;
|
|
|
|
|
|
|
|
external ffi.Pointer<wire_cst_list_record_string_string> headers;
|
|
|
|
|
|
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> url;
|
|
|
|
|
|
|
|
external ffi.Pointer<ffi.Uint64> content_length;
|
|
|
|
|
|
|
|
@ffi.Int32()
|
|
|
|
external int version;
|
|
|
|
|
|
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> remote_addr;
|
|
|
|
|
|
|
|
external ffi.Pointer<wire_cst_list_prim_u_8_strict> data;
|
2024-02-06 20:19:53 +08:00
|
|
|
}
|