Please, help us to better serve our user community by answering the following short survey: https://www.hdfgroup.org/website-survey/
HDF5  1.15.0
API Reference
 
Loading...
Searching...
No Matches
HDFNativeData Class Reference

Static Public Member Functions

static synchronized native int[] byteToInt (byte[] data)
 
static synchronized native float[] byteToFloat (byte[] data)
 
static synchronized native short[] byteToShort (byte[] data)
 
static synchronized native long[] byteToLong (byte[] data)
 
static synchronized native double[] byteToDouble (byte[] data)
 
static synchronized native int[] byteToInt (int start, int len, byte[] data)
 
static synchronized int byteToInt (byte[] data, int start)
 
static synchronized native short[] byteToShort (int start, int len, byte[] data)
 
static synchronized short byteToShort (byte[] data, int start)
 
static synchronized native float[] byteToFloat (int start, int len, byte[] data)
 
static synchronized float byteToFloat (byte[] data, int start)
 
static synchronized native long[] byteToLong (int start, int len, byte[] data)
 
static synchronized long byteToLong (byte[] data, int start)
 
static synchronized native double[] byteToDouble (int start, int len, byte[] data)
 
static synchronized double byteToDouble (byte[] data, int start)
 
static synchronized native byte[] intToByte (int start, int len, int[] data)
 
static synchronized native byte[] shortToByte (int start, int len, short[] data)
 
static synchronized native byte[] floatToByte (int start, int len, float[] data)
 
static synchronized native byte[] longToByte (int start, int len, long[] data)
 
static synchronized native byte[] doubleToByte (int start, int len, double[] data)
 
static synchronized native byte[] byteToByte (byte data)
 
static synchronized byte[] byteToByte (Byte data)
 
static synchronized native byte[] intToByte (int data)
 
static synchronized byte[] intToByte (Integer data)
 
static synchronized native byte[] shortToByte (short data)
 
static synchronized byte[] shortToByte (Short data)
 
static synchronized native byte[] floatToByte (float data)
 
static synchronized byte[] floatToByte (Float data)
 
static synchronized native byte[] longToByte (long data)
 
static synchronized byte[] longToByte (Long data)
 
static synchronized native byte[] doubleToByte (double data)
 
static synchronized byte[] doubleToByte (Double data)
 
static synchronized Object byteToNumber (byte[] barray, Object obj) throws HDF5Exception
 

Member Function Documentation

◆ byteToByte() [1/2]

static synchronized native byte[] byteToByte ( byte  data)
static

Convert a single byte into an array of one byte.

(This is a trivial method.)

Parameters
dataThe input byte
Returns
an array of bytes

◆ byteToByte() [2/2]

static synchronized byte[] byteToByte ( Byte  data)
static

Convert a single Byte object into an array of one byte.

(This is an almost trivial method.)

Parameters
dataThe input Byte
Returns
an array of bytes

◆ byteToDouble() [1/3]

static synchronized native double[] byteToDouble ( byte[]  data)
static

Convert an array of bytes into an array of double

Parameters
dataThe input array of bytes
Returns
an array of double

◆ byteToDouble() [2/3]

static synchronized double byteToDouble ( byte[]  data,
int  start 
)
static

Convert 8 bytes from an array of bytes into a single double

Parameters
startThe position in the input array of bytes to start
dataThe input array of bytes
Returns
The double value of the bytes.

◆ byteToDouble() [3/3]

static synchronized native double[] byteToDouble ( int  start,
int  len,
byte[]  data 
)
static

Convert a range from an array of bytes into an array of double

Parameters
startThe position in the input array of bytes to start
lenThe number of 'double' to convert
dataThe input array of bytes
Returns
an array of 'len' double

◆ byteToFloat() [1/3]

static synchronized native float[] byteToFloat ( byte[]  data)
static

Convert an array of bytes into an array of floats

Parameters
dataThe input array of bytes
Returns
an array of float

◆ byteToFloat() [2/3]

static synchronized float byteToFloat ( byte[]  data,
int  start 
)
static

Convert 4 bytes from an array of bytes into a single float

Parameters
startThe position in the input array of bytes to start
dataThe input array of bytes
Returns
The float value of the bytes.

◆ byteToFloat() [3/3]

static synchronized native float[] byteToFloat ( int  start,
int  len,
byte[]  data 
)
static

Convert a range from an array of bytes into an array of float

Parameters
startThe position in the input array of bytes to start
lenThe number of 'float' to convert
dataThe input array of bytes
Returns
an array of 'len' float

◆ byteToInt() [1/3]

static synchronized native int[] byteToInt ( byte[]  data)
static

Convert an array of bytes into an array of ints

Parameters
dataThe input array of bytes
Returns
an array of int

◆ byteToInt() [2/3]

static synchronized int byteToInt ( byte[]  data,
int  start 
)
static

Convert 4 bytes from an array of bytes into a single int

Parameters
startThe position in the input array of bytes to start
dataThe input array of bytes
Returns
The integer value of the bytes.

◆ byteToInt() [3/3]

static synchronized native int[] byteToInt ( int  start,
int  len,
byte[]  data 
)
static

Convert a range from an array of bytes into an array of int

Parameters
startThe position in the input array of bytes to start
lenThe number of 'int' to convert
dataThe input array of bytes
Returns
an array of 'len' int

◆ byteToLong() [1/3]

static synchronized native long[] byteToLong ( byte[]  data)
static

Convert an array of bytes into an array of long

