Package com.banuba.sdk.types
Class Data
- java.lang.Object
-
- com.banuba.sdk.types.Data
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class Data extends java.lang.Object implements java.io.Closeable
Data class provides proxy to pass byte buffers from cpp code to Java code without a copying
-
-
Constructor Summary
Constructors Constructor Description Data(java.nio.ByteBuffer buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected void
finalize()
java.nio.ByteBuffer
getData()
-
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
getData
public java.nio.ByteBuffer getData()
-
-