Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 17 of 17) sorted by relevance

/PHP-5.5/ext/fileinfo/libmagic/
H A Dencoding.c75 mlen = (nbytes + 1) * sizeof(nbuf[0]); in file_encoding()
80 mlen = (nbytes + 1) * sizeof((*ubuf)[0]); in file_encoding()
117 from_ebcdic(buf, nbytes, nbuf); in file_encoding()
228 for (i = 0; i < nbytes; i++) { in looks_ascii()
247 for (i = 0; i < nbytes; i++) { in looks_latin1()
267 for (i = 0; i < nbytes; i++) { in looks_extended()
301 for (i = 0; i < nbytes; i++) { in file_looks_utf8()
338 if (i >= nbytes) in file_looks_utf8()
378 if (nbytes < 2) in looks_ucs16()
390 for (i = 2; i + 1 < nbytes; i += 2) { in looks_ucs16()
[all …]
H A Dascmagic.c62 trim_nuls(const unsigned char *buf, size_t nbytes) in trim_nuls() argument
64 while (nbytes > 1 && buf[nbytes - 1] == '\0') in trim_nuls()
65 nbytes--; in trim_nuls()
67 return nbytes; in trim_nuls()
85 nbytes = trim_nuls(buf, nbytes); in file_ascmagic()
88 if (file_encoding(ms, buf, nbytes, &ubuf, &ulen, &code, &code_mime, in file_ascmagic()
92 rv = file_ascmagic_with_encoding(ms, buf, nbytes, ubuf, ulen, code, in file_ascmagic()
102 size_t nbytes, unichar *ubuf, size_t ulen, const char *code, in file_ascmagic_with_encoding() argument
129 nbytes = trim_nuls(buf, nbytes); in file_ascmagic_with_encoding()
132 if (nbytes <= 1) { in file_ascmagic_with_encoding()
[all …]
H A Dis_tar.c63 file_is_tar(struct magic_set *ms, const unsigned char *buf, size_t nbytes) in file_is_tar() argument
75 tar = is_tar(buf, nbytes); in file_is_tar()
93 is_tar(const unsigned char *buf, size_t nbytes) in is_tar() argument
100 if (nbytes < sizeof(union record)) in is_tar()
H A Dsoftmagic.c1037 if (bytecnt > nbytes) { in mcopy()
1038 bytecnt = nbytes; in mcopy()
1081 if (offset >= nbytes) { in mcopy()
1108 if (offset >= nbytes) { in mcopy()
1112 if (nbytes - offset < sizeof(*p)) in mcopy()
1113 nbytes = nbytes - offset; in mcopy()
1115 nbytes = sizeof(*p); in mcopy()
1123 if (nbytes < sizeof(*p)) in mcopy()
1125 sizeof(*p) - nbytes); in mcopy()
1147 (uint32_t)nbytes, m) == -1) in mget()
[all …]
H A Dcompress.c103 const unsigned char *buf, size_t nbytes) in file_zmagic() argument
117 if (nbytes < compr[i].maglen) in file_zmagic()
121 nbytes)) != NODATA) { in file_zmagic()
134 file_buffer(ms, -1, NULL, buf, nbytes) == -1) in file_zmagic()
245 size_t nbytes) in file_pipe2file() argument
275 if (swrite(tfd, startbuf, nbytes) != (ssize_t)nbytes) in file_pipe2file()
H A Dmagic.c354 ssize_t nbytes = 0; /* number of bytes read from a datafile */ in file_or_stream() local
407 if ((nbytes = php_stream_read(stream, (char *)buf, HOWMANY)) < 0) { in file_or_stream()
412 (void)memset(buf + nbytes, 0, SLOP); /* NUL terminate */ in file_or_stream()
413 if (file_buffer(ms, stream, inname, buf, (size_t)nbytes) == -1) in file_or_stream()
H A Delfclass.h27 if (nbytes <= sizeof(elfhdr))
H A Dreadcdf.c227 size_t nbytes) argument
240 info.i_len = nbytes;
/PHP-5.5/ext/gd/libgd/
H A Dgd_jpeg.c600 ssize_t nbytes = 0; in fill_input_buffer() local
606 while (nbytes < INPUT_BUF_SIZE) { in fill_input_buffer()
607 int got = gdGetBuf(src->buffer + nbytes, INPUT_BUF_SIZE - nbytes, src->infile); in fill_input_buffer()
611 if (!nbytes) { in fill_input_buffer()
612 nbytes = -1; in fill_input_buffer()
616 nbytes += got; in fill_input_buffer()
619 if (nbytes <= 0) { in fill_input_buffer()
627 nbytes = 2; in fill_input_buffer()
631 src->pub.bytes_in_buffer = nbytes; in fill_input_buffer()
/PHP-5.5/ext/fileinfo/
H A Dlibmagic.patch2495 - nbytes += r;
2499 - if (nbytes == 0) {
3089 + if (bytecnt > nbytes) {
3090 + bytecnt = nbytes;
3131 - nbytes, count);
3132 + "nbytes=%zu)\n", m->type, m->flag, offset, o, nbytes);
3241 - if (nbytes < (offset + 2))
3250 - if (nbytes < (offset + 4))
3272 - if (nbytes < offset)
3278 - if (nbytes < offset)
[all …]
/PHP-5.5/netware/
H A Dstart.c45 size_t nbytes, size_t *bytesRead, void *buffer ), in _NonAppStart() argument
/PHP-5.5/ext/mbstring/
H A Dmbstring.h132 size_t nbytes, const mbfl_encoding *enc);
134 size_t nbytes TSRMLS_DC);
H A Dmbstring.c4608 MBSTRING_API char *php_mb_safe_strrchr_ex(const char *s, unsigned int c, size_t nbytes, const mbfl_… in php_mb_safe_strrchr_ex() argument
4613 if (nbytes == (size_t)-1) { in php_mb_safe_strrchr_ex()
4630 register size_t bcnt = nbytes; in php_mb_safe_strrchr_ex()
4649 MBSTRING_API char *php_mb_safe_strrchr(const char *s, unsigned int c, size_t nbytes TSRMLS_DC) in php_mb_safe_strrchr()
4651 return php_mb_safe_strrchr_ex(s, c, nbytes, MBSTRG(internal_encoding)); in php_mb_safe_strrchr()
/PHP-5.5/ext/ereg/regex/
H A Dregcomp.c1013 register size_t nbytes; local
1022 nbytes = nc / CHAR_BIT * css;
1029 p->g->setbits = (uch *)malloc(nbytes);
1032 nbytes);
1038 (void) memset((unsigned char *)p->g->setbits + (nbytes - css),
/PHP-5.5/ext/iconv/
H A Diconv.c199 static php_iconv_err_t _php_iconv_strlen(unsigned int *pretval, const char *str, size_t nbytes, con…
201 static php_iconv_err_t _php_iconv_substr(smart_str *pretval, const char *str, size_t nbytes, int of…
672 static php_iconv_err_t _php_iconv_strlen(unsigned int *pretval, const char *str, size_t nbytes, con… in _php_iconv_strlen() argument
706 for (in_p = str, in_left = nbytes, cnt = 0; in_left > 0; cnt+=2) { in _php_iconv_strlen()
756 const char *str, size_t nbytes, int offset, int len, const char *enc) in _php_iconv_substr() argument
773 err = _php_iconv_strlen(&total_len, str, nbytes, enc); in _php_iconv_substr()
827 for (in_p = str, in_left = nbytes, cnt = 0; in_left > 0 && len > 0; ++cnt) { in _php_iconv_substr()
/PHP-5.5/ext/pgsql/
H A Dpgsql.c3371 int buf_len = PGSQL_LO_READ_BUF_SIZE, nbytes, argc = ZEND_NUM_ARGS(); local
3386 if ((nbytes = lo_read((PGconn *)pgsql->conn, pgsql->lofd, buf, buf_len))<0) {
3391 buf[nbytes] = '\0';
3392 RETURN_STRINGL(buf, nbytes, 0);
3403 int str_len, nbytes; local
3429 if ((nbytes = lo_write((PGconn *)pgsql->conn, pgsql->lofd, str, len)) == -1) {
3433 RETURN_LONG(nbytes);
3443 volatile int nbytes; local
3454 while ((nbytes = lo_read((PGconn *)pgsql->conn, pgsql->lofd, buf, PGSQL_LO_READ_BUF_SIZE))>0) {
3455 PHPWRITE(buf, nbytes);
[all …]
/PHP-5.5/ext/odbc/
H A Dphp_odbc.c1439 int fp, nbytes; in PHP_FUNCTION() local
1443 while ((nbytes = read(fp, &buf, 4096)) > 0) { in PHP_FUNCTION()
1444 SQLPutData(result->stmt, (void*)&buf, nbytes); in PHP_FUNCTION()

Completed in 134 milliseconds