/dports/textproc/exempi/exempi-2.5.2/XMPFiles/source/FormatSupport/ |
H A D | PostScript_Support.cpp | 81 size_t reverseSeek = ioBuf->limit - ioBuf->ptr; in RevRefillBuffer() 86 ioBuf->ptr = &ioBuf->data[0]+ioBuf->len; in RevRefillBuffer() 87 ioBuf->limit = ioBuf->ptr ; in RevRefillBuffer() 91 XMP_Int64 rev = (ioBuf->ptr-&ioBuf->data[0]) + ioBuf->filePos; in RevRefillBuffer() 95 ioBuf->ptr = &ioBuf->data[0]+rev; in RevRefillBuffer() 96 ioBuf->limit = &ioBuf->data[0]+ioBuf->len; in RevRefillBuffer() 225 while ( (ioBuf.ptr < ioBuf.limit) && IsNumeric( *ioBuf.ptr ) ) in IsValidPSFile() 240 while ( (ioBuf.ptr < ioBuf.limit) && IsNumeric( *ioBuf.ptr ) ) in IsValidPSFile() 283 while ( (ioBuf.ptr < ioBuf.limit) &&IsNumeric( *ioBuf.ptr ) ) { in IsValidPSFile() 297 while ( (ioBuf.ptr < ioBuf.limit) && IsNumeric( *ioBuf.ptr ) ) { in IsValidPSFile() [all …]
|
H A D | PostScript_Support.hpp | 246 void RevRefillBuffer ( XMP_IO* fileRef, IOBuffer* ioBuf ); 247 bool RevCheckFileSpace ( XMP_IO* fileRef, IOBuffer* ioBuf, size_t neededLen ); 253 bool SkipTabsAndSpaces(XMP_IO* file,IOBuffer& ioBuf); 256 bool SkipUntilNewline(XMP_IO* file,IOBuffer& ioBuf);
|
/dports/textproc/exempi/exempi-2.5.2/XMPFiles/source/FileHandlers/ |
H A D | PostScript_Handler.cpp | 521 XMP_Int64 endofDocInfo=(ioBuf.ptr-ioBuf.data)+ioBuf.filePos; in ExtractDocInfoDict() 691 setTokenInfo(kPS_EndComments,ioBuf.filePos+ioBuf.ptr-ioBuf.data,0); in ParsePSFile() 717 XMP_Int64 begStartpos=ioBuf.filePos+ioBuf.ptr-ioBuf.data; in ParsePSFile() 824 XMP_Int64 begStartpos=ioBuf.filePos+ioBuf.ptr-ioBuf.data; in ParsePSFile() 865 XMP_Int64 begStartpos=ioBuf.filePos+ioBuf.ptr-ioBuf.data; in ParsePSFile() 876 setTokenInfo(kPS_Page,begStartpos,ioBuf.filePos+ioBuf.ptr-ioBuf.data-begStartpos); in ParsePSFile() 882 XMP_Int64 begStartpos=ioBuf.filePos+ioBuf.ptr-ioBuf.data; in ParsePSFile() 891 while (ioBuf.ptr < ioBuf.limit && in ParsePSFile() 897 setTokenInfo(kPS_Trailer,begStartpos,ioBuf.filePos+ioBuf.ptr-ioBuf.data-begStartpos); in ParsePSFile() 903 setTokenInfo(kPS_EOF,ioBuf.filePos+ioBuf.ptr-ioBuf.data,5); in ParsePSFile() [all …]
|
H A D | PostScript_Handler.hpp | 109 bool ExtractDSCCommentValue(IOBuffer &ioBuf,NativeMetadataIndex index); 112 bool ExtractContainsXMPHint(IOBuffer &ioBuf,XMP_Int64 containsXMPStartpos); 115 bool ExtractDocInfoDict(IOBuffer &ioBuf);
|
/dports/graphics/dcp2icc/dcp2icc-0.1/XMP-Toolkit-SDK-4.4.2/source/XMPFiles/FileHandlers/ |
H A D | PostScript_Handler.cpp | 54 IOBuffer ioBuf; in PostScript_CheckFormat() local 92 while ( (ioBuf.ptr < ioBuf.limit) && ('0' <= *ioBuf.ptr) && (*ioBuf.ptr <= '9') ) { in PostScript_CheckFormat() 95 ioBuf.ptr += 1; in PostScript_CheckFormat() 102 ioBuf.ptr += 1; in PostScript_CheckFormat() 107 while ( (ioBuf.ptr < ioBuf.limit) && ('0' <= *ioBuf.ptr) && (*ioBuf.ptr <= '9') ) { in PostScript_CheckFormat() 110 ioBuf.ptr += 1; in PostScript_CheckFormat() 120 if ( (*ioBuf.ptr != ' ') && (*ioBuf.ptr != kLF) && (*ioBuf.ptr != kCR) ) return false; in PostScript_CheckFormat() 121 ioBuf.ptr += 1; in PostScript_CheckFormat() 134 while ( (ioBuf.ptr < ioBuf.limit) && ('0' <= *ioBuf.ptr) && (*ioBuf.ptr <= '9') ) { in PostScript_CheckFormat() 149 while ( (ioBuf.ptr < ioBuf.limit) && ('0' <= *ioBuf.ptr) && (*ioBuf.ptr <= '9') ) { in PostScript_CheckFormat() [all …]
|
H A D | JPEG_Handler.cpp | 90 IOBuffer ioBuf; in JPEG_CheckFormat() local 100 while ( (ioBuf.ptr < ioBuf.limit) && (*ioBuf.ptr == 0xFF) ) ++ioBuf.ptr; in JPEG_CheckFormat() 101 if ( ioBuf.ptr == ioBuf.limit ) return false; in JPEG_CheckFormat() 256 ++ioBuf.ptr; in CacheFileData() 293 if ( segLen <= size_t(ioBuf.limit - ioBuf.ptr) ) { in CacheFileData() 354 this->packetInfo.offset = ioBuf.filePos + (ioBuf.ptr - &ioBuf.data[0]); in CacheFileData() 445 if ( segLen <= size_t(ioBuf.limit - ioBuf.ptr) ) { in CacheFileData() 464 if ( segLen <= size_t(ioBuf.limit - ioBuf.ptr) ) { in CacheFileData() 995 size_t bufTail = ioBuf.len - (ioBuf.ptr - &ioBuf.data[0]); in WriteFile() 1002 LFA_Write ( destRef, ioBuf.ptr, (XMP_Int32)ioBuf.len ); in WriteFile() [all …]
|
H A D | InDesign_Handler.cpp | 174 IOBuffer ioBuf; in CacheFileData() local 191 ioBuf.filePos = 0; in CacheFileData() 192 ioBuf.ptr = ioBuf.limit; // Make sure RefillBuffer does a simple read. in CacheFileData() 232 ioBuf.ptr = ioBuf.limit; // Make sure RefillBuffer does a simple read. in CacheFileData() 251 ioBuf.ptr += 4; in CacheFileData() 260 ioBuf.ptr += 1; in CacheFileData() 263 ioBuf.ptr += 3; in CacheFileData() 266 ioBuf.ptr += 1; in CacheFileData() 269 ioBuf.ptr += 4; in CacheFileData() 272 ioBuf.ptr += 1; in CacheFileData() [all …]
|
/dports/textproc/exempi/exempi-2.5.2/source/ |
H A D | XIO.hpp | 354 ioBuf->len = fileRef->Read ( &ioBuf->data[0], kIOBufferSize ); in FillBuffer() 355 ioBuf->ptr = &ioBuf->data[0]; in FillBuffer() 356 ioBuf->limit = ioBuf->ptr + ioBuf->len; in FillBuffer() 361 if ( (ioBuf->filePos <= fileOffset) && (fileOffset < (XMP_Int64)(ioBuf->filePos + ioBuf->len)) ) { in MoveToOffset() 363 ioBuf->ptr = &ioBuf->data[bufOffset]; in MoveToOffset() 372 ioBuf->filePos += (ioBuf->ptr - &ioBuf->data[0]); // ! Increment before the read. in RefillBuffer() 373 size_t bufTail = ioBuf->limit - ioBuf->ptr; // We'll re-read the tail portion of the buffer. in RefillBuffer() 375 ioBuf->len = fileRef->Read ( &ioBuf->data[0], kIOBufferSize ); in RefillBuffer() 376 ioBuf->ptr = &ioBuf->data[0]; in RefillBuffer() 377 ioBuf->limit = ioBuf->ptr + ioBuf->len; in RefillBuffer() [all …]
|
/dports/graphics/dcp2icc/dcp2icc-0.1/XMP-Toolkit-SDK-4.4.2/source/XMPFiles/ |
H A D | XMPFiles_Impl.hpp | 557 ioBuf->len = LFA_Read ( fileRef, &ioBuf->data[0], kIOBufferSize ); in FillBuffer() 558 ioBuf->ptr = &ioBuf->data[0]; in FillBuffer() 559 ioBuf->limit = ioBuf->ptr + ioBuf->len; in FillBuffer() 564 if ( (ioBuf->filePos <= fileOffset) && (fileOffset < (XMP_Int64)(ioBuf->filePos + ioBuf->len)) ) { in MoveToOffset() 566 ioBuf->ptr = &ioBuf->data[bufOffset]; in MoveToOffset() 574 ioBuf->filePos += (ioBuf->ptr - &ioBuf->data[0]); // ! Increment before the read. in RefillBuffer() 575 size_t bufTail = ioBuf->limit - ioBuf->ptr; // We'll re-read the tail portion of the buffer. in RefillBuffer() 577 ioBuf->len = LFA_Read ( fileRef, &ioBuf->data[0], kIOBufferSize ); in RefillBuffer() 578 ioBuf->ptr = &ioBuf->data[0]; in RefillBuffer() 579 ioBuf->limit = ioBuf->ptr + ioBuf->len; in RefillBuffer() [all …]
|
/dports/graphics/dcp2icc/dcp2icc-0.1/XMP-Toolkit-SDK-4.4.2/source/XMPFiles/FormatSupport/ |
H A D | PSIR_FileWriter.cpp | 277 IOBuffer ioBuf; in ParseFileResources() local 281 XMP_Int64 fileEnd = ioBuf.filePos + length; in ParseFileResources() 285 while ( (ioBuf.filePos + (ioBuf.ptr - ioBuf.data)) < fileEnd ) { in ParseFileResources() 290 XMP_Int64 thisRsrcPos = ioBuf.filePos + (ioBuf.ptr - ioBuf.data); in ParseFileResources() 292 XMP_Uns32 type = GetUns32BE(ioBuf.ptr); in ParseFileResources() 293 XMP_Uns16 id = GetUns16BE(ioBuf.ptr+4); in ParseFileResources() 304 XMP_Uns32 dataLen = GetUns32BE(ioBuf.ptr); in ParseFileResources() 308 XMP_Int64 thisDataPos = ioBuf.filePos + (ioBuf.ptr - ioBuf.data); in ParseFileResources() 346 LFA_Seek ( fileRef, (ioBuf.filePos + (ioBuf.ptr - ioBuf.data)), SEEK_SET ); in ParseFileResources() 348 FillBuffer ( fileRef, nextRsrcPos, &ioBuf ); in ParseFileResources() [all …]
|
H A D | TIFF_FileWriter.cpp | 694 LFA_Seek ( fileRef, (ioBuf->filePos + ioBuf->len), SEEK_SET ); in CaptureJPEGTNail() 697 MoveToOffset ( fileRef, jpegOffset, ioBuf ); in CaptureJPEGTNail() 698 ok = CheckFileSpace ( fileRef, ioBuf, jpegLen ); in CaptureJPEGTNail() 726 IOBuffer ioBuf; in ParseFileStream() local 735 ioBuf.filePos = LFA_Seek ( fileRef, 0, SEEK_SET ); in ParseFileStream() 736 ok = CheckFileSpace ( fileRef, &ioBuf, 8 ); in ParseFileStream() 802 bool ok = CheckFileSpace ( fileRef, ioBuf, 2 ); in ProcessFileIFD() 818 ioBuf->ptr += 2; // Move to the first IFD entry. in ProcessFileIFD() 824 RawIFDEntry* rawTag = (RawIFDEntry*)ioBuf->ptr; in ProcessFileIFD() 856 if ( (ioBuf->limit - ioBuf->ptr) < 32*1024 ) RefillBuffer ( fileRef, ioBuf ); in ProcessFileIFD() [all …]
|
H A D | SWF_Support.cpp | 370 IOBuffer ioBuf; in CheckFormat() local 374 if ( CheckFileSpace ( fileRef, &ioBuf, SWF_SIGNATURE_LEN ) ) { in CheckFormat() 376 if ( CheckBytes ( ioBuf.ptr, SWF_F_SIGNATURE_DATA, SWF_SIGNATURE_LEN ) ) { in CheckFormat() 378 } else if ( CheckBytes ( ioBuf.ptr, SWF_C_SIGNATURE_DATA, SWF_SIGNATURE_LEN ) ) { in CheckFormat() 660 XMP_Int32 FileInputStream::Read ( XMP_Uns8* ioBuf, XMP_Int32 len ) in Read() argument 664 XMP_Int32 bytes = LFA_Read ( iFile, ioBuf, len ); in Read() 749 XMP_Int32 DeflateInputStream::Read ( XMP_Uns8* ioBuf, XMP_Int32 len ) in Read() argument 762 iStream.next_out = ioBuf; in Read() 777 XMP_Int32 DeflateInputStream::Read ( XMP_Uns8* ioBuf ) in Read() argument 780 return Read ( ioBuf, iBufferLength ); in Read()
|
/dports/devel/librelp/librelp-1.10.0/tests/ |
H A D | chkseq.c | 69 static char ioBuf[sizeof(edBuf)+1024]; in main() local 130 if(fgets(ioBuf, sizeof(ioBuf), fp) == NULL) { in main() 133 scanfOK = sscanf(ioBuf, "%d,%d,%s\n", &val, &edLen, edBuf) == 3 ? 1 : 0; in main() 151 if(fgets(ioBuf, sizeof(ioBuf), fp) == NULL) { in main() 154 scanfOK = sscanf(ioBuf, "%d\n", &val) == 1 ? 1 : 0; in main() 194 if(fgets(ioBuf, sizeof(ioBuf), fp) == NULL) { in main() 197 scanfOK = sscanf(ioBuf, "%d,%d,%s\n", &val, in main() 218 if(fgets(ioBuf, sizeof(ioBuf), fp) == NULL) { in main() 221 scanfOK = sscanf(ioBuf, "%d\n", &val) == 1 ? 1 : 0; in main()
|
/dports/sysutils/rsyslog8/rsyslog-8.2112.0/tests/ |
H A D | chkseq.c | 69 static char ioBuf[sizeof(edBuf)+1024]; in main() local 130 if(fgets(ioBuf, sizeof(ioBuf), fp) == NULL) { in main() 133 scanfOK = sscanf(ioBuf, "%d,%d,%s\n", &val, &edLen, edBuf) == 3 ? 1 : 0; in main() 151 if(fgets(ioBuf, sizeof(ioBuf), fp) == NULL) { in main() 154 scanfOK = sscanf(ioBuf, "%d\n", &val) == 1 ? 1 : 0; in main() 194 if(fgets(ioBuf, sizeof(ioBuf), fp) == NULL) { in main() 197 scanfOK = sscanf(ioBuf, "%d,%d,%s\n", &val, in main() 218 if(fgets(ioBuf, sizeof(ioBuf), fp) == NULL) { in main() 221 scanfOK = sscanf(ioBuf, "%d\n", &val) == 1 ? 1 : 0; in main()
|
/dports/math/vtk9/VTK-9.1.0/Rendering/OpenGL2/ |
H A D | vtkPixelBufferObject.cxx | 201 GLuint ioBuf; in CreateBuffer() local 202 glGenBuffers(1, &ioBuf); in CreateBuffer() 204 this->Handle = ioBuf; in CreateBuffer() 219 glDeleteBuffers(1, &ioBuf); in DestroyBuffer() 359 if (!ioBuf) in MapBuffer() 361 glGenBuffers(1, &ioBuf); in MapBuffer() 368 glBindBuffer(target, ioBuf); in MapBuffer() 403 if (!ioBuf) in MapBuffer() 434 if (!ioBuf) in UnmapBuffer() 551 if (!ioBuf) in Allocate() [all …]
|
/dports/math/vtk8/VTK-8.2.0/Rendering/OpenGL2/ |
H A D | vtkPixelBufferObject.cxx | 230 GLuint ioBuf; in CreateBuffer() local 231 glGenBuffers(1, &ioBuf); in CreateBuffer() 233 this->Handle = ioBuf; in CreateBuffer() 248 glDeleteBuffers(1, &ioBuf); in DestroyBuffer() 400 if (!ioBuf) in MapBuffer() 402 glGenBuffers(1, &ioBuf); in MapBuffer() 409 glBindBuffer(target, ioBuf); in MapBuffer() 448 if (!ioBuf) in MapBuffer() 479 if (!ioBuf) in UnmapBuffer() 612 if (!ioBuf) in Allocate() [all …]
|
/dports/math/vtk6/VTK-6.2.0/Rendering/OpenGL2/ |
H A D | vtkPixelBufferObject.cxx | 225 GLuint ioBuf; in CreateBuffer() local 226 glGenBuffers(1, &ioBuf); in CreateBuffer() 228 this->Handle = ioBuf; in CreateBuffer() 243 glDeleteBuffers(1, &ioBuf); in DestroyBuffer() 395 if (!ioBuf) in MapBuffer() 397 glGenBuffers(1, &ioBuf); in MapBuffer() 404 glBindBuffer(target, ioBuf); in MapBuffer() 439 if (!ioBuf) in MapBuffer() 466 if (!ioBuf) in UnmapBuffer() 595 if (!ioBuf) in Allocate() [all …]
|
/dports/www/squid/squid-4.15/src/mgr/ |
H A D | StoreToCommWriter.cc | 79 Mgr::StoreToCommWriter::NoteStoreCopied(void* data, StoreIOBuffer ioBuf) in NoteStoreCopied() argument 87 MyDialer(writer, &StoreToCommWriter::noteStoreCopied, ioBuf)); in NoteStoreCopied() 92 Mgr::StoreToCommWriter::noteStoreCopied(StoreIOBuffer ioBuf) in noteStoreCopied() argument 95 Must(!ioBuf.flags.error); in noteStoreCopied() 96 if (ioBuf.length > 0) in noteStoreCopied() 97 scheduleCommWrite(ioBuf); // write received action results to client in noteStoreCopied() 103 Mgr::StoreToCommWriter::scheduleCommWrite(const StoreIOBuffer& ioBuf) in scheduleCommWrite() argument 107 Must(ioBuf.data != NULL); in scheduleCommWrite() 113 Comm::Write(clientConnection, ioBuf.data, ioBuf.length, writer, NULL); in scheduleCommWrite()
|
H A D | StoreToCommWriter.h | 45 void noteStoreCopied(StoreIOBuffer ioBuf); 46 static void NoteStoreCopied(void* data, StoreIOBuffer ioBuf); 51 void scheduleCommWrite(const StoreIOBuffer& ioBuf);
|
/dports/math/vtk6/VTK-6.2.0/Rendering/OpenGL/ |
H A D | vtkPixelBufferObject.cxx | 280 GLuint ioBuf; in CreateBuffer() local 281 vtkgl::GenBuffers(1, &ioBuf); in CreateBuffer() 283 this->Handle = ioBuf; in CreateBuffer() 447 if (!ioBuf) in MapBuffer() 449 vtkgl::GenBuffers(1, &ioBuf); in MapBuffer() 456 vtkgl::BindBuffer(target, ioBuf); in MapBuffer() 491 if (!ioBuf) in MapBuffer() 500 vtkgl::BindBuffer(target, ioBuf); in MapBuffer() 518 if (!ioBuf) in UnmapBuffer() 647 if (!ioBuf) in Allocate() [all …]
|
/dports/devel/folly/folly-2021.12.27.00/folly/experimental/test/ |
H A D | JemallocNodumpAllocatorTest.cpp | 49 folly::IOBuf ioBuf(folly::IOBuf::TAKE_OWNERSHIP, ptr, size); in TEST() local 50 EXPECT_EQ(size, ioBuf.capacity()); in TEST() 51 EXPECT_EQ(ptr, ioBuf.data()); in TEST() 52 uint8_t* data = ioBuf.writableData(); in TEST() 54 for (auto i = 0u; i < ioBuf.capacity(); ++i) { in TEST()
|
/dports/devel/folly/folly-2021.12.27.00/folly/io/ |
H A D | IOBufIovecBuilder.cpp | 46 std::unique_ptr<folly::IOBuf> ioBuf; in extractIOBufChain() local 70 if (ioBuf) { in extractIOBufChain() 71 ioBuf->prependChain(std::move(tmp)); in extractIOBufChain() 73 ioBuf = std::move(tmp); in extractIOBufChain() 77 return ioBuf; in extractIOBufChain()
|
/dports/mail/thunderbird/thunderbird-91.8.0/comm/mailnews/db/mork/ |
H A D | morkBlob.h | 26 morkBuf(const void* ioBuf, mork_fill inFill) in morkBuf() argument 27 : mBuf_Body((void*)ioBuf), mBuf_Fill(inFill) {} in morkBuf() 53 morkBlob(const void* ioBuf, mork_fill inFill, mork_size inSize) in morkBlob() argument 54 : morkBuf(ioBuf, inFill), mBlob_Size(inSize) {} in morkBlob()
|
/dports/devel/folly/folly-2021.12.27.00/folly/io/async/ |
H A D | AsyncPipe.cpp | 82 std::unique_ptr<IOBuf> ioBuf; in handlerReady() local 85 ioBuf = IOBuf::create(readCallback_->maxBufferSize()); in handlerReady() 86 buf = ioBuf->writableBuffer(); in handlerReady() 87 buflen = ioBuf->capacity(); in handlerReady() 128 ioBuf->append(std::size_t(bytesRead)); in handlerReady() 129 readCallback_->readBufferAvailable(std::move(ioBuf)); in handlerReady()
|
/dports/sysutils/rsyslog8/rsyslog-8.2112.0/plugins/omhdfs/ |
H A D | omhdfs.c | 90 uchar ioBuf[64*1024]; member 367 if(pData->offsBuf + len < sizeof(pData->ioBuf)) { in addData() 369 memcpy((char*) pData->ioBuf + pData->offsBuf, buf, len); in addData() 372 CHKiRet(fileWrite(pData->pFile, pData->ioBuf, &pData->offsBuf)); in addData() 373 if(len >= sizeof(pData->ioBuf)) { in addData() 376 memcpy((char*) pData->ioBuf + pData->offsBuf, buf, len); in addData() 448 iRet = fileWrite(pData->pFile, pData->ioBuf, &pData->offsBuf);
|