public class BufferUtils extends java.lang.Object
Constructor and Description |
---|
BufferUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
asByteArray(double[] input)
double[] TO byte[]
|
static byte[] |
asByteArray(float[] input)
float[] TO byte[]
|
static byte[] |
asByteArray(int[] input)
int[] TO byte[]
|
static byte[] |
asByteArray(long[] input)
long[] TO byte[]
|
static byte[] |
asByteArray(short[] input)
short[] TO byte[]
|
static java.nio.ByteBuffer |
asByteBuffer(java.nio.DoubleBuffer input)
DoubleBuffer TO ByteBuffer |
static java.nio.ByteBuffer |
asByteBuffer(java.nio.FloatBuffer input)
FloatBuffer TO ByteBuffer |
static java.nio.ByteBuffer |
asByteBuffer(java.nio.IntBuffer input)
IntBuffer TO ByteBuffer |
static java.nio.ByteBuffer |
asByteBuffer(java.nio.LongBuffer input)
LongBuffer TO ByteBuffer |
static java.nio.ByteBuffer |
asByteBuffer(java.nio.ShortBuffer input)
ShortBuffer TO ByteBuffer |
static double[] |
asDoubleArray(byte[] input)
byte[] TO double[]
|
static float[] |
asFloatArray(byte[] input)
byte[] TO float[]
|
static int[] |
asIntArray(byte[] input)
byte[] TO int[]
|
static long[] |
asLongArray(byte[] input)
byte[] TO long[]
|
static short[] |
asShortArray(byte[] input)
byte[] TO short[]
|
public BufferUtils()
public static java.nio.ByteBuffer asByteBuffer(java.nio.DoubleBuffer input)
DoubleBuffer
TO ByteBuffer
input
- public static byte[] asByteArray(double[] input)
input
- public static java.nio.ByteBuffer asByteBuffer(java.nio.FloatBuffer input)
FloatBuffer
TO ByteBuffer
input
- public static byte[] asByteArray(float[] input)
input
- public static java.nio.ByteBuffer asByteBuffer(java.nio.IntBuffer input)
IntBuffer
TO ByteBuffer
input
- public static byte[] asByteArray(int[] input)
input
- public static java.nio.ByteBuffer asByteBuffer(java.nio.LongBuffer input)
LongBuffer
TO ByteBuffer
input
- public static byte[] asByteArray(long[] input)
input
- public static java.nio.ByteBuffer asByteBuffer(java.nio.ShortBuffer input)
ShortBuffer
TO ByteBuffer
input
- public static byte[] asByteArray(short[] input)
input
- public static double[] asDoubleArray(byte[] input)
input
- public static float[] asFloatArray(byte[] input)
input
- public static int[] asIntArray(byte[] input)
input
- public static long[] asLongArray(byte[] input)
input
- public static short[] asShortArray(byte[] input)
input
- Copyright © 2019. All rights reserved.