Lines Matching refs:nbytes
113 smb_mbtowc(uint32_t *wcharp, const char *mbchar, size_t nbytes) in smb_mbtowc() argument
126 count = u8_validate((char *)mbchar, nbytes, NULL, 0, &err); in smb_mbtowc()
193 smb_wcstombs(char *mbs, const smb_wchar_t *wcs, size_t nbytes) in smb_wcstombs() argument
200 if (mbs != NULL && nbytes > 0) in smb_wcstombs()
220 mbslen = nbytes; in smb_wcstombs()
226 if (mbslen < nbytes) in smb_wcstombs()
272 size_t nbytes; in smb_sbequiv_strlen() local
276 nbytes = smb_mbtowc(NULL, mbs, MTS_MB_CHAR_MAX); in smb_sbequiv_strlen()
277 if (nbytes == ((size_t)-1)) in smb_sbequiv_strlen()
279 if (nbytes == 0) in smb_sbequiv_strlen()
282 if (nbytes == 1) { in smb_sbequiv_strlen()
285 } else if (nbytes < 8) { in smb_sbequiv_strlen()
290 (void) strlcpy(mbsbuf, mbs, nbytes+1); in smb_sbequiv_strlen()
299 mbs += nbytes; in smb_sbequiv_strlen()