/dports/devel/newt/newt-0.52.21/ |
H A D | entry.c | 58 en->bufUsed = strlen(value); in newtEntrySet() 61 en->cursorPosition = en->bufUsed; in newtEntrySet() 90 en->bufUsed = 0; in newtEntry() 109 en->bufUsed = strlen(initialValue); in newtEntry() 110 en->cursorPosition = en->bufUsed; in newtEntry() 118 en->bufUsed = 0; in newtEntry() 384 memset(en->buf + en->bufUsed, 0, en->bufAlloced - en->bufUsed); in entryHandleKey() 391 memset(en->buf + en->bufUsed, 0, en->bufAlloced - en->bufUsed); in entryHandleKey() 412 en->bufUsed-=delta; in entryHandleKey() 423 en->bufUsed-=delta; in entryHandleKey() [all …]
|
/dports/databases/pgbackrest/pgbackrest-release-2.35/test/src/module/common/ |
H A D | cryptoTest.c | 109 … TEST_RESULT_UINT(bufUsed(encryptBuffer), CIPHER_BLOCK_MAGIC_SIZE, "cipher size is magic size"); in testRun() 119 … TEST_RESULT_UINT(bufUsed(encryptBuffer), CIPHER_BLOCK_HEADER_SIZE, "cipher size is header len"); in testRun() 134 …bufUsed(encryptBuffer), CIPHER_BLOCK_HEADER_SIZE + (size_t)EVP_CIPHER_block_size(blockEncrypt->cip… in testRun() 155 …cipherBlockProcessSize(blockDecrypt, bufUsed(encryptBuffer)), bufUsed(encryptBuffer) + EVP_MAX_BLO… in testRun() 162 … TEST_RESULT_UINT(bufUsed(decryptBuffer), strlen(TEST_PLAINTEXT) * 2, "check final decrypt size"); in testRun() 176 TEST_RESULT_UINT(bufUsed(decryptBuffer), 0, "no decrypt since header read is not complete"); in testRun() 185 TEST_RESULT_UINT(bufUsed(decryptBuffer), 0, "no decrypt since no data processed yet"); in testRun() 202 … TEST_RESULT_UINT(bufUsed(decryptBuffer), strlen(TEST_PLAINTEXT) * 2, "check final decrypt size"); in testRun() 216 TEST_RESULT_UINT(bufUsed(encryptBuffer), 32, "check remaining size"); in testRun() 226 TEST_RESULT_UINT(bufUsed(decryptBuffer), 0, "0 bytes processed"); in testRun() [all …]
|
/dports/audio/pms-devel/pms-c94e3c6/vendor/github.com/blevesearch/bleve/index/store/moss/ |
H A D | writer.go | 61 bufUsed: 0, 76 kBuf := batch.buf[batch.bufUsed : batch.bufUsed+kLen] 77 vBuf := batch.buf[batch.bufUsed+kLen : batch.bufUsed+kLen+vLen] 80 batch.bufUsed += kLen + vLen
|
H A D | batch.go | 28 bufUsed int member 34 b.bufUsed += len(key) + len(val) 48 b.bufUsed += len(key) 61 b.bufUsed += len(key) + len(val) 78 b.bufUsed = 0
|
/dports/www/kf5-kjs/kjs-5.89.0/src/kjs/ |
H A D | nodes2string.cpp | 108 int bufUsed; member in KJS::SourceStream 113 buffer[bufUsed++] = ch; in put() 135 if (bufUsed) { in flush() 137 bufUsed = 0; in flush() 143 if (bufUsed == kBufSize) { in operator <<() 153 if (bufUsed > kBufSize - 100) { in operator <<() 158 int i = bufUsed; in operator <<() 163 bufUsed = i; in operator <<() 214 bufUsed += indent; in operator <<() 240 bufUsed += srcLen; in append() [all …]
|
/dports/databases/pgbackrest/pgbackrest-release-2.35/src/common/type/ |
H A D | buffer.c | 155 if (bufUsed(this) + catSize > bufSize(this)) in bufCatC() 156 bufResize(this, bufUsed(this) + catSize); in bufCatC() 161 memcpy(bufPtr(this) + bufUsed(this), cat + catOffset, catSize); in bufCatC() 204 if (bufUsed(this) == bufUsed(compare)) in bufEq() 205 … FUNCTION_TEST_RETURN(memcmp(bufPtrConst(this), bufPtrConst(compare), bufUsed(compare)) == 0); in bufEq() 222 for (unsigned int bufferIdx = 0; bufferIdx < bufUsed(this); bufferIdx++) in bufHex() 272 if (bufUsed(this) > bufSizeAlloc(this)) in bufResize() 310 ASSERT(limit >= bufUsed(this)); in bufLimitSet() 328 ASSERT(bufUsed(this) + inc <= bufSize(this)); in bufUsedInc() 370 "{used: %zu, size: %zu%s", bufUsed(this), bufSize(this), in bufToLog()
|
H A D | buffer.h | 46 bufUsed(const Buffer *const this) in bufUsed() function 55 return bufUsed(this) == 0; in bufEmpty() 69 return bufUsed(this) == bufSize(this); in bufFull() 90 return bufSize(this) - bufUsed(this); in bufRemains() 97 return bufPtr(this) + bufUsed(this); in bufRemainsPtr()
|
/dports/lang/spidermonkey60/firefox-60.9.0/mozglue/build/ |
H A D | BionicGlue.cpp | 36 SpecialAllocator() : bufUsed(false) {} in SpecialAllocator() 40 if (!bufUsed && n == 1) { in allocate() 41 bufUsed = true; in allocate() 50 bufUsed = false; in deallocate() 62 bool bufUsed; member
|
/dports/www/firefox-legacy/firefox-52.8.0esr/mozglue/build/ |
H A D | BionicGlue.cpp | 37 SpecialAllocator(): bufUsed(false) {} in SpecialAllocator() 40 if (!bufUsed && n == 1) { in allocate() 41 bufUsed = true; in allocate() 49 bufUsed = false; in deallocate() 61 bool bufUsed; member
|
/dports/sysutils/busybox/busybox-1.26.2/editors/ |
H A D | ed.c | 47 int bufUsed; member 64 #define bufUsed (G.bufUsed ) macro 696 bufUsed = 0; in readLines() 714 bufUsed -= len; in readLines() 722 memcpy(bufBase, bufPtr, bufUsed); in readLines() 723 bufPtr = bufBase + bufUsed; in readLines() 726 if (bufUsed >= bufSize) { in readLines() 730 bufPtr = bufBase + bufUsed; in readLines() 735 bufUsed += cc; in readLines() 745 if (bufUsed) { in readLines() [all …]
|
/dports/databases/pgbackrest/pgbackrest-release-2.35/src/common/io/ |
H A D | read.c | 119 size_t bufferUsedBegin = bufUsed(buffer); in ioReadInternal() 155 if (!block && bufUsed(buffer) > bufferUsedBegin) in ioReadInternal() 186 … if (this->output != NULL && bufUsed(this->output) - this->outputPos > 0 && bufRemains(buffer) > 0) in ioRead() 189 size_t outputInternalRemains = bufUsed(this->output) - this->outputPos; in ioRead() 234 size_t outputInternalRemains = bufUsed(this->output) - this->outputPos; in ioReadSmall() 302 size_t outputInternalRemains = bufUsed(this->output) - this->outputPos; in ioReadLineParam() 331 … bufPtr(this->output), bufPtr(this->output) + (bufUsed(this->output) - outputInternalRemains), in ioReadLineParam() 341 … THROW_FMT(FileReadError, "unable to find line in %zu byte buffer", bufUsed(this->output)); in ioReadLineParam() 346 result = strNewN((char *)bufPtr(this->output), bufUsed(this->output)); in ioReadLineParam()
|
/dports/databases/pgbackrest/pgbackrest-release-2.35/src/storage/gcs/ |
H A D | write.c | 194 this->uploadTotal + bufUsed(this->chunkBuffer) - 1, in storageWriteGcsBlockAsync() 195 … done ? strZ(strNewFmt("%" PRIu64, this->uploadTotal + bufUsed(this->chunkBuffer))) : "*")); in storageWriteGcsBlockAsync() 211 this->uploadTotal += bufUsed(this->chunkBuffer); in storageWriteGcsBlockAsync() 249 size_t bytesNext = bufRemains(this->chunkBuffer) > bufUsed(buffer) - bytesTotal ? in storageWriteGcs() 250 bufUsed(buffer) - bytesTotal : bufRemains(this->chunkBuffer); in storageWriteGcs() 254 while (bytesTotal != bufUsed(buffer)); in storageWriteGcs() 292 if (bufUsed(this->chunkBuffer)) in storageWriteGcsClose() 301 this->uploadTotal = bufUsed(this->chunkBuffer); in storageWriteGcsClose()
|
/dports/shells/sash/sash-3.8/ |
H A D | cmd_ed.c | 40 static LEN bufUsed; variable 859 bufUsed = 0; in initEdit() 890 bufUsed = 0; in termEdit() 939 bufUsed = 0; in readLines() 952 bufUsed = 0; in readLines() 970 bufUsed -= len; in readLines() 981 bufPtr = bufBase + bufUsed; in readLines() 984 if (bufUsed >= bufSize) in readLines() 1003 bufUsed += cc; in readLines() 1017 if (bufUsed) in readLines() [all …]
|
/dports/databases/pgbackrest/pgbackrest-release-2.35/src/common/compress/lz4/ |
H A D | compress.c | 107 bufResize(this->buffer, bufUsed(this->buffer) + required); in lz4CompressBuffer() 126 if (bufRemains(compressed) >= bufUsed(output)) in lz4CompressFlush() 139 memmove(bufPtr(output), bufPtr(output) + catSize, bufUsed(output) - catSize); in lz4CompressFlush() 140 bufUsedSet(output, bufUsed(output) - catSize); in lz4CompressFlush() 187 …output = lz4CompressBuffer(this, lz4Error(LZ4F_compressBound(bufUsed(uncompressed), &this->prefs))… in lz4CompressProcess() 193 …ntext, bufRemainsPtr(output), bufRemains(output), bufPtrConst(uncompressed), bufUsed(uncompressed), in lz4CompressProcess()
|
/dports/databases/gigabase/gigabase/ |
H A D | session.cpp | 109 if ((size_t)(bufUsed - bufPos) < size) { in fillBuffer() 110 memmove(sockBuf, sockBuf + bufPos, bufUsed - bufPos); in fillBuffer() 111 bufUsed -= bufPos; in fillBuffer() 113 int rc = socket->read(sockBuf + bufUsed, size-bufUsed, SOCKET_BUFFER_SIZE-bufUsed); in fillBuffer() 114 if (rc < (int)(size - bufUsed)) { in fillBuffer() 117 bufUsed += rc; in fillBuffer() 151 size_t available = bufUsed-bufPos; in next() 153 bufUsed = bufPos = 0; in next() 420 bufUsed = bufPos = 0; in select()
|
/dports/textproc/xp/com/jclark/xml/output/ |
H A D | UTF8XMLWriter.java | 21 private int bufUsed = 0; field in UTF8XMLWriter 403 if (bufUsed == buf.length) in put() 405 buf[bufUsed++] = b; in put() 409 out.write(buf, 0, bufUsed); in flushBuf() 410 bufUsed = 0; in flushBuf() 414 if (bufUsed != 0) in flush() 421 if (bufUsed != 0) in close()
|
/dports/devel/tinygo/tinygo-0.14.1/src/runtime/ |
H A D | chan.go | 35 println("--- channel update:", ch, ch.state.String(), ch.bufSize, ch.bufUsed) 106 if v.s.ch.bufUsed == 0 { 126 bufUsed uintptr // number of elements currently in buffer member 147 return int(c.bufUsed) 238 if ch.bufUsed == ch.bufSize { 256 ch.bufUsed++ 270 if ch.bufUsed == 0 { 291 ch.bufUsed-- 383 if ch.bufUsed == 0 {
|
/dports/emulators/dosbox/dosbox-0.74-3/src/hardware/ |
H A D | adlib.cpp | 148 Bit32u bufUsed; member in Adlib::Capture 194 fwrite( buf, 1, bufUsed, handle ); in ClearBuf() 195 header.commands += bufUsed / 2; in ClearBuf() 196 bufUsed = 0; in ClearBuf() 199 buf[bufUsed++] = raw; in AddBuf() 200 buf[bufUsed++] = val; in AddBuf() 201 if ( bufUsed >= sizeof( buf ) ) { in AddBuf() 340 bufUsed = 0; in Capture()
|
/dports/databases/pgbackrest/pgbackrest-release-2.35/src/common/crypto/ |
H A D | cipherBlock.c | 279 if (bufRemains(destination) >= bufUsed(this->buffer)) in cipherBlockProcess() 291 … memmove(bufPtr(this->buffer), bufPtr(this->buffer) + catSize, bufUsed(this->buffer) - catSize); in cipherBlockProcess() 292 bufUsedSet(this->buffer, bufUsed(this->buffer) - catSize); in cipherBlockProcess() 304 size_t destinationSize = cipherBlockProcessSize(this, source == NULL ? 0 : bufUsed(source)); in cipherBlockProcess() 343 this, bufPtrConst(source), bufUsed(source), bufRemainsPtr(outputActual)); in cipherBlockProcess() 438 .passSize = bufUsed(pass), in cipherBlockNew()
|
H A D | hash.c | 102 …cryptoError(!EVP_DigestUpdate(this->hashContext, bufPtrConst(message), bufUsed(message)), "unable … in cryptoHashProcess() 106 MD5_Update(this->md5Context, bufPtrConst(message), bufUsed(message)); in cryptoHashProcess() 293 …HMAC(hashType, bufPtrConst(key), (int)bufUsed(key), bufPtrConst(message), bufUsed(message), bufPtr… in cryptoHmacOne()
|
/dports/games/libretro-dosbox/dosbox-libretro-aa71b67/src/hardware/ |
H A D | adlib.cpp | 147 Bit32u bufUsed; member in Adlib::Capture 193 fwrite( buf, 1, bufUsed, handle ); in ClearBuf() 194 header.commands += bufUsed / 2; in ClearBuf() 195 bufUsed = 0; in ClearBuf() 198 buf[bufUsed++] = raw; in AddBuf() 199 buf[bufUsed++] = val; in AddBuf() 200 if ( bufUsed >= sizeof( buf ) ) { in AddBuf() 339 bufUsed = 0; in Capture()
|
/dports/devel/libvirt/libvirt-7.10.0/src/rpc/ |
H A D | virnetlibsshsession.c | 111 size_t bufUsed; member 1244 if (sess->bufUsed > 0) { in virNetLibsshChannelRead() 1248 len > sess->bufUsed ? sess->bufUsed : len); in virNetLibsshChannelRead() 1250 if (len >= sess->bufUsed) { in virNetLibsshChannelRead() 1251 read_n = sess->bufUsed; in virNetLibsshChannelRead() 1254 sess->bufUsed = 0; in virNetLibsshChannelRead() 1257 sess->bufUsed -= len; in virNetLibsshChannelRead() 1284 if (sess->bufUsed == 0) { in virNetLibsshChannelRead() 1299 sess->bufUsed = ret; in virNetLibsshChannelRead() 1409 ret = sess->bufUsed > 0; in virNetLibsshSessionHasCachedData()
|
H A D | virnetsshsession.c | 110 size_t bufUsed; member 1337 if (sess->bufUsed > 0) { in virNetSSHChannelRead() 1341 len > sess->bufUsed ? sess->bufUsed : len); in virNetSSHChannelRead() 1343 if (len >= sess->bufUsed) { in virNetSSHChannelRead() 1344 read_n = sess->bufUsed; in virNetSSHChannelRead() 1347 sess->bufUsed = 0; in virNetSSHChannelRead() 1350 sess->bufUsed -= len; in virNetSSHChannelRead() 1373 if (sess->bufUsed == 0) { in virNetSSHChannelRead() 1384 sess->bufUsed = ret; in virNetSSHChannelRead() 1492 ret = sess->bufUsed > 0; in virNetSSHSessionHasCachedData()
|
/dports/databases/pgbackrest/pgbackrest-release-2.35/test/src/module/performance/ |
H A D | storageTest.c | 107 this->byteTotal += bufUsed(input); in testIoRateProcess() 241 ASSERT(bufUsed(block) == 1024 * 1024); in testRun() 254 bufUsed(input) / bufUsed(block), rateIn, rateOut); in testRun()
|
/dports/databases/pgbackrest/pgbackrest-release-2.35/src/common/io/filter/ |
H A D | buffer.c | 65 size_t copySize = bufUsed(input) - this->inputPos; in ioBufferProcess() 74 if (this->inputPos + copySize == bufUsed(input)) in ioBufferProcess()
|