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
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Data
public Data(java.nio.ByteBuffer buffer)
-
-
Method Details
-
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()
-