Since: API level 34
public class

DataBuffer

extends Object
implements Parcelable
java.lang.Object
   ↳ com.samsung.android.knox.ex.knoxAI.DataBuffer

Deprecated in API level 37
NOTE: This Class is not available since Android 15.

Class Overview

DataBuffer class for using to pass data.

Since
API level 34
KNOX 3.7.1

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Constructors
DataBuffer()
Deprecated in API level 37
NOTE: This Class is not available since Android 15.
Public Methods
void closeQuietly(Closeable closeable)
Deprecated in API level 37
NOTE: This Class is not available since Android 15.
byte getDataFormat()
Deprecated in API level 37
NOTE: This Class is not available since Android 15.
float[] getDataOriginal()
Deprecated in API level 37
NOTE: This Class is not available since Android 15.
SharedMemory getDataShared()
Deprecated in API level 37
NOTE: This Class is not available since Android 15.
byte getDataSource()
Deprecated in API level 37
NOTE: This Class is not available since Android 15.
byte getDataType()
Deprecated in API level 37
NOTE: This Class is not available since Android 15.
FileDescriptor getFileDesc()
Deprecated in API level 37
NOTE: This Class is not available since Android 15.
int[] getShape()
Deprecated in API level 37
NOTE: This Class is not available since Android 15.
static Half readFloat16FromBytes(byte[] bytes, int start)
Deprecated in API level 37
NOTE: This Class is not available since Android 15.
static float readFloatFromBytes(byte[] bytes, int start)
Deprecated in API level 37
NOTE: This Class is not available since Android 15.
static byte[] readFloatToBytes(float[] floatarray)
Deprecated in API level 37
NOTE: This Class is not available since Android 15.
static JSONObject readJSONObjectFromBytes(byte[] bytes)
Deprecated in API level 37
NOTE: This Class is not available since Android 15.
static long readLongFromBytes(byte[] bytes, int start)
Deprecated in API level 37
NOTE: This Class is not available since Android 15.
void setDataFormat(byte dataFormat)
Deprecated in API level 37
NOTE: This Class is not available since Android 15.
void setDataOriginal(float[] dataOriginal)
Deprecated in API level 37
NOTE: This Class is not available since Android 15.
void setDataShared(SharedMemory dataShared)
Deprecated in API level 37
NOTE: This Class is not available since Android 15.
void setDataSource(byte dataSource)
Deprecated in API level 37
NOTE: This Class is not available since Android 15.
void setDataType(byte dataType)
Deprecated in API level 37
NOTE: This Class is not available since Android 15.
void setFileDesc(FileDescriptor filedesc)
Deprecated in API level 37
NOTE: This Class is not available since Android 15.
void setShape(int[] shape)
Deprecated in API level 37
NOTE: This Class is not available since Android 15.
String toString()
Deprecated in API level 37
NOTE: This Class is not available since Android 15.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Public Constructors

public DataBuffer ()

Since: API level 34

Deprecated in API level 37
NOTE: This Class is not available since Android 15.

Default Constructor.

Since
API level 34
KNOX 3.7.1

Public Methods

public void closeQuietly (Closeable closeable)

Since: API level 34

Deprecated in API level 37
NOTE: This Class is not available since Android 15.

Method to close file and catch exceptions.

Since
API level 34
KNOX 3.7.1

public byte getDataFormat ()

Since: API level 34

Deprecated in API level 37
NOTE: This Class is not available since Android 15.

Method to get DataFormat field for use in further operations.

Since
API level 34
KNOX 3.7.1

public float[] getDataOriginal ()

Since: API level 34

Deprecated in API level 37
NOTE: This Class is not available since Android 15.

Method to get data field for use in further operations.

Since
API level 34
KNOX 3.7.1

public SharedMemory getDataShared ()

Since: API level 34

Deprecated in API level 37
NOTE: This Class is not available since Android 15.

Method to get dataSource field for use in further operations.