Parameters
dataThe input array of bytes
Returns
an array of long

◆ byteToLong() [2/3]

static synchronized long byteToLong ( byte[]  data,
int  start 
)
static

Convert 8 bytes from an array of bytes into a single long

Parameters
startThe position in the input array of bytes to start
dataThe input array of bytes
Returns
The long value of the bytes.

◆ byteToLong() [3/3]

static synchronized native long[] byteToLong ( int  start,
int  len,
byte[]  data 
)
static

Convert a range from an array of bytes into an array of long

Parameters
startThe position in the input array of bytes to start
lenThe number of 'long' to convert
dataThe input array of bytes
Returns
an array of 'len' long

◆ byteToNumber()

static synchronized Object byteToNumber ( byte[]  barray,
Object  obj 
) throws HDF5Exception
static

Create a Number object from an array of bytes.

Parameters
barrayThe bytes to be converted
objInput object of the desired output class. Must be a sub-class of Number.
Returns
A Object of the type of obj.
Exceptions
HDF5Exception
  • Error unsupported type.

◆ byteToShort() [1/3]

static synchronized native short[] byteToShort ( byte[]  data)
static

Convert an array of bytes into an array of shorts

Parameters
dataThe input array of bytes
Returns
an array of short

◆ byteToShort() [2/3]

static synchronized short byteToShort ( byte[]  data,
int  start 
)
static

Convert 2 bytes from an array of bytes into a single short

Parameters
startThe position in the input array of bytes to start
dataThe input array of bytes
Returns
The short value of the bytes.

◆ byteToShort() [3/3]

static synchronized native short[] byteToShort ( int  start,
int  len,
byte[]  data 
)
static

Convert a range from an array of bytes into an array of short

Parameters
startThe position in the input array of bytes to start
lenThe number of 'short' to convert
dataThe input array of bytes
Returns
an array of 'len' short

◆ doubleToByte() [1/3]

static synchronized native byte[] doubleToByte ( double  data)
static

Convert a single double into an array of 8 bytes.

Parameters
dataThe input double
Returns
an array of bytes

◆ doubleToByte() [2/3]

static synchronized byte[] doubleToByte ( Double  data)
static

Convert a single Double object into an array of 8 bytes.

Parameters
dataThe input Double
Returns
an array of bytes

◆ doubleToByte() [3/3]

static synchronized native byte[] doubleToByte ( int  start,
int  len,
double[]  data 
)
static

Convert a range from an array of double into an array of bytes.

Parameters
startThe position in the input array of double to start
lenThe number of 'double' to convert
dataThe input array of double
Returns
an array of bytes

◆ floatToByte() [1/3]

static synchronized native byte[] floatToByte ( float  data)
static

Convert a single float into an array of 4 bytes.

Parameters
dataThe input float
Returns
an array of bytes

◆ floatToByte() [2/3]

static synchronized byte[] floatToByte ( Float  data)
static

Convert a single Float object into an array of 4 bytes.

Parameters
dataThe input Float
Returns
an array of bytes

◆ floatToByte() [3/3]

static synchronized native byte[] floatToByte ( int  start,
int  len,
float[]  data 
)
static

Convert a range from an array of float into an array of bytes.

Parameters
startThe position in the input array of int to start
lenThe number of 'float' to convert
dataThe input array of float
Returns
an array of bytes

◆ intToByte() [1/3]

static synchronized native byte[] intToByte ( int  data)
static

Convert a single int into an array of 4 bytes.

Parameters
dataThe input int
Returns
an array of bytes

◆ intToByte() [2/3]

static synchronized native byte[] intToByte ( int  start,
int  len,
int[]  data 
)
static

Convert a range from an array of int into an array of bytes.

Parameters
startThe position in the input array of int to start
lenThe number of 'int' to convert
dataThe input array of int
Returns
an array of bytes

◆ intToByte() [3/3]

static synchronized byte[] intToByte ( Integer  data)
static

Convert a single Integer object into an array of 4 bytes.

Parameters
dataThe input Integer
Returns
an array of bytes

◆ longToByte() [1/3]

static synchronized native byte[] longToByte ( int  start,
int  len,
long[]  data 
)
static

Convert a range from an array of long into an array of bytes.

Parameters
startThe position in the input array of int to start
lenThe number of 'long' to convert
dataThe input array of long
Returns
an array of bytes

◆ longToByte() [2/3]

static synchronized native byte[] longToByte ( long  data)
static

Convert a single long into an array of 8 bytes.

Parameters
dataThe input long
Returns
an array of bytes

◆ longToByte() [3/3]

static synchronized byte[] longToByte ( Long  data)
static

Convert a single Long object into an array of 8 bytes.

Parameters
dataThe input Long
Returns
an array of bytes

◆ shortToByte() [1/3]

static synchronized native byte[] shortToByte ( int  start,
int  len,
short[]  data 
)
static

Convert a range from an array of short into an array of bytes.

Parameters
startThe position in the input array of int to start
lenThe number of 'short' to convert
dataThe input array of short
Returns
an array of bytes

◆ shortToByte() [2/3]

static synchronized native byte[] shortToByte ( short  data)
static

Convert a single short into an array of 2 bytes.

Parameters
dataThe input short
Returns
an array of bytes

◆ shortToByte() [3/3]

static synchronized byte[] shortToByte ( Short  data)
static

Convert a single Short object into an array of 2 bytes.

Parameters
dataThe input Short
Returns
an array of bytes

The documentation for this class was generated from the following file: