public interface Converter<A>
Modifier and Type | Method and Description |
---|---|
void |
decode(ByteBuffer source,
A array)
Reads samples from the byte buffer and writes the resulting values to the
provided array.
|
void |
encode(A array,
ByteBuffer target)
Writes the given array to the target byte buffer using the given
byte order, bytes per sample etc.
|
void |
encode(A array,
int length,
ByteBuffer target)
Writes the given array to the target byte buffer using the given
byte order, bytes per sample etc.
|
void decode(ByteBuffer source, A array) throws IOException
source
- byte bufferarray
- value array (output)IOException
- if the conversion failsvoid encode(A array, ByteBuffer target)
array
- value arraytarget
- target byte buffervoid encode(A array, int length, ByteBuffer target)
array
- value arraylength
- number of values from array to actually converttarget
- target byte bufferCopyright © 2011–2018 tagtraum industries incorporated. All rights reserved.