/* Returns a VME-encoded number, usually used to indicate the bit length of an SIR/SDR command.  */
long int ispVMDataSize(void)
/* Returns a VME-encoded number, usually used to indicate the bit length of an SIR/SDR command.  */
long int ispVMDataSize(void)
{
	long int iSize           = 0;
	signed char cCurrentByte = 0;
	signed char cIndex       = 0;
	cIndex = 0;
	while ((cCurrentByte = GetByte()) & 0x80) {
		iSize |= ((long int) (cCurrentByte & 0x7F)) << cIndex;
		cIndex += 7;
	}
	iSize |= ((long int) (cCurrentByte & 0x7F)) << cIndex;
	return iSize;
}