Home
last modified time | relevance | path

Searched refs:bufpos (Results 1 – 12 of 12) sorted by relevance

/external/webrtc/webrtc/base/
Dstringencode.cc33 size_t srcpos = 0, bufpos = 0; in escape() local
34 while ((srcpos < srclen) && (bufpos + 1 < buflen)) { in escape()
37 if (bufpos + 2 >= buflen) in escape()
39 buffer[bufpos++] = escape; in escape()
41 buffer[bufpos++] = ch; in escape()
44 buffer[bufpos] = '\0'; in escape()
45 return bufpos; in escape()
55 size_t srcpos = 0, bufpos = 0; in unescape() local
56 while ((srcpos < srclen) && (bufpos + 1 < buflen)) { in unescape()
61 buffer[bufpos++] = ch; in unescape()
[all …]
Dstringutils.h170 size_t bufpos = 0; in strlenn() local
171 while (buffer[bufpos] && (bufpos < buflen)) { in strlenn()
172 ++bufpos; in strlenn()
174 return bufpos; in strlenn()
202 size_t bufpos = strlenn(buffer, buflen - 1); variable
203 return bufpos + strcpyn(buffer + bufpos, buflen - bufpos, source, srclen);
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-generated-sources/com/github/javaparser/
DJavaCharStream.java78 public int bufpos = -1; field in JavaCharStream
115 System.arraycopy(buffer, 0, newbuffer, bufsize - tokenBegin, bufpos); in ExpandBuff()
119 System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); in ExpandBuff()
123 System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos); in ExpandBuff()
126 bufpos += (bufsize - tokenBegin); in ExpandBuff()
139 bufpos -= tokenBegin; in ExpandBuff()
169 if (bufpos != 0) in FillBuff()
171 --bufpos; in FillBuff()
176 bufline[bufpos] = line; in FillBuff()
177 bufcolumn[bufpos] = column; in FillBuff()
[all …]
/external/javaparser/javaparser-core/generated-sources/javacc/com/github/javaparser/
DSimpleCharStream.java38 public int bufpos = -1; field in SimpleCharStream
72 System.arraycopy(buffer, 0, newbuffer, bufsize - tokenBegin, bufpos); in ExpandBuff()
76 System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); in ExpandBuff()
80 System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos); in ExpandBuff()
83 maxNextCharInd = (bufpos += (bufsize - tokenBegin)); in ExpandBuff()
96 maxNextCharInd = (bufpos -= tokenBegin); in ExpandBuff()
118 bufpos = maxNextCharInd = 0; in FillBuff()
122 bufpos = maxNextCharInd = 0; in FillBuff()
146 --bufpos; in FillBuff()
149 tokenBegin = bufpos; in FillBuff()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/generated/com/github/javaparser/
DJavaCharStream.java76 public int bufpos = -1; field in JavaCharStream
112 System.arraycopy(buffer, 0, newbuffer, bufsize - tokenBegin, bufpos); in ExpandBuff()
116 System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); in ExpandBuff()
120 System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos); in ExpandBuff()
123 bufpos += (bufsize - tokenBegin); in ExpandBuff()
136 bufpos -= tokenBegin; in ExpandBuff()
166 if (bufpos != 0) in FillBuff()
168 --bufpos; in FillBuff()
173 bufline[bufpos] = line; in FillBuff()
174 bufcolumn[bufpos] = column; in FillBuff()
[all …]
/external/apache-commons-bcel/src/examples/Mini/
DASCII_CharStream.java32 static public int bufpos = -1; field in ASCII_CharStream
60 bufsize - tokenBegin, bufpos); in ExpandBuff()
64 System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); in ExpandBuff()
68 System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos); in ExpandBuff()
71 maxNextCharInd = (bufpos += (bufsize - tokenBegin)); in ExpandBuff()
84 maxNextCharInd = (bufpos -= tokenBegin); in ExpandBuff()
106 bufpos = maxNextCharInd = 0; in FillBuff()
110 bufpos = maxNextCharInd = 0; in FillBuff()
137 --bufpos; in FillBuff()
140 tokenBegin = bufpos; in FillBuff()
[all …]
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/ime/translit/
DTransliteratorInputMethod.java487 int bufpos = index.contextLimit; in caretTowardsStart() local
488 if (bufpos > index.start) { in caretTowardsStart()
489 --bufpos; in caretTowardsStart()
490 if (bufpos > index.start in caretTowardsStart()
491 && UCharacter.isLowSurrogate(buffer.charAt(bufpos)) in caretTowardsStart()
492 && UCharacter.isHighSurrogate(buffer.charAt(bufpos - 1))) { in caretTowardsStart()
493 --bufpos; in caretTowardsStart()
495 index.contextLimit = index.limit = bufpos; in caretTowardsStart()
503 int bufpos = index.contextLimit; in caretTowardsLimit() local
504 if (bufpos < buffer.length()) { in caretTowardsLimit()
[all …]
/external/libcups/cups/
Dfile.c50 bufpos; /* File position for start of buffer */ member
1726 if (fp->bufpos == 0) in cupsFileRewind()
1763 fp->bufpos = 0; in cupsFileRewind()
1812 if (pos >= fp->bufpos && pos < (fp->bufpos + bytes)) in cupsFileSeek()
1819 fp->ptr = fp->buf + pos - fp->bufpos; in cupsFileSeek()
1844 if (pos < fp->bufpos) in cupsFileSeek()
1858 fp->bufpos = 0; in cupsFileSeek()
1864 if (pos >= fp->bufpos && pos < (fp->bufpos + bytes)) in cupsFileSeek()
1870 fp->ptr = fp->buf + pos - fp->bufpos; in cupsFileSeek()
1876 fp->bufpos = lseek(fp->fd, pos, SEEK_SET); in cupsFileSeek()
[all …]
/external/tensorflow/tensorflow/core/lib/io/
Dbuffered_inputstream.cc160 const int64 bufpos = Tell(); in Seek() local
161 if (position < bufpos) { in Seek()
167 return SkipNBytes(position - bufpos); in Seek()
Dinputbuffer.cc186 const int64 bufpos = file_pos_ - static_cast<int64>(limit_ - buf_); in Seek() local
187 if (position >= bufpos && position < file_pos_) { in Seek()
189 pos_ = buf_ + (position - bufpos); in Seek()
/external/toybox/lib/
Ddeflate.c67 int bufpos = bb->bitpos>>3; in bitbuf_bit() local
69 if (bufpos == bb->len) { in bitbuf_bit()
71 bufpos = 0; in bitbuf_bit()
74 return (bb->buf[bufpos]>>(bb->bitpos++&7))&1; in bitbuf_bit()
/external/openssh/regress/
Dnetcat.c950 drainbuf(int fd, unsigned char *buf, size_t *bufpos) in drainbuf() argument
955 n = write(fd, buf, *bufpos); in drainbuf()
962 adjust = *bufpos - n; in drainbuf()
965 *bufpos -= n; in drainbuf()
971 fillbuf(int fd, unsigned char *buf, size_t *bufpos) in fillbuf() argument
973 size_t num = BUFSIZE - *bufpos; in fillbuf()
976 n = read(fd, buf + *bufpos, num); in fillbuf()
982 *bufpos += n; in fillbuf()