We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 009a0ba commit a53dbd4Copy full SHA for a53dbd4
Samples/SwiftKitSampleApp/src/main/java/com/example/swift/HelloJava2Swift.java
@@ -83,10 +83,10 @@ static void examples() {
83
}
84
85
// Example of using 'Data'.
86
- try (var arena = SwiftArena.ofConfined()) {
+ try (var arena = AllocatingSwiftArena.ofConfined()) {
87
var origBytes = arena.allocateFrom("foobar");
88
var origDat = Data.init(origBytes, origBytes.byteSize(), arena);
89
- SwiftKit.trace("origDat.count = " + origDat.getCount());
+ SwiftRuntime.trace("origDat.count = " + origDat.getCount());
90
91
// var origBytes = arena.allocate(ValueLayout.JAVA_INT, arry.length);
92
// origBytes.copyFrom(MemorySegment.ofArray(arry));
0 commit comments