/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/apr/file_io/os2/ |
H A D | readwrite.c | 52 thefile->bufpos = 0; in apr_file_read() 58 if (thefile->bufpos >= thefile->dataRead) { in apr_file_read() 71 thefile->bufpos = 0; in apr_file_read() 74 …blocksize = size > thefile->dataRead - thefile->bufpos ? thefile->dataRead - thefile->bufpos : siz… in apr_file_read() 75 memcpy(pos, thefile->buffer + thefile->bufpos, blocksize); in apr_file_read() 76 thefile->bufpos += blocksize; in apr_file_read() 147 thefile->bufpos = thefile->dataRead = 0; in apr_file_write() 155 … blocksize = size > APR_FILE_BUFSIZE - thefile->bufpos ? APR_FILE_BUFSIZE - thefile->bufpos : size; in apr_file_write() 157 thefile->bufpos += blocksize; in apr_file_write() 281 if (thefile->direction == 1 && thefile->bufpos) { in apr_file_flush() [all …]
|
/dports/archivers/xpk/xpk-0.1.4/xpkmaster/ |
H A D | hook_mem.c | 31 char *bufpos; in meminfunc() local 34 bufpos=(char *)msg->xmm_Buf+msg->xmm_BufOfs; in meminfunc() 43 msg->xmm_Ptr=bufpos; in meminfunc() 44 else if(bufpos!=msg->xmm_Ptr) in meminfunc() 45 memcpy(msg->xmm_Ptr, bufpos, msg->xmm_Size); in meminfunc() 71 char *bufpos=(char *)msg->xmm_Buf+msg->xmm_BufOfs; in memoutfunc() local 95 msg->xmm_Ptr=bufpos; in memoutfunc() 100 if(msg->xmm_Ptr && (msg->xmm_Ptr != bufpos)) in memoutfunc() 101 memcpy(bufpos, msg->xmm_Ptr, msg->xmm_Size); in memoutfunc()
|
/dports/games/avp/avp-20170505/src/avp/ |
H A D | scream.cpp | 100 char* bufpos=buffer+8; in LoadSounds() local 102 num_voice_types=*(unaligned_s32*)bufpos; in LoadSounds() 103 bufpos+=4; in LoadSounds() 104 num_voice_cats=*(unaligned_s32*)bufpos; in LoadSounds() 105 bufpos+=4; in LoadSounds() 121 bufpos+=4; in LoadSounds() 136 strcpy(wavname,bufpos); in LoadSounds() 137 bufpos+=strlen(bufpos)+1; in LoadSounds() 139 sound->pitch=*(unaligned_s32*)bufpos; in LoadSounds() 140 bufpos+=4; in LoadSounds() [all …]
|
/dports/misc/xdelta3/xdelta-3.1.0/xdelta3/ |
H A D | badcopy.c | 57 usize_t bufpos = 0, j; in modify() local 69 if (next_size + next_mod + bufpos > size) { break; } in modify() 73 bufpos += next_mod; in modify() 77 total_size + (xoff_t)bufpos, in modify() 78 bufpos - last_end); in modify() 80 total_size + (xoff_t)bufpos, in modify() 81 total_size + (xoff_t)(bufpos + next_size), in modify() 87 for (j = 0; j < next_size; j += 1, bufpos += 1) in modify() 89 buf[bufpos] = (char)(lrand48 () >> 3); in modify() 92 last_end = bufpos; in modify()
|
/dports/sysutils/fwup/fwup-1.9.0/src/3rdparty/xdelta3/ |
H A D | badcopy.c | 57 usize_t bufpos = 0, j; in modify() local 69 if (next_size + next_mod + bufpos > size) { break; } in modify() 73 bufpos += next_mod; in modify() 77 total_size + (xoff_t)bufpos, in modify() 78 bufpos - last_end); in modify() 80 total_size + (xoff_t)bufpos, in modify() 81 total_size + (xoff_t)(bufpos + next_size), in modify() 87 for (j = 0; j < next_size; j += 1, bufpos += 1) in modify() 89 buf[bufpos] = (char)(lrand48 () >> 3); in modify() 92 last_end = bufpos; in modify()
|
/dports/databases/py-postgresql/py-postgresql-1.1.0/postgresql/port/_optimized/ |
H A D | element3.c | 22 char *bufpos = NULL; in _pack_tuple_data() local 73 bufpos = buf; in _pack_tuple_data() 82 Py_MEMCPY(bufpos, &attsize, 4); in _pack_tuple_data() 83 bufpos = bufpos + 4; in _pack_tuple_data() 97 Py_MEMCPY(bufpos, &msg_size, 4); in _pack_tuple_data() 98 bufpos = bufpos + 4; in _pack_tuple_data() 100 bufpos = bufpos + PyBytes_GET_SIZE(ob); in _pack_tuple_data() 343 size_t bufpos = 0; in cat_messages() local 416 INCSIZET(bufpos, 1 + msg_length); in cat_messages() 577 INCSIZET(bufpos, 1 + msg_length); in cat_messages() [all …]
|
/dports/mail/qmail-notify/qmail-notify-0.93/iobuf/ |
H A D | obuf_write.c | 38 avail = io->bufsize - out->bufpos; in obuf_write() 40 memcpy(io->buffer+out->bufpos, data, avail); in obuf_write() 41 out->bufpos = io->bufsize; in obuf_write() 47 avail = io->bufsize - out->bufpos; in obuf_write() 50 memcpy(io->buffer+out->bufpos, data, datalen); in obuf_write() 52 out->bufpos += datalen; in obuf_write() 53 if (out->bufpos > io->buflen) io->buflen = out->bufpos; in obuf_write()
|
/dports/net/rsync/rsync-3.2.3/lib/ |
H A D | sysxattrs.c | 168 size_t bufpos; in read_xattr() local 169 for (bufpos = 0; bufpos < sb.st_size; ) { in read_xattr() 170 ssize_t cnt = read(attrfd, buf + bufpos, sb.st_size - bufpos); in read_xattr() 174 bufpos = -1; in read_xattr() 177 bufpos += cnt; in read_xattr() 179 ret = bufpos; in read_xattr() 214 size_t bufpos; in sys_lsetxattr() local 220 for (bufpos = 0; bufpos < size; ) { in sys_lsetxattr() 225 bufpos = -1; in sys_lsetxattr() 228 bufpos += cnt; in sys_lsetxattr() [all …]
|
/dports/print/ghostscript7-base/ghostscript-7.07/gimp-print-4.2.7/src/escputil/ |
H A D | escputil.c | 305 int bufpos = 0; variable 337 bufpos = 0; in initialize_print_cmd() 476 bufpos += 5; in do_print_cmd() 510 while (bytes < bufpos) in do_print_cmd() 602 bufpos += 2; in do_remote_cmd() 608 bufpos += 2 + nargs; in do_remote_cmd() 679 if (write(fd, printer_cmd, bufpos) < bufpos) in do_ink_level() 750 bufpos = 0; in do_identify() 786 bufpos = 0; in do_status() 789 if (write(fd, printer_cmd, bufpos) < bufpos) in do_status() [all …]
|
/dports/devel/apr1/apr-1.7.0/file_io/os2/ |
H A D | readwrite.c | 52 thefile->bufpos = 0; in apr_file_read() 58 if (thefile->bufpos >= thefile->dataRead) { in apr_file_read() 71 thefile->bufpos = 0; in apr_file_read() 74 …blocksize = size > thefile->dataRead - thefile->bufpos ? thefile->dataRead - thefile->bufpos : siz… in apr_file_read() 75 memcpy(pos, thefile->buffer + thefile->bufpos, blocksize); in apr_file_read() 76 thefile->bufpos += blocksize; in apr_file_read() 147 thefile->bufpos = thefile->dataRead = 0; in apr_file_write() 156 … blocksize = size > thefile->bufsize - thefile->bufpos ? thefile->bufsize - thefile->bufpos : size; in apr_file_write() 158 thefile->bufpos += blocksize; in apr_file_write() 290 if (thefile->direction == 1 && thefile->bufpos) { in apr_file_flush() [all …]
|
/dports/java/javamail/javamail-JAVAMAIL-1_6_2/mail/src/main/java/com/sun/mail/imap/ |
H A D | IMAPInputStream.java | 66 private int bufpos; // The current position within 'buf' field in IMAPInputStream 182 bufpos = ba.getStart(); in fill() 187 bufcount = bufpos + n; in fill() 197 if (bufpos >= bufcount) { 199 if (bufpos >= bufcount) 202 return buf[bufpos++] & 0xff; 223 int avail = bufcount - bufpos; in read() 226 avail = bufcount - bufpos; in read() 231 System.arraycopy(buf, bufpos, b, off, cnt); in read() 232 bufpos += cnt; in read() [all …]
|
/dports/games/frotz/frotz-73eec90ebb159ed687b74cbaf81e135c3e7e390b/src/common/ |
H A D | buffer.c | 29 static int bufpos = 0; variable 44 bufpos = 0; in init_buffer() 64 if (locked || bufpos == 0) in flush_buffer() 69 buffer[bufpos] = 0; in flush_buffer() 75 bufpos = 0; in flush_buffer() 118 buffer[bufpos++] = c; in print_char() 119 if (bufpos == TEXT_BUFFER_SIZE) in print_char()
|
/dports/archivers/lib1541img/lib1541img-1.1/src/lib/1541img/ |
H A D | petscii.c | 452 char *buf, size_t bufsz, size_t *bufpos, const char *chrStr) in appendUtf8() argument 455 if (bufsz > *bufpos + chrLen + 1) in appendUtf8() 457 strcpy(buf + *bufpos, chrStr); in appendUtf8() 459 *bufpos += chrLen; in appendUtf8() 467 size_t bufpos = 0; in petscii_toUtf8() local 502 if (*bufpos + 1 < bufsz) in appendPetscii() 504 buf[(*bufpos)++] = petscii; in appendPetscii() 505 buf[*bufpos] = 0; in appendPetscii() 515 size_t bufpos = 0; in petscii_fromUtf8() local 535 buf, bufsz, &bufpos, toPetsciiChar(screencode)); in petscii_fromUtf8() [all …]
|
/dports/devel/bglibs/bglibs-2.04/iobuf/ |
H A D | obuf_write.c | 40 avail = io->bufsize - out->bufpos; in obuf_write() 42 memcpy(io->buffer+out->bufpos, data, avail); in obuf_write() 43 out->bufpos = io->bufsize; in obuf_write() 49 avail = io->bufsize - out->bufpos; in obuf_write() 52 memcpy(io->buffer+out->bufpos, data, datalen); in obuf_write() 54 out->bufpos += datalen; in obuf_write() 55 if (out->bufpos > io->buflen) io->buflen = out->bufpos; in obuf_write()
|
/dports/games/scummvm/scummvm-2.5.1/engines/groovie/ |
H A D | lzss.cpp | 50 uint32 bufpos = 0; in decodeLZSS() local 62 uint32 offset = (bufpos - (offsetlen >> lengthbits)) & (N - 1); in decodeLZSS() 66 histbuff[bufpos] = tempa; in decodeLZSS() 67 bufpos = (bufpos + 1) & (N - 1); in decodeLZSS() 75 histbuff[bufpos] = tempa; in decodeLZSS() 76 bufpos = (bufpos + 1) & (N - 1); in decodeLZSS()
|
/dports/games/libretro-scummvm/scummvm-7b1e929/engines/groovie/ |
H A D | lzss.cpp | 50 uint32 bufpos = 0; in decodeLZSS() local 62 uint32 offset = (bufpos - (offsetlen >> lengthbits)) & (N - 1); in decodeLZSS() 66 histbuff[bufpos] = tempa; in decodeLZSS() 67 bufpos = (bufpos + 1) & (N - 1); in decodeLZSS() 75 histbuff[bufpos] = tempa; in decodeLZSS() 76 bufpos = (bufpos + 1) & (N - 1); in decodeLZSS()
|
/dports/irc/irssi/irssi-1.2.3/src/core/ |
H A D | net-sendbuffer.c | 59 ret = net_transmit(rec->handle, rec->buffer, rec->bufpos); in buffer_send() 60 if (ret < 0 || rec->bufpos == ret) { in buffer_send() 64 rec->bufpos = 0; in buffer_send() 69 rec->bufpos -= ret; in buffer_send() 70 g_memmove(rec->buffer, rec->buffer+ret, rec->bufpos); in buffer_send() 91 rec->bufpos = 0; in buffer_add() 94 while (rec->bufpos+size > rec->bufsize) { in buffer_add() 105 memcpy(rec->buffer+rec->bufpos, data, size); in buffer_add() 106 rec->bufpos += size; in buffer_add() 121 if (rec->buffer == NULL || rec->bufpos == 0) { in net_sendbuffer_send()
|
/dports/devel/aegis/aegis-4.25.D510/libaegis/input/ |
H A D | quoted_print.cc | 269 size_t bufpos = 0; in read_inner() local 275 if (bufpos >= bufmax) in read_inner() 279 memcpy(new_buf, buf, bufpos); in read_inner() 283 buf[bufpos++] = c; in read_inner() 310 if (nchars > bufpos) in read_inner() 311 nchars = bufpos; in read_inner() 323 while (bufpos > nchars) in read_inner() 325 --bufpos; in read_inner() 326 deeper->ungetc(buf[bufpos]); in read_inner()
|
/dports/sysutils/spiped/spiped-1.6.2/libcperciva/network/ |
H A D | network_read.c | 22 size_t bufpos; member 52 oplen = C->buflen - C->bufpos; in callback_buf() 53 len = recv(C->fd, C->buf + C->bufpos, oplen, 0); in callback_buf() 73 C->bufpos += (size_t)len; in callback_buf() 76 if (C->bufpos < C->minlen) in callback_buf() 80 assert(C->bufpos <= SSIZE_MAX); in callback_buf() 83 return (docallback(C, (ssize_t)C->bufpos)); in callback_buf() 133 C->bufpos = 0; in network_read()
|
/dports/sysutils/tarsnap/tarsnap-autoconf-1.0.39/libcperciva/network/ |
H A D | network_read.c | 21 size_t bufpos; member 49 oplen = C->buflen - C->bufpos; in callback_buf() 50 len = recv(C->fd, C->buf + C->bufpos, oplen, 0); in callback_buf() 68 C->bufpos += (size_t)len; in callback_buf() 71 if (C->bufpos < C->minlen) in callback_buf() 75 assert(C->bufpos <= SSIZE_MAX); in callback_buf() 78 return (docallback(C, (ssize_t)C->bufpos)); in callback_buf() 128 C->bufpos = 0; in network_read()
|
/dports/devel/dev86/dev86-0.16.20/libc/stdio/ |
H A D | stdio.c | 153 *(fp->bufpos++) = ch; 188 if (fp->bufpos >= fp->bufread) 202 ch = *(fp->bufpos++); 409 len = fp->bufread - fp->bufpos; 413 fp->bufpos += bytes; 418 memcpy(buf, fp->bufpos, len); 419 fp->bufpos += len; 471 len = fp->bufend - fp->bufpos; 478 len = fp->bufend - fp->bufpos; 489 fp->bufpos += bytes; [all …]
|
/dports/audio/surge-synthesizer-lv2/surge-release_1.9.0/src/common/dsp/effect/ |
H A D | ConditionerEffect.cpp | 12 bufpos = 0; in ChorusEffect() 26 bufpos = 0; in init() 123 float dL = delayed[0][bufpos]; in process() 124 float dR = delayed[1][bufpos]; in process() 138 delayed[0][bufpos] = dataL[k]; in process() 139 delayed[1][bufpos] = dataR[k]; in process() 141 lamax[bufpos] = max(fabsf(dataL[k]), fabsf(dataR[k])); in process() 142 lamax[bufpos] = lamax[bufpos] * lamax[bufpos]; // RMS in process() 148 lamax[nextof + (bufpos >> (i + 1))] = in process() 149 max(lamax[of + (bufpos >> i)], lamax[of + ((bufpos >> i) ^ 0x1)]); in process() [all …]
|
/dports/emulators/ppsspp-qt5/ppsspp-1.12.3/GPU/Debugger/ |
H A D | Playback.cpp | 100 bool Matches(u32 bufpos) { in Matches() 106 u32 Ptr(u32 bufpos) { in Ptr() 130 bool Matches(u32 bufpos, u32 sz) { in Matches() 151 int slab1 = bufpos / SLAB_SIZE; in Map() 156 return MapSlab(bufpos, flush); in Map() 159 return MapExtra(bufpos, sz, flush); in Map() 169 return slabs_[i].Ptr(bufpos); in MapSlab() 184 return slabs_[best].Ptr(bufpos); in MapSlab() 190 if (extra_[i].Matches(bufpos, sz)) { in MapExtra() 244 buf_pointer_ = bufpos; in Alloc() [all …]
|
/dports/emulators/ppsspp/ppsspp-1.12.3/GPU/Debugger/ |
H A D | Playback.cpp | 100 bool Matches(u32 bufpos) { in Matches() 106 u32 Ptr(u32 bufpos) { in Ptr() 130 bool Matches(u32 bufpos, u32 sz) { in Matches() 151 int slab1 = bufpos / SLAB_SIZE; in Map() 156 return MapSlab(bufpos, flush); in Map() 159 return MapExtra(bufpos, sz, flush); in Map() 169 return slabs_[i].Ptr(bufpos); in MapSlab() 184 return slabs_[best].Ptr(bufpos); in MapSlab() 190 if (extra_[i].Matches(bufpos, sz)) { in MapExtra() 244 buf_pointer_ = bufpos; in Alloc() [all …]
|
/dports/emulators/libretro-ppsspp/ppsspp-1.12.3/GPU/Debugger/ |
H A D | Playback.cpp | 100 bool Matches(u32 bufpos) { in Matches() 106 u32 Ptr(u32 bufpos) { in Ptr() 130 bool Matches(u32 bufpos, u32 sz) { in Matches() 151 int slab1 = bufpos / SLAB_SIZE; in Map() 156 return MapSlab(bufpos, flush); in Map() 159 return MapExtra(bufpos, sz, flush); in Map() 169 return slabs_[i].Ptr(bufpos); in MapSlab() 184 return slabs_[best].Ptr(bufpos); in MapSlab() 190 if (extra_[i].Matches(bufpos, sz)) { in MapExtra() 244 buf_pointer_ = bufpos; in Alloc() [all …]
|