public class BytesFloatConverter extends Object implements Converter<float[]>
Modifier and Type | Method and Description |
---|---|
void |
decode(ByteBuffer source,
float[] array)
Reads samples from the byte buffer and writes the resulting values to the
provided array.
|
void |
encode(float[] array,
ByteBuffer target)
Writes the given array to the target byte buffer using the given
byte order, bytes per sample etc.
|
void |
encode(float[] array,
int length,
ByteBuffer target)
Writes the given array to the target byte buffer using the given
byte order, bytes per sample etc.
|
static BytesFloatConverter |
getInstance(boolean bigEndian) |
public static BytesFloatConverter getInstance(boolean bigEndian)
public void decode(ByteBuffer source, float[] array)
Converter
public void encode(float[] array, ByteBuffer target)
Converter
public void encode(float[] array, int length, ByteBuffer target)
Converter
Copyright © 2011–2018 tagtraum industries incorporated. All rights reserved.