public static ShortsToByteArray ( short source, int srcOffset, int srcCount, byte bytes, int offset ) : void | ||
source | short | The array of 16-bit values. |
srcOffset | int | The zero-based offset in |
srcCount | int | The number of 16-bit values to convert. |
bytes | byte | The byte array to store converted values at. |
offset | int | The zero-based offset in |
return | void |
public static void ShortsToByteArray(short[] source, int srcOffset, int srcCount, byte[] bytes, int offset)
{
Buffer.BlockCopy(source, srcOffset * sizeof(short), bytes, offset, srcCount * sizeof(short));
}