diff --git a/interop/src/cangjie/InteropTypes.cj b/interop/src/cangjie/InteropTypes.cj index 1be75c02185af98b576de76e849257969a471168..993c8346eca71158524b8321f11f2583ed68ddc4 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