/* Assume that "src" is the whole response. */ private LogLimits ExtractLogLimits(byte[] src) { LogLimits ll = new LogLimits(); int bitAddress; bitAddress = BytesToBits(MEAS_OFFSET_LIMITS) + BITOFS_EXTLOWER; ll.extLower = GetBitsBigEndian(src, bitAddress, LL_LIMIT_MASKLEN); bitAddress += LL_LIMIT_MASKLEN; ll.lower = GetBitsBigEndian(src, bitAddress, LL_LIMIT_MASKLEN); bitAddress += LL_LIMIT_MASKLEN; ll.upper = GetBitsBigEndian(src, bitAddress, LL_LIMIT_MASKLEN); bitAddress += LL_LIMIT_MASKLEN; ll.extUpper = GetBitsBigEndian(src, bitAddress, LL_LIMIT_MASKLEN); return(ll); }
private void LogLimitExchange(uint password, bool secured, LogLimits ll) { LogLimitExchange(password, secured, ll.extLower, ll.lower, ll.upper, ll.extUpper); }