Searched refs:buffer (Results 1 - 25 of 142) sorted by relevance

123456

/PHP_TRUNK/ext/pcre/pcrelib/
H A Dpcre_ord2utf8.c59 buffer pointer to buffer for result - at least 6 pcre_uchars long
61 Returns: number of characters placed in the buffer
66 PRIV(ord2utf)(pcre_uint32 cvalue, pcre_uchar *buffer) argument
74 buffer += i;
77 *buffer-- = 0x80 | (cvalue & 0x3f);
80 *buffer = PRIV(utf8_table2)[i] | cvalue;
86 (void)(buffer); /* called when SUPPORT_UTF is not defined. */
/PHP_TRUNK/ext/fileinfo/
H A Dfileinfo.php27 echo $fi->buffer(file_get_contents($file)) . "\n";
/PHP_TRUNK/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_memory_device.c51 device->buffer = (unsigned char *)0;
53 device->buffer = (unsigned char *)mbfl_malloc(initsz*sizeof(unsigned char));
54 if (device->buffer != NULL) {
74 tmp = (unsigned char *)mbfl_realloc((void *)device->buffer, initsz*sizeof(unsigned char));
76 device->buffer = tmp;
92 if (device->buffer) {
93 mbfl_free(device->buffer);
95 device->buffer = (unsigned char *)0;
123 result->val = device->buffer;
124 device->buffer
[all...]
/PHP_TRUNK/ext/mbstring/libmbfl/filters/
H A Dmbfilter_htmlent.c183 char *buffer = (char*)filter->opaque; local
188 buffer[0] = '&';
194 if (buffer[1]=='#') {
195 if (filter->status > 2 && (buffer[2] == 'x' || buffer[2] == 'X')) {
199 int v = buffer[pos];
219 int v = buffer[pos];
236 CK((*filter->output_function)(buffer[pos], filter->data));
241 /*php_error_docref("ref.mbstring", E_NOTICE, "mbstring decoded '%s'=%d", buffer, ent);*/
244 buffer[filte
291 unsigned char *buffer; local
[all...]
/PHP_TRUNK/ext/soap/
H A Dphp_packet_soap.h25 int parse_packet_soap(zval *this_ptr, char *buffer, int buffer_size, sdlFunctionPtr fn, char *fn_name, zval *return_value, zval *soap_headers);
/PHP_TRUNK/Zend/
H A Dzend_sprintf.c31 int zend_sprintf(char *buffer, const char *format, ...) argument
36 vsprintf(buffer, format, args);
39 return strlen(buffer);
/PHP_TRUNK/ext/hash/
H A Dhash_tiger.c143 context->buffer[context->length++] = 0x1;
145 memset(&context->buffer[context->length], 0, 8-context->length%8);
150 memset(&context->buffer[context->length], 0, 64 - context->length);
151 tiger_compress(context->passes, ((php_hash_uint64 *) context->buffer), context->state);
152 memset(context->buffer, 0, 56);
154 memset(&context->buffer[context->length], 0, 56 - context->length);
158 memcpy(&context->buffer[56], &context->passed, sizeof(php_hash_uint64));
160 context->buffer[56] = (unsigned char) (context->passed & 0xff);
161 context->buffer[57] = (unsigned char) ((context->passed >> 8) & 0xff);
162 context->buffer[5
[all...]
H A Dhash_whirlpool.c45 php_hash_uint64 block[8]; /* mu(buffer) */
48 unsigned char *buffer = context->buffer.data; local
51 * map the buffer to a block:
53 for (i = 0; i < 8; i++, buffer += 8) {
55 (((php_hash_uint64)buffer[0] ) << 56) ^
56 (((php_hash_uint64)buffer[1] & 0xffL) << 48) ^
57 (((php_hash_uint64)buffer[2] & 0xffL) << 40) ^
58 (((php_hash_uint64)buffer[3] & 0xffL) << 32) ^
59 (((php_hash_uint64)buffer[
282 unsigned char *buffer = context->buffer.data; local
380 unsigned char *buffer = context->buffer.data; local
[all...]
H A Dphp_hash_gost.h31 unsigned char buffer[32]; member in struct:__anon82
H A Dphp_hash_md.h65 unsigned char buffer[64]; /* input buffer */ member in struct:__anon85
81 unsigned char buffer[64]; member in struct:__anon86
92 unsigned char buffer[16]; member in struct:__anon87
H A Dphp_hash_ripemd.h29 unsigned char buffer[64]; /* input buffer */ member in struct:__anon88
35 unsigned char buffer[64]; /* input buffer */ member in struct:__anon89
41 unsigned char buffer[64]; /* input buffer */ member in struct:__anon90
47 unsigned char buffer[64]; /* input buffer */ member in struct:__anon91
H A Dphp_hash_sha.h41 unsigned char buffer[64]; /* input buffer */ member in struct:__anon92
57 unsigned char buffer[64]; /* input buffer */ member in struct:__anon93
68 unsigned char buffer[64]; /* input buffer */ member in struct:__anon94
79 unsigned char buffer[128]; /* input buffer */ member in struct:__anon95
90 unsigned char buffer[128]; /* input buffer */ member in struct:__anon96
[all...]
H A Dphp_hash_snefru.h35 unsigned char buffer[32]; member in struct:__anon97
H A Dphp_hash_whirlpool.h32 } buffer; member in struct:__anon99
/PHP_TRUNK/ext/standard/
H A Dphp_crypt_r.h52 extern char * php_sha512_crypt_r (const char *key, const char *salt, char *buffer, int buflen);
53 extern char * php_sha256_crypt_r (const char *key, const char *salt, char *buffer, int buflen);
H A Dsha1.h30 unsigned char buffer[64]; /* input buffer */ member in struct:__anon300
H A Dformatted_print.c60 php_sprintf_appendchar(zend_string **buffer, size_t *pos, char add) argument
62 if (!*buffer || (*pos + 1) >= ZSTR_LEN(*buffer)) {
63 PRINTF_DEBUG(("%s(): ereallocing buffer to %d bytes\n", get_active_function_name(), ZSTR_LEN(*buffer)));
64 *buffer = zend_string_extend(*buffer, ZSTR_LEN(*buffer) << 1, 0);
67 ZSTR_VAL(*buffer)[(*pos)++] = add;
73 php_sprintf_appendstring(zend_string **buffer, size_ argument
130 php_sprintf_appendint(zend_string **buffer, size_t *pos, zend_long number, size_t width, char padding, size_t alignment, int always_sign) argument
174 php_sprintf_appenduint(zend_string **buffer, size_t *pos, zend_ulong number, size_t width, char padding, size_t alignment) argument
206 php_sprintf_appenddouble(zend_string **buffer, size_t *pos, double number, size_t width, char padding, size_t alignment, int precision, int adjust, char fmt, int always_sign ) argument
310 php_sprintf_append2n(zend_string **buffer, size_t *pos, zend_long number, size_t width, char padding, size_t alignment, int n, char *chartable, int expprec) argument
341 php_sprintf_getnumber(char *buffer, size_t *pos) argument
[all...]
H A Dpassword.c85 zend_string *buffer; local
89 buffer = php_base64_encode((unsigned char*) str, str_len);
90 if (ZSTR_LEN(buffer) < out_len) {
92 zend_string_release(buffer);
96 if (ZSTR_VAL(buffer)[pos] == '+') {
98 } else if (ZSTR_VAL(buffer)[pos] == '=') {
99 zend_string_free(buffer);
102 ret[pos] = ZSTR_VAL(buffer)[pos];
105 zend_string_free(buffer);
114 char *buffer; local
331 char *buffer; local
[all...]
H A Diptc.c305 unsigned char *buffer, recnum, dataset; local
314 buffer = (unsigned char *)str;
317 if ((buffer[inx] == 0x1c) && ((buffer[inx+1] == 0x01) || (buffer[inx+1] == 0x02))){
325 if (buffer[ inx++ ] != 0x1c) {
332 dataset = buffer[ inx++ ];
333 recnum = buffer[ inx++ ];
335 if (buffer[ inx ] & (unsigned char) 0x80) { /* long tag */
339 len = (((zend_long) buffer[ in
[all...]
/PHP_TRUNK/ext/date/lib/
H A Dparse_tz.c77 uint32_t buffer[6]; local
79 memcpy(&buffer, *tzf, sizeof(buffer));
80 tz->bit32.ttisgmtcnt = timelib_conv_int(buffer[0]);
81 tz->bit32.ttisstdcnt = timelib_conv_int(buffer[1]);
82 tz->bit32.leapcnt = timelib_conv_int(buffer[2]);
83 tz->bit32.timecnt = timelib_conv_int(buffer[3]);
84 tz->bit32.typecnt = timelib_conv_int(buffer[4]);
85 tz->bit32.charcnt = timelib_conv_int(buffer[5]);
86 *tzf += sizeof(buffer);
99 int32_t *buffer = NULL; local
144 unsigned char *buffer; local
239 uint32_t buffer[3]; local
362 uint32_t buffer[6]; local
[all...]
/PHP_TRUNK/ext/zip/lib/
H A Dzip_buffer.c2 zip_buffer.c -- bounds checked access to memory buffer
40 _zip_buffer_data(zip_buffer_t *buffer) argument
42 return buffer->data;
47 _zip_buffer_free(zip_buffer_t *buffer) argument
49 if (buffer == NULL) {
53 if (buffer->free_data) {
54 free(buffer->data);
57 free(buffer);
62 _zip_buffer_eof(zip_buffer_t *buffer) argument
64 return buffer
69 _zip_buffer_get(zip_buffer_t *buffer, zip_uint64_t length) argument
85 _zip_buffer_get_16(zip_buffer_t *buffer) argument
98 _zip_buffer_get_32(zip_buffer_t *buffer) argument
111 _zip_buffer_get_64(zip_buffer_t *buffer) argument
125 _zip_buffer_get_8(zip_buffer_t *buffer) argument
138 _zip_buffer_left(zip_buffer_t *buffer) argument
148 zip_buffer_t *buffer; local
176 zip_buffer_t *buffer; local
193 _zip_buffer_offset(zip_buffer_t *buffer) argument
200 _zip_buffer_ok(zip_buffer_t *buffer) argument
207 _zip_buffer_put(zip_buffer_t *buffer, const void *src, size_t length) argument
221 _zip_buffer_put_16(zip_buffer_t *buffer, zip_uint16_t i) argument
237 _zip_buffer_put_32(zip_buffer_t *buffer, zip_uint32_t i) argument
255 _zip_buffer_put_64(zip_buffer_t *buffer, zip_uint64_t i) argument
277 _zip_buffer_put_8(zip_buffer_t *buffer, zip_uint8_t i) argument
292 _zip_buffer_set_offset(zip_buffer_t *buffer, zip_uint64_t offset) argument
307 _zip_buffer_size(zip_buffer_t *buffer) argument
[all...]
H A Dzip_dirent.c101 zip_buffer_t *buffer; local
134 if ((buffer = _zip_buffer_new(buf, sizeof(buf))) == NULL) {
140 _zip_buffer_put(buffer, EOCD64_MAGIC, 4);
141 _zip_buffer_put_64(buffer, EOCD64LEN-12);
142 _zip_buffer_put_16(buffer, 45);
143 _zip_buffer_put_16(buffer, 45);
144 _zip_buffer_put_32(buffer, 0);
145 _zip_buffer_put_32(buffer, 0);
146 _zip_buffer_put_64(buffer, survivors);
147 _zip_buffer_put_64(buffer, survivor
299 _zip_dirent_read(zip_dirent_t *zde, zip_source_t *src, zip_buffer_t *buffer, bool local, zip_error_t *error) argument
535 zip_buffer_t *buffer; local
573 zip_buffer_t *buffer; local
620 zip_buffer_t *buffer; local
834 zip_buffer_t *buffer; local
[all...]
H A Dzip_extra_field.c213 zip_buffer_t *buffer; local
216 if ((buffer = _zip_buffer_new((zip_uint8_t *)data, len)) == NULL) {
223 while (_zip_buffer_ok(buffer) && !_zip_buffer_eof(buffer)) {
227 fid = _zip_buffer_get_16(buffer);
228 flen = _zip_buffer_get_16(buffer);
229 ef_data = _zip_buffer_get(buffer, flen);
237 _zip_buffer_free(buffer);
250 if (!_zip_buffer_eof(buffer)) {
252 _zip_buffer_free(buffer);
312 zip_buffer_t *buffer = _zip_buffer_new(b, sizeof(b)); local
351 zip_buffer_t *buffer; local
[all...]
H A Dzip_io_util.c65 _zip_read_data(zip_buffer_t *buffer, zip_source_t *src, size_t length, bool nulp, zip_error_t *error) argument
79 if (buffer) {
80 zip_uint8_t *data = _zip_buffer_get(buffer, length);
110 _zip_read_string(zip_buffer_t *buffer, zip_source_t *src, zip_uint16_t len, bool nulp, zip_error_t *error) argument
115 if ((raw=_zip_read_data(buffer, src, len, nulp, error)) == NULL)
H A Dzip_source_buffer.c2 zip_source_buffer.c -- create zip data source from buffer
44 struct buffer { struct
55 typedef struct buffer buffer_t;
64 static void buffer_free(buffer_t *buffer);
68 static zip_int64_t buffer_read(buffer_t *buffer, zip_uint8_t *data, zip_uint64_t length);
69 static int buffer_seek(buffer_t *buffer, void *data, zip_uint64_t len, zip_error_t *error);
70 static zip_int64_t buffer_write(buffer_t *buffer, const zip_uint8_t *data, zip_uint64_t length, zip_error_t *);
242 buffer_free(buffer_t *buffer) argument
244 if (buffer == NULL) {
248 if (buffer
263 buffer_t *buffer; local
284 buffer_t *buffer; local
311 buffer_t *buffer; local
330 buffer_read(buffer_t *buffer, zip_uint8_t *data, zip_uint64_t length) argument
362 buffer_seek(buffer_t *buffer, void *data, zip_uint64_t len, zip_error_t *error) argument
376 buffer_write(buffer_t *buffer, const zip_uint8_t *data, zip_uint64_t length, zip_error_t *error) argument
[all...]

Completed in 40 milliseconds

123456