Since: API level 34
public class

DataBuffer

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

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()
Default Constructor.
Public Methods
void closeQuietly(Closeable closeable)
Method to close file and catch exceptions.
byte getDataFormat()
Method to get DataFormat field for use in further operations.
float[] getDataOriginal()
Method to get data field for use in further operations.
SharedMemory getDataShared()
Method to get dataSource field for use in further operations.
byte getDataSource()
Method to get dataSource field for use in further operations.
byte getDataType()
Method to get DataType field for use in further operations.
FileDescriptor getFileDesc()
Method to get file descriptor field corresponding to data for use in further operations.
int[] getShape()
Method to get shape field for use in further operations.
static float readFloatFromBytes(byte[] bytes, int start)
Method to get float array from byte array.
static byte[] readFloatToBytes(float[] floatarray)
Method to get byte array from float array.
void setDataFormat(byte dataFormat)
Method to set DataFormat field for use in further operations.
void setDataOriginal(float[] dataOriginal)
Method to set DataOriginal field for use in further operations.
void setDataShared(SharedMemory dataShared)
Method to set dataSource field for use in further operations.
void setDataSource(byte dataSource)
Method to set dataSource field for use in further operations.
void setDataType(byte dataType)
Method to set DataType field for use in further operations.
void setFileDesc(FileDescriptor filedesc)
Method to set file descriptor field corresponding to data for use in further operations.
void setShape(int[] shape)
Method to set shape field for use in further operations.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Public Constructors

public DataBuffer ()

Since: API level 34

Default Constructor.

Since
API level 34
KNOX 3.7.1

Public Methods

public void closeQuietly (Closeable closeable)

Since: API level 34

Method to close file and catch exceptions.

Since
API level 34
KNOX 3.7.1

public byte getDataFormat ()

Since: API level 34

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

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

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

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

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

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

Method to get shape field for use in further operations.

Since
API level 34
KNOX 3.7.1

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

Since: API level 34

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

Method to get byte array from float array.

Since
API level 34
KNOX 3.7.1

public void setDataFormat (byte dataFormat)

Since: API level 34

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

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

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

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

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

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

Method to set shape field for use in further operations.

Since
API level 34
KNOX 3.7.1

public String toString ()

Since: API level

Since
API level 34
KNOX 3.7.1