Lines Matching refs:cbValue
671 static int iscsiTextAddKeyValue(uint8_t *pbBuf, size_t cbBuf, size_t *pcbBufCurr, const char *pcszKey, const char *pcszValue, size_t cbValue);
2911 * Appends a key-value pair to the buffer. Normal ASCII strings (cbValue == 0) and large binary values
2912 * of a given length (cbValue > 0) are directly supported. Other value types must be converted to ASCII
2921 * @param cbValue Length of the binary value if applicable.
2924 const char *pcszValue, size_t cbValue)
2931 if (cbValue == 0)
2934 cbValueEnc = cbValue * 2 + 2; /* 2 hex bytes per byte, 2 bytes prefix */
2949 if (cbValue == 0)
2958 for (uint32_t i = 0; i < cbValue; i++)
3012 size_t cbValue = *pcbValue;
3014 Assert(cbValue >= 1);
3028 cbValue--;
3032 if (cbValue == 0)
3041 cbValue--;
3043 *pcbValue -= cbValue;
3052 if (cbValue == 0)
3072 cbValue--;
3078 if (cbValue < 2)
3082 cbValue -= 2;
3087 if (cbValue < 3)
3092 cbValue -= 3;
3096 *pcbValue -= cbValue;