added size and offset parameters in ConvByteToShort