Commit graph

66 commits

Author SHA1 Message Date
Vinzenz Schroeter b0bfd341b6 add sp_packet_from_parts, regenerate C header 2024-10-20 13:34:21 +02:00
Vinzenz Schroeter 66823d0676 add unit tests for null handling, fix assertion in rust code 2024-10-20 13:33:12 +02:00
Vinzenz Schroeter 9cdb5e0dbf replace Span with ReadOnlySpan where appropriate 2024-10-20 13:31:41 +02:00
Vinzenz Schroeter 52b1ce83d9 add sp_bitmap_new_screen_sized 2024-10-20 12:35:14 +02:00
Vinzenz Schroeter bcd65fb4f0 add first C# unit test 2024-10-20 12:29:45 +02:00
Vinzenz Schroeter 474848e2ea update C# README 2024-10-20 12:29:26 +02:00
Vinzenz Schroeter 05aff8b2dd add fake connection to C API 2024-10-20 12:29:08 +02:00
Vinzenz Schroeter 240766dc11 add dunder to prevent name clashes 2024-10-20 12:08:19 +02:00
Vinzenz Schroeter 0b80ce4968 add AggressiveInlining attribute 2024-10-19 16:19:09 +02:00
Vinzenz Schroeter f968f92917 add Load methods with Spans 2024-10-19 16:04:01 +02:00
Vinzenz Schroeter f836220259 annotate which parameters are consumed, move constants 2024-10-19 15:31:54 +02:00
Vinzenz Schroeter 57c66d9d31 move extensions into classes 2024-10-19 14:45:21 +02:00
Vinzenz Schroeter 1f23bc8afc add docs to public methods instead of native ones 2024-10-19 14:35:03 +02:00
Vinzenz Schroeter 67969d5b43 generate most of the c# binding with a fork of csbindgen 2024-10-19 14:21:50 +02:00
Vinzenz Schroeter 91cc982394 use GroupedNativeMethods 2024-10-16 22:46:34 +02:00
Vinzenz Schroeter 01f2f90121 csbindgen one file per file 2024-10-16 21:59:35 +02:00
Vinzenz Schroeter 55aa7ecf4c pass through real types to c# 2024-10-16 20:56:55 +02:00
Vinzenz Schroeter db98709ca7 fix second target with same name replaces first 2024-10-16 20:41:26 +02:00
Vinzenz Schroeter 28f2720464 Version 0.10.0 2024-10-16 20:07:52 +02:00
Vinzenz Schroeter 9193cfec10 csbindgen seems change order all the time, maybe input ordering helps 2024-10-16 20:02:35 +02:00
Vinzenz Schroeter ac6954322a fix constant types c# 2024-10-16 20:02:06 +02:00
Vinzenz Schroeter 16a0afe08d add constants for brightness in C api 2024-10-16 18:29:36 +02:00
Vinzenz Schroeter a858261540 use constants from generated file 2024-10-15 22:54:32 +02:00
Vinzenz Schroeter c6450d7759 rename sp_bit_vec_* to sp_bitvec_* 2024-10-15 21:55:05 +02:00
Vinzenz Schroeter fbc8cd6c31 rename sp_bit_vec_* to sp_bitvec_* 2024-10-15 21:50:43 +02:00
Vinzenz Schroeter bd0ecd77d2 rename PixelGrid to Bitmap 2024-10-15 21:37:36 +02:00
Vinzenz Schroeter f64ce6e57e regenerate language bindings 2024-10-14 22:28:41 +02:00
Vinzenz Schroeter dbbe631741 fix enable all features for docs.rs, bump version again for re-upload 2024-10-12 20:07:55 +02:00
Vinzenz Schroeter 9b618d4f35 bump version to 0.9.0, cleanup readme 2024-10-12 19:44:17 +02:00
Vinzenz Schroeter 96c010de56 set version to 0.8.0 2024-09-07 15:14:44 +02:00
Vinzenz Schroeter e46391ca5f replace usages of 'this' as parameter name 2024-09-07 15:14:29 +02:00
Vinzenz Schroeter c712b037d0 improve which doc line is the first because this one is displayed in docs in the overview 2024-09-07 14:50:59 +02:00
Vinzenz Schroeter acc35b6727 add ability to send commands directly in C code, annotate which functions may return null 2024-09-07 14:35:16 +02:00
Vinzenz Schroeter aa359cc807 rename _dealloc to _free 2024-09-07 14:11:15 +02:00
Vinzenz Schroeter f45c8090ec fix URL 2024-09-07 13:55:27 +02:00
Vinzenz Schroeter cec31ad5b5 regenerate C# bindings, apparently Cp437Grid has been missing 2024-09-07 13:34:13 +02:00
Vinzenz Schroeter eddeb2ea2d re-export everything from top-level for nicer docs 2024-09-07 12:23:32 +02:00
Vinzenz Schroeter e97418b51b named fields instead of tuple for Packet, doc adjustments 2024-09-07 11:47:42 +02:00
Vinzenz Schroeter 051dbfabea wrap and rename ALL the types 2024-09-05 21:25:15 +02:00
Vinzenz Schroeter e0d5eff494 remove C prefix in csbindgen 2024-08-29 21:40:33 +02:00
Vinzenz Schroeter 956e5df812 CCommand (opaque wrapper around Command for C) 2024-08-29 21:39:47 +02:00
Vinzenz Schroeter a91e0e6eed update csbindgen to improve comment formatting 2024-08-29 20:03:07 +02:00
Vinzenz Schroeter 14faeb1238 replace * with - for bullets in comments 2024-08-29 19:39:18 +02:00
Vinzenz Schroeter d48180ddb2 set version to 0.7.0 2024-06-27 19:41:13 +02:00
Vinzenz Schroeter a4189e2a86 update c# binding 2024-06-25 22:18:57 +02:00
Vinzenz Schroeter 555d917d96 separate types for c api 2024-06-23 18:03:50 +02:00
Vinzenz Schroeter c554fbd800 wip BrightnessGrid 2024-06-23 15:14:18 +02:00
Vinzenz Schroeter e0647bacd6 encode origin unit in type 2024-06-23 13:59:47 +02:00
Vinzenz Schroeter 649e2a39c3 version 0.6.0 2024-06-05 20:35:20 +02:00
Vinzenz Schroeter a488131481 c# project file 2024-06-05 20:29:41 +02:00