int offset = START;
LittleEndian.putShort(mainStream, offset, (short)_shorts.length);
offset += LittleEndian.SHORT_SIZE;
//mainStream.write(holder);
for (int x = 0; x < _shorts.length; x++)
{
LittleEndian.putShort(mainStream, offset, _shorts[x]);
offset += LittleEndian.SHORT_SIZE;
}