Since
API level 34
KNOX 3.7.1

public byte getDataSource ()

Since: API level 34

Deprecated in API level 37
NOTE: This Class is not available since Android 15.

Method to get dataSource field for use in further operations.

Since
API level 34
KNOX 3.7.1

public byte getDataType ()

Since: API level 34

Deprecated in API level 37
NOTE: This Class is not available since Android 15.

Method to get DataType field for use in further operations.

Since
API level 34
KNOX 3.7.1

public FileDescriptor getFileDesc ()

Since: API level 34

Deprecated in API level 37
NOTE: This Class is not available since Android 15.

Method to get file descriptor field corresponding to data for use in further operations.

Since
API level 34
KNOX 3.7.1

public int[] getShape ()

Since: API level 34

Deprecated in API level 37
NOTE: This Class is not available since Android 15.

Method to get shape field for use in further operations.

Since
API level 34
KNOX 3.7.1

public static Half readFloat16FromBytes (byte[] bytes, int start)

Since: API level 35

Deprecated in API level 37
NOTE: This Class is not available since Android 15.

Method to get Float16 array from byte array.

Since
API level 35
KNOX 3.8.0

public static float readFloatFromBytes (byte[] bytes, int start)

Since: API level 34

Deprecated in API level 37
NOTE: This Class is not available since Android 15.

Method to get float array from byte array.

Since
API level 34
KNOX 3.7.1

public static byte[] readFloatToBytes (float[] floatarray)

Since: API level 34

Deprecated in API level 37
NOTE: This Class is not available since Android 15.

Method to get byte array from float array.

Since
API level 34
KNOX 3.7.1

public static JSONObject readJSONObjectFromBytes (byte[] bytes)

Since: API level 35

Deprecated in API level 37
NOTE: This Class is not available since Android 15.

Method to get JSON object from byte array.

Since
API level 35
KNOX 3.8.0

public static long readLongFromBytes (byte[] bytes, int start)

Since: API level 35

Deprecated in API level 37
NOTE: This Class is not available since Android 15.

Method to get Long array from byte array.

Since
API level 35
KNOX 3.8.0

public void setDataFormat (byte dataFormat)

Since: API level 34

Deprecated in API level 37
NOTE: This Class is not available since Android 15.

Method to set DataFormat field for use in further operations.

Since
API level 34
KNOX 3.7.1

public void setDataOriginal (float[] dataOriginal)

Since: API level 34

Deprecated in API level 37
NOTE: This Class is not available since Android 15.

Method to set DataOriginal field for use in further operations.

Since
API level 34
KNOX 3.7.1

public void setDataShared (SharedMemory dataShared)

Since: API level 34

Deprecated in API level 37
NOTE: This Class is not available since Android 15.

Method to set dataSource field for use in further operations.

Since
API level 34
KNOX 3.7.1

public void setDataSource (byte dataSource)

Since: API level 34

Deprecated in API level 37
NOTE: This Class is not available since Android 15.

Method to set dataSource field for use in further operations.

Since
API level 34
KNOX 3.7.1

public void setDataType (byte dataType)

Since: API level 34

Deprecated in API level 37
NOTE: This Class is not available since Android 15.

Method to set DataType field for use in further operations.

Since
API level 34
KNOX 3.7.1

public void setFileDesc (FileDescriptor filedesc)

Since: API level 34

Deprecated in API level 37
NOTE: This Class is not available since Android 15.

Method to set file descriptor field corresponding to data for use in further operations.

Since
API level 34
KNOX 3.7.1

public void setShape (int[] shape)

Since: API level 34

Deprecated in API level 37
NOTE: This Class is not available since Android 15.

Method to set shape field for use in further operations.

Since
API level 34
KNOX 3.7.1

public String toString ()

Since: API level

Deprecated in API level 37
NOTE: This Class is not available since Android 15.

Since
API level 34
KNOX 3.7.1