/external/giflib/ |
D | dgif_lib.c | 41 static int DGifBufferedInput(GifFileType *GifFile, GifByteType *Buf, 73 char Buf[GIF_STAMP_LEN + 1]; in DGifOpenFileHandle() local 117 if (READ(GifFile, (unsigned char *)Buf, GIF_STAMP_LEN) != GIF_STAMP_LEN) { in DGifOpenFileHandle() 127 Buf[GIF_STAMP_LEN] = 0; in DGifOpenFileHandle() 128 if (strncmp(GIF_STAMP, Buf, GIF_VERSION_POS) != 0) { in DGifOpenFileHandle() 147 Private->gif89 = (Buf[GIF_VERSION_POS] == '9'); in DGifOpenFileHandle() 158 char Buf[GIF_STAMP_LEN + 1]; in DGifOpen() local 193 if (READ(GifFile, (unsigned char *)Buf, GIF_STAMP_LEN) != GIF_STAMP_LEN) { in DGifOpen() 202 Buf[GIF_STAMP_LEN] = '\0'; in DGifOpen() 203 if (strncmp(GIF_STAMP, Buf, GIF_VERSION_POS) != 0) { in DGifOpen() [all …]
|
D | egif_lib.c | 40 static int EGifBufferedOutput(GifFileType * GifFile, GifByteType * Buf, 268 GifByteType Buf[3]; in EGifPutScreenDesc() local 318 Buf[0] = (ColorMap ? 0x80 : 0x00) | /* Yes/no global colormap */ in EGifPutScreenDesc() 323 Buf[0] |= 0x08; in EGifPutScreenDesc() 324 Buf[1] = BackGround; /* Index into the ColorTable for background color */ in EGifPutScreenDesc() 325 Buf[2] = GifFile->AspectByte; /* Pixel Aspect Ratio */ in EGifPutScreenDesc() 326 InternalWrite(GifFile, Buf, 3); in EGifPutScreenDesc() 333 Buf[0] = ColorMap->Colors[i].Red; in EGifPutScreenDesc() 334 Buf[1] = ColorMap->Colors[i].Green; in EGifPutScreenDesc() 335 Buf[2] = ColorMap->Colors[i].Blue; in EGifPutScreenDesc() [all …]
|
/external/lzma/CPP/7zip/Common/ |
D | CWrappers.cpp | 140 ::MidFree(Buf); in Free() 141 Buf = 0; in Free() 146 if (Buf == 0 || size != Size) in Alloc() 149 Lim = Cur = Buf = (Byte *)::MidAlloc((size_t)size); in Alloc() 152 return (Buf != 0); in Alloc() 160 Processed += (Cur - Buf); in ReadByteFromNewBlock() 161 Res = Stream->Read(Buf, Size, &avail); in ReadByteFromNewBlock() 162 Cur = Buf; in ReadByteFromNewBlock() 163 Lim = Buf + avail; in ReadByteFromNewBlock() 179 CByteInBufWrap::CByteInBufWrap(): Buf(0) in CByteInBufWrap() [all …]
|
D | CWrappers.h | 54 Byte *Buf; member 67 Lim = Cur = Buf; in Init() 72 UInt64 GetProcessed() const { return Processed + (Cur - Buf); } in GetProcessed() 87 Byte *Buf; member 99 Cur = Buf; in Init() 100 Lim = Buf + Size; in Init() 104 UInt64 GetProcessed() const { return Processed + (Cur - Buf); } in GetProcessed()
|
D | FileStreams.cpp | 38 Buf(0), in CInFileStream() 49 MidFree(Buf); in ~CInFileStream() 83 memcpy(data, Buf + pos, rem); in Read() 121 if (!Buf) in Read() 123 Buf = (Byte *)MidAlloc(kClusterSize); in Read() 124 if (!Buf) in Read() 127 bool result = File.Read1(Buf, readSize, BufSize); in Read()
|
/external/clang/tools/libclang/ |
D | CIndexUSRs.cpp | 35 bool cxcursor::getDeclCursorUSR(const Decl *D, SmallVectorImpl<char> &Buf) { in getDeclCursorUSR() argument 36 return generateUSRForDecl(D, Buf); in getDeclCursorUSR() 96 SmallString<128> Buf(getUSRSpacePrefix()); in clang_constructUSR_ObjCIvar() local 97 llvm::raw_svector_ostream OS(Buf); in clang_constructUSR_ObjCIvar() 106 SmallString<128> Buf(getUSRSpacePrefix()); in clang_constructUSR_ObjCMethod() local 107 llvm::raw_svector_ostream OS(Buf); in clang_constructUSR_ObjCMethod() 114 SmallString<128> Buf(getUSRSpacePrefix()); in clang_constructUSR_ObjCClass() local 115 llvm::raw_svector_ostream OS(Buf); in clang_constructUSR_ObjCClass() 121 SmallString<128> Buf(getUSRSpacePrefix()); in clang_constructUSR_ObjCProtocol() local 122 llvm::raw_svector_ostream OS(Buf); in clang_constructUSR_ObjCProtocol() [all …]
|
D | BuildSystem.cpp | 76 llvm::SmallString<256> Buf; in clang_VirtualFileOverlay_writeToBuffer() local 77 llvm::raw_svector_ostream OS(Buf); in clang_VirtualFileOverlay_writeToBuffer() 132 llvm::SmallString<256> Buf; in clang_ModuleMapDescriptor_writeToBuffer() local 133 llvm::raw_svector_ostream OS(Buf); in clang_ModuleMapDescriptor_writeToBuffer()
|
/external/clang/unittests/Rewrite/ |
D | RewriteBufferTest.cpp | 19 RewriteBuffer &Buf) { in tagRange() argument 25 Buf.InsertTextAfter(Offset, BeginTag); in tagRange() 26 Buf.InsertTextBefore(Offset+Len, EndTag); in tagRange() 33 RewriteBuffer Buf; in TEST() local 34 Buf.Initialize(Input); in TEST() 37 Buf.RemoveText(Pos, RemoveStr.size()); in TEST() 41 tagRange(Pos, TagStr.size(), "outer", Buf); in TEST() 42 tagRange(Pos, TagStr.size(), "inner", Buf); in TEST() 46 Buf.write(OS); in TEST()
|
/external/lzma/CPP/Windows/ |
D | CommonDialog.cpp | 26 LPTSTR Buf; member in NWindows::CDoubleZeroStringListA 29 CDoubleZeroStringListA(LPSTR buf, unsigned size): Buf(buf), Size(size) {} in CDoubleZeroStringListA() 31 void Finish() { *Buf = 0; } in Finish() 39 MyStringCopy(Buf, s); in Add() 40 Buf += len; in Add() 49 LPWSTR Buf; member in NWindows::CDoubleZeroStringListW 52 CDoubleZeroStringListW(LPWSTR buf, unsigned size): Buf(buf), Size(size) {} in CDoubleZeroStringListW() 54 void Finish() { *Buf = 0; } in Finish() 62 MyStringCopy(Buf, s); in Add() 63 Buf += len; in Add()
|
/external/llvm/include/llvm/Object/ |
D | Binary.h | 142 std::unique_ptr<MemoryBuffer> Buf; variable 146 OwningBinary(std::unique_ptr<T> Bin, std::unique_ptr<MemoryBuffer> Buf); 158 std::unique_ptr<MemoryBuffer> Buf) in OwningBinary() argument 159 : Bin(std::move(Bin)), Buf(std::move(Buf)) {} in OwningBinary() 165 : Bin(std::move(Other.Bin)), Buf(std::move(Other.Buf)) {} in OwningBinary() 170 Buf = std::move(Other.Buf); 177 return std::make_pair(std::move(Bin), std::move(Buf)); in takeBinary()
|
/external/clang/lib/Frontend/ |
D | TextDiagnosticBuffer.cpp | 27 SmallString<100> Buf; in HandleDiagnostic() local 28 Info.FormatDiagnostic(Buf); in HandleDiagnostic() 33 Notes.emplace_back(Info.getLocation(), Buf.str()); in HandleDiagnostic() 36 Warnings.emplace_back(Info.getLocation(), Buf.str()); in HandleDiagnostic() 39 Remarks.emplace_back(Info.getLocation(), Buf.str()); in HandleDiagnostic() 43 Errors.emplace_back(Info.getLocation(), Buf.str()); in HandleDiagnostic()
|
/external/llvm/lib/ProfileData/ |
D | CoverageMappingReader.cpp | 318 for (const char *Buf = Data.data(), *End = Buf + Data.size(); Buf < End;) { in readCoverageMappingData() local 319 if (Buf + 4 * sizeof(uint32_t) > End) in readCoverageMappingData() 321 uint32_t NRecords = endian::readNext<uint32_t, Endian, unaligned>(Buf); in readCoverageMappingData() 322 uint32_t FilenamesSize = endian::readNext<uint32_t, Endian, unaligned>(Buf); in readCoverageMappingData() 323 uint32_t CoverageSize = endian::readNext<uint32_t, Endian, unaligned>(Buf); in readCoverageMappingData() 324 uint32_t Version = endian::readNext<uint32_t, Endian, unaligned>(Buf); in readCoverageMappingData() 334 const char *FunBuf = Buf; in readCoverageMappingData() 335 Buf += NRecords * sizeof(coverage::CovMapFunctionRecord<T>); in readCoverageMappingData() 336 const char *FunEnd = Buf; in readCoverageMappingData() 339 if (Buf + FilenamesSize > End) in readCoverageMappingData() [all …]
|
/external/clang/lib/Lex/ |
D | ScratchBuffer.cpp | 34 SourceLocation ScratchBuffer::getToken(const char *Buf, unsigned Len, in getToken() argument 47 memcpy(CurBuffer+BytesUsed, Buf, Len); in getToken() 71 llvm::MemoryBuffer &Buf = *OwnBuf; in AllocScratchBuffer() local 74 CurBuffer = const_cast<char*>(Buf.getBufferStart()); in AllocScratchBuffer()
|
/external/llvm/lib/Object/ |
D | Archive.cpp | 152 ErrorOr<std::unique_ptr<MemoryBuffer>> Buf = MemoryBuffer::getFile(FullName); in getBuffer() local 153 if (std::error_code EC = Buf.getError()) in getBuffer() 155 Parent->ThinBuffers.push_back(std::move(*Buf)); in getBuffer() 232 ErrorOr<StringRef> Buf = getBuffer(); in getMemoryBufferRef() local 233 if (std::error_code EC = Buf.getError()) in getMemoryBufferRef() 235 return MemoryBufferRef(*Buf, Name); in getMemoryBufferRef() 444 const char *Buf = Parent->getSymbolTable().begin(); in getMember() local 445 const char *Offsets = Buf; in getMember() 465 uint32_t MemberCount = read32le(Buf); in getMember() 466 Buf += MemberCount * 4 + 4; in getMember() [all …]
|
/external/llvm/lib/Support/ |
D | MemoryBuffer.cpp | 120 std::unique_ptr<MemoryBuffer> Buf = in getMemBufferCopy() local 122 if (!Buf) in getMemBufferCopy() 124 memcpy(const_cast<char*>(Buf->getBufferStart()), InputData.data(), in getMemBufferCopy() 126 return Buf; in getMemBufferCopy() 148 char *Buf = Mem + AlignedStringLen; in getNewUninitMemBuffer() local 149 Buf[Size] = 0; // Null terminate buffer. in getNewUninitMemBuffer() 151 auto *Ret = new (Mem) MemoryBufferMem(StringRef(Buf, Size), true); in getNewUninitMemBuffer() 369 std::unique_ptr<MemoryBuffer> Buf = in getOpenFileImpl() local 371 if (!Buf) { in getOpenFileImpl() 377 char *BufPtr = const_cast<char *>(Buf->getBufferStart()); in getOpenFileImpl() [all …]
|
D | StreamingMemoryObject.cpp | 28 uint64_t readBytes(uint8_t *Buf, uint64_t Size, 49 uint64_t RawMemoryObject::readBytes(uint8_t *Buf, uint64_t Size, in readBytes() argument 61 memcpy(Buf, Address + FirstChar, Size); in readBytes() 87 uint64_t StreamingMemoryObject::readBytes(uint8_t *Buf, uint64_t Size, in readBytes() argument 103 memcpy(Buf, &Bytes[Address + BytesSkipped], Size); in readBytes()
|
/external/llvm/unittests/Support/ |
D | StreamingMemoryObject.cpp | 35 uint8_t Buf[32]; in TEST() local 36 EXPECT_EQ((uint64_t) 16, O.readBytes(Buf, 16, 0)); in TEST() 38 EXPECT_EQ((uint64_t) 8, O.readBytes(Buf, 16, 16)); in TEST()
|
/external/llvm/lib/AsmParser/ |
D | Parser.cpp | 28 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(F); in parseAssemblyInto() local 29 SM.AddNewSourceBuffer(std::move(Buf), SMLoc()); in parseAssemblyInto() 73 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm); in parseConstantValue() local 74 SM.AddNewSourceBuffer(std::move(Buf), SMLoc()); in parseConstantValue()
|
/external/clang/lib/Rewrite/ |
D | HTMLRewrite.cpp | 109 const llvm::MemoryBuffer *Buf = R.getSourceMgr().getBuffer(FID); in EscapeText() local 110 const char* C = Buf->getBufferStart(); in EscapeText() 111 const char* FileEnd = Buf->getBufferEnd(); in EscapeText() 228 const llvm::MemoryBuffer *Buf = R.getSourceMgr().getBuffer(FID); in AddLineNumbers() local 229 const char* FileBeg = Buf->getBufferStart(); in AddLineNumbers() 230 const char* FileEnd = Buf->getBufferEnd(); in AddLineNumbers() 273 const llvm::MemoryBuffer *Buf = R.getSourceMgr().getBuffer(FID); in AddHeaderFooterInternalBuiltinCSS() local 274 const char* FileStart = Buf->getBufferStart(); in AddHeaderFooterInternalBuiltinCSS() 275 const char* FileEnd = Buf->getBufferEnd(); in AddHeaderFooterInternalBuiltinCSS()
|
/external/clang/lib/Index/ |
D | USRGeneration.cpp | 52 SmallVectorImpl<char> &Buf; member in __anonea9567f50111::USRGenerator 61 explicit USRGenerator(ASTContext *Ctx, SmallVectorImpl<char> &Buf) in USRGenerator() argument 62 : Buf(Buf), in USRGenerator() 63 Out(Buf), in USRGenerator() 159 const unsigned startSize = Buf.size(); in EmitDeclName() 161 const unsigned endSize = Buf.size(); in EmitDeclName() 463 assert(Buf.size() > 0); in VisitTagDecl() 464 const unsigned off = Buf.size() - 1; in VisitTagDecl() 468 Buf[off] = 'A'; in VisitTagDecl() 475 Buf[off] = 'a'; in VisitTagDecl() [all …]
|
/external/antlr/antlr-3.4/runtime/Delphi/Sources/Antlr3.Runtime/ |
D | Antlr.Runtime.Tree.pas | 787 procedure _ToStringLeaves(const Buf: TStringBuilder); 1478 procedure _ToStringLeaves(const Buf: TStringBuilder); 2086 const Buf: TStringBuilder); virtual; 2414 Buf: TStringBuilder; 2422 Buf := TStringBuilder.Create; 2426 Buf.Append('('); 2427 Buf.Append(ToString); 2428 Buf.Append(' '); 2435 Buf.Append(' '); 2436 Buf.Append(T.ToStringTree); [all …]
|
/external/clang/test/CodeGen/ |
D | 2002-07-30-VarArgsCallFailure.c | 6 char Buf[10]; in foo() local 7 test(Buf, "n%%%d", tcount++); in foo()
|
/external/llvm/tools/yaml2obj/ |
D | yaml2obj.cpp | 95 ErrorOr<std::unique_ptr<MemoryBuffer>> Buf = in main() local 97 if (!Buf) in main() 110 yaml::Input YIn(Buf.get()->getBuffer()); in main()
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitReader.cpp | 49 MemoryBufferRef Buf = unwrap(MemBuf)->getMemBufferRef(); in LLVMParseBitcodeInContext() local 58 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = parseBitcodeFile(Buf, Ctx); in LLVMParseBitcodeInContext() 76 MemoryBufferRef Buf = unwrap(MemBuf)->getMemBufferRef(); in LLVMParseBitcodeInContext2() local 79 ErrorOr<std::unique_ptr<Module>> ModuleOrErr = parseBitcodeFile(Buf, Ctx); in LLVMParseBitcodeInContext2()
|
/external/llvm/unittests/MC/ |
D | YAMLTest.cpp | 33 SmallVector<char, 32> Buf; in TEST() local 34 llvm::raw_svector_ostream OS(Buf); in TEST()
|