< prev index next >

src/jdk.incubator.foreign/share/classes/jdk/internal/foreign/abi/Binding.java

Print this page
@@ -396,10 +396,14 @@
  
      public static ToSegment toSegment(MemoryLayout layout) {
          return new ToSegment(layout.byteSize());
      }
  
+     public static ToSegment toSegment(long byteSize) {
+         return new ToSegment(byteSize);
+     }
+ 
      public static Dup dup() {
          return Dup.INSTANCE;
      }
  
  
< prev index next >