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

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
Public Methods
void closeQuietly(Closeable closeable)
Deprecated in API level 37
byte getDataFormat()
Deprecated in API level 37
float[] getDataOriginal()
Deprecated in API level 37
SharedMemory getDataShared()
Deprecated in API level 37
byte getDataSource()
Deprecated in API level 37
byte getDataType()
Deprecated in API level 37
FileDescriptor getFileDesc()
Deprecated in API level 37
int[] getShape()
Deprecated in API level 37
static Half readFloat16FromBytes(byte[] bytes, int start)
Deprecated in API level 37
static float readFloatFromBytes(byte[] bytes, int start)
Deprecated in API level 37
static byte[] readFloatToBytes(float[] floatarray)
Deprecated in API level 37
static JSONObject readJSONObjectFromBytes(byte[] bytes)
Deprecated in API level 37
static long readLongFromBytes(byte[] bytes, int start)
Deprecated in API level 37
void setDataFormat(byte dataFormat)
Deprecated in API level 37
void setDataOriginal(float[] dataOriginal)
Deprecated in API level 37
void setDataShared(SharedMemory dataShared)
Deprecated in API level 37
void setDataSource(byte dataSource)
Deprecated in API level 37
void setDataType(byte dataType)
Deprecated in API level 37
void setFileDesc(FileDescriptor filedesc)
Deprecated in API level 37
void setShape(int[] shape)
Deprecated in API level 37
String toString()
Deprecated in API level 37
[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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Since
API level 34
KNOX 3.7.1