Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ public static void __describe_module__(SpacetimeDB.Internal.BytesSink d) =>

[UnmanagedCallersOnly(EntryPoint = "__call_reducer__")]
public static SpacetimeDB.Internal.Errno __call_reducer__(
uint id,
int id,
ulong sender_0,
ulong sender_1,
ulong sender_2,
Expand All @@ -661,7 +661,7 @@ SpacetimeDB.Internal.BytesSink error

[UnmanagedCallersOnly(EntryPoint = "__call_procedure__")]
public static SpacetimeDB.Internal.Errno __call_procedure__(
uint id,
int id,
ulong sender_0,
ulong sender_1,
ulong sender_2,
Expand All @@ -687,7 +687,7 @@ SpacetimeDB.Internal.BytesSink result_sink

[UnmanagedCallersOnly(EntryPoint = "__call_http_handler__")]
public static SpacetimeDB.Internal.Errno __call_http_handler__(
uint id,
int id,
SpacetimeDB.Timestamp timestamp,
SpacetimeDB.Internal.BytesSource request,
SpacetimeDB.Internal.BytesSource request_body,
Expand All @@ -705,7 +705,7 @@ SpacetimeDB.Internal.BytesSink response_body_sink

[UnmanagedCallersOnly(EntryPoint = "__call_view__")]
public static SpacetimeDB.Internal.Errno __call_view__(
uint id,
int id,
ulong sender_0,
ulong sender_1,
ulong sender_2,
Expand All @@ -725,7 +725,7 @@ SpacetimeDB.Internal.BytesSink sink

[UnmanagedCallersOnly(EntryPoint = "__call_view_anon__")]
public static SpacetimeDB.Internal.Errno __call_view_anon__(
uint id,
int id,
SpacetimeDB.Internal.BytesSource args,
SpacetimeDB.Internal.BytesSink sink
) => SpacetimeDB.Internal.Module.__call_view_anon__(id, args, sink);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2563,7 +2563,7 @@ public static void __describe_module__(SpacetimeDB.Internal.BytesSink d) =>

[UnmanagedCallersOnly(EntryPoint = "__call_reducer__")]
public static SpacetimeDB.Internal.Errno __call_reducer__(
uint id,
int id,
ulong sender_0,
ulong sender_1,
ulong sender_2,
Expand All @@ -2589,7 +2589,7 @@ SpacetimeDB.Internal.BytesSink error

[UnmanagedCallersOnly(EntryPoint = "__call_procedure__")]
public static SpacetimeDB.Internal.Errno __call_procedure__(
uint id,
int id,
ulong sender_0,
ulong sender_1,
ulong sender_2,
Expand All @@ -2615,7 +2615,7 @@ SpacetimeDB.Internal.BytesSink result_sink

[UnmanagedCallersOnly(EntryPoint = "__call_http_handler__")]
public static SpacetimeDB.Internal.Errno __call_http_handler__(
uint id,
int id,
SpacetimeDB.Timestamp timestamp,
SpacetimeDB.Internal.BytesSource request,
SpacetimeDB.Internal.BytesSource request_body,
Expand All @@ -2633,7 +2633,7 @@ SpacetimeDB.Internal.BytesSink response_body_sink

[UnmanagedCallersOnly(EntryPoint = "__call_view__")]
public static SpacetimeDB.Internal.Errno __call_view__(
uint id,
int id,
ulong sender_0,
ulong sender_1,
ulong sender_2,
Expand All @@ -2653,7 +2653,7 @@ SpacetimeDB.Internal.BytesSink sink

[UnmanagedCallersOnly(EntryPoint = "__call_view_anon__")]
public static SpacetimeDB.Internal.Errno __call_view_anon__(
uint id,
int id,
SpacetimeDB.Internal.BytesSource args,
SpacetimeDB.Internal.BytesSink sink
) => SpacetimeDB.Internal.Module.__call_view_anon__(id, args, sink);
Expand Down
10 changes: 5 additions & 5 deletions crates/bindings-csharp/Codegen/Module.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2896,7 +2896,7 @@ public static void Main() {

[UnmanagedCallersOnly(EntryPoint = "__call_reducer__")]
public static SpacetimeDB.Internal.Errno __call_reducer__(
uint id,
int id,
ulong sender_0,
ulong sender_1,
ulong sender_2,
Expand All @@ -2921,7 +2921,7 @@ SpacetimeDB.Internal.BytesSink error

[UnmanagedCallersOnly(EntryPoint = "__call_procedure__")]
public static SpacetimeDB.Internal.Errno __call_procedure__(
uint id,
int id,
ulong sender_0,
ulong sender_1,
ulong sender_2,
Expand All @@ -2946,7 +2946,7 @@ SpacetimeDB.Internal.BytesSink result_sink

[UnmanagedCallersOnly(EntryPoint = "__call_http_handler__")]
public static SpacetimeDB.Internal.Errno __call_http_handler__(
uint id,
int id,
SpacetimeDB.Timestamp timestamp,
SpacetimeDB.Internal.BytesSource request,
SpacetimeDB.Internal.BytesSource request_body,
Expand All @@ -2963,7 +2963,7 @@ SpacetimeDB.Internal.BytesSink response_body_sink

[UnmanagedCallersOnly(EntryPoint = "__call_view__")]
public static SpacetimeDB.Internal.Errno __call_view__(
uint id,
int id,
ulong sender_0,
ulong sender_1,
ulong sender_2,
Expand All @@ -2982,7 +2982,7 @@ SpacetimeDB.Internal.BytesSink sink

[UnmanagedCallersOnly(EntryPoint = "__call_view_anon__")]
public static SpacetimeDB.Internal.Errno __call_view_anon__(
uint id,
int id,
SpacetimeDB.Internal.BytesSource args,
SpacetimeDB.Internal.BytesSink sink
) => SpacetimeDB.Internal.Module.__call_view_anon__(
Expand Down
4 changes: 2 additions & 2 deletions crates/bindings-csharp/Runtime/Http.cs
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,9 @@ public Result<HttpResponse, HttpError> Send(HttpRequest request)

var status = FFI.procedure_http_request(
requestBytes,
(uint)requestBytes.Length,
requestBytes.Length,
bodyBytes,
(uint)bodyBytes.Length,
bodyBytes.Length,
out var out_
);

Expand Down
66 changes: 33 additions & 33 deletions crates/bindings-csharp/Runtime/Internal/FFI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,16 +199,16 @@ public readonly record struct RowIter(uint Handle)
[WasmImportLinkage]
[LibraryImport(StdbNamespace10_0)]
public static partial CheckedStatus table_id_from_name(
[In] byte[] name,
uint name_len,
ReadOnlySpan<byte> name,
int name_len,
out TableId out_
);

[WasmImportLinkage]
[LibraryImport(StdbNamespace10_0)]
public static partial CheckedStatus index_id_from_name(
[In] byte[] name,
uint name_len,
ReadOnlySpan<byte> name,
int name_len,
out IndexId out_
);

Expand All @@ -228,7 +228,7 @@ out RowIter out_
public static partial CheckedStatus datastore_index_scan_point_bsatn(
IndexId index_id,
ReadOnlySpan<byte> point,
uint point_len,
int point_len,
out RowIter out_
);

Expand All @@ -237,7 +237,7 @@ out RowIter out_
public static partial CheckedStatus datastore_delete_by_index_scan_point_bsatn(
IndexId index_id,
ReadOnlySpan<byte> point,
uint point_len,
int point_len,
out uint out_
);

Expand All @@ -246,21 +246,21 @@ out uint out_
public static partial CheckedStatus datastore_index_scan_range_bsatn(
IndexId index_id,
ReadOnlySpan<byte> prefix,
uint prefix_len,
int prefix_len,
ColId prefix_elems,
ReadOnlySpan<byte> rstart,
uint rstart_len,
int rstart_len,
ReadOnlySpan<byte> rend,
uint rend_len,
int rend_len,
out RowIter out_
);

[WasmImportLinkage]
[LibraryImport(StdbNamespace10_0)]
public static partial Errno row_iter_bsatn_advance(
RowIter iter_handle,
[MarshalUsing(CountElementName = nameof(buffer_len))] [Out] byte[] buffer,
ref uint buffer_len
Span<byte> buffer,
ref int buffer_len
);

[WasmImportLinkage]
Expand All @@ -272,7 +272,7 @@ ref uint buffer_len
public static partial CheckedStatus datastore_insert_bsatn(
TableId table_id,
Span<byte> row,
ref uint row_len
ref int row_len
);

[WasmImportLinkage]
Expand All @@ -281,29 +281,29 @@ public static partial CheckedStatus datastore_update_bsatn(
TableId table_id,
IndexId index_id,
Span<byte> row,
ref uint row_len
ref int row_len
);

[WasmImportLinkage]
[LibraryImport(StdbNamespace10_0)]
public static partial CheckedStatus datastore_delete_by_index_scan_range_bsatn(
IndexId index_id,
ReadOnlySpan<byte> prefix,
uint prefix_len,
int prefix_len,
ColId prefix_elems,
ReadOnlySpan<byte> rstart,
uint rstart_len,
int rstart_len,
ReadOnlySpan<byte> rend,
uint rend_len,
int rend_len,
out uint out_
);

[WasmImportLinkage]
[LibraryImport(StdbNamespace10_0)]
public static partial CheckedStatus datastore_delete_all_by_eq_bsatn(
TableId table_id,
[In] byte[] relation,
uint relation_len,
ReadOnlySpan<byte> relation,
int relation_len,
out uint out_
);

Expand All @@ -316,15 +316,15 @@ out uint out_
public static partial Errno bytes_source_read(
BytesSource source,
Span<byte> buffer,
ref uint buffer_len
ref int buffer_len
);

[WasmImportLinkage]
[LibraryImport(StdbNamespace10_0)]
public static partial CheckedStatus bytes_sink_write(
BytesSink sink,
ReadOnlySpan<byte> buffer,
ref uint buffer_len
ref int buffer_len
);

public enum LogLevel : byte
Expand All @@ -341,13 +341,13 @@ public enum LogLevel : byte
[LibraryImport(StdbNamespace10_0)]
public static partial void console_log(
LogLevel level,
[In] byte[] target,
uint target_len,
[In] byte[] filename,
uint filename_len,
ReadOnlySpan<byte> target,
int target_len,
ReadOnlySpan<byte> filename,
int filename_len,
uint line_number,
[In] byte[] message,
uint message_len
ReadOnlySpan<byte> message,
int message_len
);

[NativeMarshalling(typeof(ConsoleTimerIdMarshaller))]
Expand Down Expand Up @@ -377,7 +377,7 @@ internal static class ConsoleTimerIdMarshaller

[WasmImportLinkage]
[LibraryImport(StdbNamespace10_0)]
public static partial ConsoleTimerId console_timer_start([In] byte[] name, uint name_len);
public static partial ConsoleTimerId console_timer_start(ReadOnlySpan<byte> name, int name_len);

[WasmImportLinkage]
[LibraryImport(StdbNamespace10_0)]
Expand All @@ -386,10 +386,10 @@ internal static class ConsoleTimerIdMarshaller
[WasmImportLinkage]
[LibraryImport(StdbNamespace10_0)]
public static partial void volatile_nonatomic_schedule_immediate(
[In] byte[] name,
uint name_len,
[In] byte[] args,
uint args_len
ReadOnlySpan<byte> name,
int name_len,
ReadOnlySpan<byte> args,
int args_len
);

// Note #1: our Identity type has the same layout as a fixed-size 32-byte little-endian buffer,
Expand Down Expand Up @@ -436,9 +436,9 @@ public readonly struct BytesSourcePair
[LibraryImport(StdbNamespace10_3, EntryPoint = "procedure_http_request")]
public static partial Errno procedure_http_request(
ReadOnlySpan<byte> request,
uint request_len,
int request_len,
ReadOnlySpan<byte> body,
uint body_len,
int body_len,
out BytesSourcePair out_
);
}
Loading
Loading