From ae8f7a5ee3fb23b15fb776c8ac2ee379e6d55b42 Mon Sep 17 00:00:00 2001 From: pavelpozdeev Date: Wed, 19 Feb 2025 14:31:51 +0300 Subject: [PATCH] init --- interop/src/cangjie/InteropTypes.cj | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/interop/src/cangjie/InteropTypes.cj b/interop/src/cangjie/InteropTypes.cj index 1be75c021..993c8346e 100644 --- a/interop/src/cangjie/InteropTypes.cj +++ b/interop/src/cangjie/InteropTypes.cj @@ -21,4 +21,15 @@ public type KFloat = Float32 public type pointer = KPointer public type KInt = Int32 public type KStringPtr = String -public type ArrayBuffer = ArrayList \ No newline at end of file +public type ArrayBuffer = ArrayList +@C +public struct KInteropReturnBuffer { + public var length: Int32 + public var data: CPointer + public var dispose: CPointer, Int32) -> Unit>> + init (length: Int32, data: CPointer, dispose: CPointer, Int32) -> Unit>>) { + this.length = length + this.data = data + this.dispose = dispose + } +} \ No newline at end of file -- Gitee