public class ShortArrayUtil extends Object
| Constructor and Description |
|---|
ShortArrayUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
convertByteToShort(byte[] input,
int offset,
int inputLen,
short[] output,
int outOffset)
Convert the given input byte array into short array.
|
static int |
convertShortToByte(short[] input,
int offset,
int inputLen,
byte[] output,
int outOffset)
Convert the given input short array into byte array.
|
public static int convertByteToShort(byte[] input,
int offset,
int inputLen,
short[] output,
int outOffset)
input - Byte array to be convertedoffset - starting index of input byte array.inputLen - length of input byte arrayoutput - Short array where converted data will be saved.outOffset - starting index of output short array.public static int convertShortToByte(short[] input,
int offset,
int inputLen,
byte[] output,
int outOffset)
input - Short array to be converted.offset - starting index of input short array.inputLen - length of input short array.output - byte array where converted data will be saved.outOffset - starting index of output byte array.Copyright © 2023. All rights reserved.