Home
last modified time | relevance | path

Searched refs:Buf (Results 1 – 25 of 144) sorted by relevance

123456

/third_party/giflib/
Degif_lib.c42 static int EGifBufferedOutput(GifFileType * GifFile, GifByteType * Buf,
279 GifByteType Buf[3]; in EGifPutScreenDesc() local
330 Buf[0] = (ColorMap ? 0x80 : 0x00) | /* Yes/no global colormap */ in EGifPutScreenDesc()
335 Buf[0] |= 0x08; in EGifPutScreenDesc()
336 Buf[1] = BackGround; /* Index into the ColorTable for background color */ in EGifPutScreenDesc()
337 Buf[2] = GifFile->AspectByte; /* Pixel Aspect Ratio */ in EGifPutScreenDesc()
338 InternalWrite(GifFile, Buf, 3); in EGifPutScreenDesc()
345 Buf[0] = ColorMap->Colors[i].Red; in EGifPutScreenDesc()
346 Buf[1] = ColorMap->Colors[i].Green; in EGifPutScreenDesc()
347 Buf[2] = ColorMap->Colors[i].Blue; in EGifPutScreenDesc()
[all …]
Ddgif_lib.c47 static int DGifBufferedInput(GifFileType *GifFile, GifByteType *Buf,
79 char Buf[GIF_STAMP_LEN + 1]; in DGifOpenFileHandle() local
126 if (InternalRead(GifFile, (unsigned char *)Buf, GIF_STAMP_LEN) != GIF_STAMP_LEN) { in DGifOpenFileHandle()
136 Buf[GIF_STAMP_LEN] = 0; in DGifOpenFileHandle()
137 if (strncmp(GIF_STAMP, Buf, GIF_VERSION_POS) != 0) { in DGifOpenFileHandle()
156 Private->gif89 = (Buf[GIF_VERSION_POS] == '9'); in DGifOpenFileHandle()
167 char Buf[GIF_STAMP_LEN + 1]; in DGifOpen() local
203 if (InternalRead(GifFile, (unsigned char *)Buf, GIF_STAMP_LEN) != GIF_STAMP_LEN) { in DGifOpen()
212 Buf[GIF_STAMP_LEN] = '\0'; in DGifOpen()
213 if (strncmp(GIF_STAMP, Buf, GIF_VERSION_POS) != 0) { in DGifOpen()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
DCOFFModuleDefinition.cpp90 Lexer(StringRef S) : Buf(S) {} in Lexer()
93 Buf = Buf.trim(); in lex()
94 if (Buf.empty()) in lex()
97 switch (Buf[0]) { in lex()
101 size_t End = Buf.find('\n'); in lex()
102 Buf = (End == Buf.npos) ? "" : Buf.drop_front(End); in lex()
106 Buf = Buf.drop_front(); in lex()
107 if (Buf.startswith("=")) { in lex()
108 Buf = Buf.drop_front(); in lex()
113 Buf = Buf.drop_front(); in lex()
[all …]
DArchive.cpp78 std::string Buf; in ArchiveMemberHeader() local
79 raw_string_ostream OS(Buf); in ArchiveMemberHeader()
83 std::string Msg("terminator characters in archive member \"" + Buf + in ArchiveMemberHeader()
157 std::string Buf; in getName() local
158 raw_string_ostream OS(Buf); in getName()
164 "not all decimal numbers: '" + Buf + "' for " in getName()
195 std::string Buf; in getName() local
196 raw_string_ostream OS(Buf); in getName()
202 "not all decimal numbers: '" + Buf + "' for " in getName()
230 std::string Buf; in getSize() local
[all …]
DObject.cpp79 auto Buf = unwrap(BR)->getMemoryBufferRef(); in LLVMBinaryCopyMemoryBuffer() local
81 Buf.getBuffer(), Buf.getBufferIdentifier(), in LLVMBinaryCopyMemoryBuffer()
179 std::unique_ptr<MemoryBuffer> Buf(unwrap(MemBuf)); in LLVMCreateObjectFile() local
181 ObjectFile::createObjectFile(Buf->getMemBufferRef())); in LLVMCreateObjectFile()
189 auto *Ret = new OwningBinary<ObjectFile>(std::move(ObjOrErr.get()), std::move(Buf)); in LLVMCreateObjectFile()
222 std::string Buf; in LLVMMoveToContainingSection() local
223 raw_string_ostream OS(Buf); in LLVMMoveToContainingSection()
226 report_fatal_error(Buf); in LLVMMoveToContainingSection()
304 std::string Buf; in LLVMGetSymbolName() local
305 raw_string_ostream OS(Buf); in LLVMGetSymbolName()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Remarks/
DYAMLRemarkParser.cpp61 static Expected<bool> parseMagic(StringRef &Buf) { in parseMagic() argument
62 if (!Buf.consume_front(remarks::Magic)) in parseMagic()
65 if (Buf.size() < 1 || !Buf.consume_front(StringRef("\0", 1))) in parseMagic()
71 static Expected<uint64_t> parseVersion(StringRef &Buf) { in parseVersion() argument
72 if (Buf.size() < sizeof(uint64_t)) in parseVersion()
78 Buf.data()); in parseVersion()
84 Buf = Buf.drop_front(sizeof(uint64_t)); in parseVersion()
88 static Expected<uint64_t> parseStrTabSize(StringRef &Buf) { in parseStrTabSize() argument
89 if (Buf.size() < sizeof(uint64_t)) in parseStrTabSize()
94 Buf.data()); in parseStrTabSize()
[all …]
DRemarkParser.cpp52 llvm::remarks::createRemarkParser(Format ParserFormat, StringRef Buf) { in createRemarkParser() argument
55 return std::make_unique<YAMLRemarkParser>(Buf); in createRemarkParser()
61 return std::make_unique<BitstreamRemarkParser>(Buf); in createRemarkParser()
70 llvm::remarks::createRemarkParser(Format ParserFormat, StringRef Buf, in createRemarkParser() argument
78 return std::make_unique<YAMLStrTabRemarkParser>(Buf, std::move(StrTab)); in createRemarkParser()
80 return std::make_unique<BitstreamRemarkParser>(Buf, std::move(StrTab)); in createRemarkParser()
90 Format ParserFormat, StringRef Buf, Optional<ParsedStringTable> StrTab, in createRemarkParserFromMeta() argument
97 return createYAMLParserFromMeta(Buf, std::move(StrTab), in createRemarkParserFromMeta()
100 return createBitstreamParserFromMeta(Buf, std::move(StrTab), in createRemarkParserFromMeta()
115 CParser(Format ParserFormat, StringRef Buf, in CParser()
[all …]
DBitstreamRemarkParser.h46 explicit BitstreamRemarkParser(StringRef Buf) in BitstreamRemarkParser()
47 : RemarkParser(Format::Bitstream), ParserHelper(Buf) {} in BitstreamRemarkParser()
50 BitstreamRemarkParser(StringRef Buf, ParsedStringTable StrTab) in BitstreamRemarkParser()
51 : RemarkParser(Format::Bitstream), ParserHelper(Buf), in BitstreamRemarkParser()
78 StringRef Buf, Optional<ParsedStringTable> StrTab = None,
DYAMLRemarkParser.h66 YAMLRemarkParser(StringRef Buf);
75 YAMLRemarkParser(StringRef Buf, Optional<ParsedStringTable> StrTab);
100 YAMLStrTabRemarkParser(StringRef Buf, ParsedStringTable StrTab) in YAMLStrTabRemarkParser()
101 : YAMLRemarkParser(Buf, std::move(StrTab)) {} in YAMLStrTabRemarkParser()
113 createYAMLParserFromMeta(StringRef Buf,
/third_party/skia/third_party/externals/spirv-cross/shaders/asm/comp/
Dhlsl-functionality.asm.comp15 OpName %Buf "Buf"
16 OpMemberName %Buf 0 "@data"
17 OpName %Buf_0 "Buf"
18 OpName %Buf_count "Buf@count"
20 OpName %Buf_count_0 "Buf@count"
22 OpMemberDecorate %Buf 0 Offset 0
23 OpDecorate %Buf BufferBlock
36 %Buf = OpTypeStruct %_runtimearr_v4float
37 %_ptr_Uniform_Buf = OpTypePointer Uniform %Buf
/third_party/skia/third_party/externals/tint/test/bug/tint/
D221.wgsl.expected.spvasm10 OpName %Buf "Buf"
11 OpMemberName %Buf 0 "count"
12 OpMemberName %Buf 1 "data"
16 OpDecorate %Buf Block
17 OpMemberDecorate %Buf 0 Offset 0
18 OpMemberDecorate %Buf 1 Offset 4
25 %Buf = OpTypeStruct %uint %_arr_uint_uint_50
26 %_ptr_StorageBuffer_Buf = OpTypePointer StorageBuffer %Buf
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/pnacl-llvm/include/llvm/Bitcode/NaCl/
DNaClBitcodeHeader.h84 bool Write(uint8_t *Buf, size_t BufLen) const;
87 bool Read(const uint8_t *Buf, size_t BufLen);
101 static size_t GetDataSizeFromSerialized(const uint8_t *Buf) { in GetDataSizeFromSerialized() argument
103 ReadFixedSubfield(&Length, Buf + sizeof(FixedSubfield)); in GetDataSizeFromSerialized()
136 static void WriteFixedSubfield(FixedSubfield Value, uint8_t *Buf) { in WriteFixedSubfield() argument
137 Buf[0] = Value & 0xFF; in WriteFixedSubfield()
138 Buf[1] = (Value >> 8) & 0xFF; in WriteFixedSubfield()
140 static void ReadFixedSubfield(FixedSubfield *Value, const uint8_t *Buf) { in ReadFixedSubfield() argument
141 *Value = Buf[0] | Buf[1] << 8; in ReadFixedSubfield()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Demangle/
DDemangle.h69 char *finishDemangle(char *Buf, size_t *N) const;
73 char *getFunctionBaseName(char *Buf, size_t *N) const;
77 char *getFunctionDeclContextName(char *Buf, size_t *N) const;
80 char *getFunctionName(char *Buf, size_t *N) const;
83 char *getFunctionParameters(char *Buf, size_t *N) const;
84 char *getFunctionReturnType(char *Buf, size_t *N) const;
DMicrosoftDemangle.h30 uint8_t *Buf = nullptr; member
38 NewHead->Buf = new uint8_t[Capacity]; in addNode()
50 assert(Head->Buf); in ~ArenaAllocator()
51 delete[] Head->Buf; in ~ArenaAllocator()
59 assert(Head && Head->Buf); in allocUnalignedBuffer()
61 uint8_t *P = Head->Buf + Head->Used; in allocUnalignedBuffer()
69 return reinterpret_cast<char *>(Head->Buf); in allocUnalignedBuffer()
74 assert(Head && Head->Buf); in allocArray()
76 size_t P = (size_t)Head->Buf + Head->Used; in allocArray()
88 return new (Head->Buf) T[Count](); in allocArray()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/
DBinary.h185 std::unique_ptr<MemoryBuffer> Buf; variable
189 OwningBinary(std::unique_ptr<T> Bin, std::unique_ptr<MemoryBuffer> Buf);
201 std::unique_ptr<MemoryBuffer> Buf) in OwningBinary() argument
202 : Bin(std::move(Bin)), Buf(std::move(Buf)) {} in OwningBinary()
208 : Bin(std::move(Other.Bin)), Buf(std::move(Other.Buf)) {} in OwningBinary()
213 Buf = std::move(Other.Buf);
220 return std::make_pair(std::move(Bin), std::move(Buf)); in takeBinary()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/FuzzMutate/
DFuzzerCLI.cpp161 std::unique_ptr<MemoryBuffer> Buf = std::move(BufOrErr.get()); in runFuzzerOnInputs() local
162 errs() << "Running: " << Arg << " (" << Buf->getBufferSize() << " bytes)\n"; in runFuzzerOnInputs()
163 TestOne(reinterpret_cast<const uint8_t *>(Buf->getBufferStart()), in runFuzzerOnInputs()
164 Buf->getBufferSize()); in runFuzzerOnInputs()
190 std::string Buf; in writeModule() local
192 raw_string_ostream OS(Buf); in writeModule()
195 if (Buf.size() > MaxSize) in writeModule()
197 memcpy(Dest, Buf.data(), Buf.size()); in writeModule()
198 return Buf.size(); in writeModule()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Demangle/
DItaniumDemangle.cpp328 char *llvm::itaniumDemangle(const char *MangledName, char *Buf, in itaniumDemangle() argument
330 if (MangledName == nullptr || (Buf != nullptr && N == nullptr)) { in itaniumDemangle()
344 else if (!initializeOutputStream(Buf, N, S, 1024)) in itaniumDemangle()
352 Buf = S.getBuffer(); in itaniumDemangle()
357 return InternalStatus == demangle_success ? Buf : nullptr; in itaniumDemangle()
389 static char *printNode(const Node *RootNode, char *Buf, size_t *N) { in printNode() argument
391 if (!initializeOutputStream(Buf, N, S, 128)) in printNode()
400 char *ItaniumPartialDemangler::getFunctionBaseName(char *Buf, size_t *N) const { in getFunctionBaseName() argument
424 return printNode(Name, Buf, N); in getFunctionBaseName()
429 char *ItaniumPartialDemangler::getFunctionDeclContextName(char *Buf, in getFunctionDeclContextName() argument
[all …]
/third_party/gettext/gnulib-local/lib/
Dxgetcwd.c38 # define getcwd(Buf, Max) (getcwd) (Buf, Max, 0) argument
44 # define getcwd(Buf, Max) getwd (Buf) argument
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DSHA1.cpp34 static inline uint32_t blk0(uint32_t *Buf, int I) { return Buf[I]; } in blk0() argument
36 static inline uint32_t blk(uint32_t *Buf, int I) { in blk() argument
37 Buf[I & 15] = rol(Buf[(I + 13) & 15] ^ Buf[(I + 8) & 15] ^ Buf[(I + 2) & 15] ^ in blk()
38 Buf[I & 15], in blk()
40 return Buf[I & 15]; in blk()
44 uint32_t &E, int I, uint32_t *Buf) { in r0() argument
45 E += ((B & (C ^ D)) ^ D) + blk0(Buf, I) + 0x5A827999 + rol(A, 5); in r0()
50 uint32_t &E, int I, uint32_t *Buf) { in r1() argument
51 E += ((B & (C ^ D)) ^ D) + blk(Buf, I) + 0x5A827999 + rol(A, 5); in r1()
56 uint32_t &E, int I, uint32_t *Buf) { in r2() argument
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/crosstest/
Dtest_calling_conv_main.cpp50 char *Buf; variable
54 std::string bufAsString(const char Buf[BUF_SIZE]) { in bufAsString()
59 OS << (unsigned)Buf[i]; in bufAsString()
107 Buf = BufLlc; in testCaller()
110 Buf = BufSz; in testCaller()
156 Buf = BufLlc; in testCallee()
160 Buf = BufSz; in testCallee()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/AsmParser/
DParser.cpp30 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(F); in parseAssemblyInto() local
31 SM.AddNewSourceBuffer(std::move(Buf), SMLoc()); in parseAssemblyInto()
114 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(F); in parseSummaryIndexAssemblyInto() local
115 SM.AddNewSourceBuffer(std::move(Buf), SMLoc()); in parseSummaryIndexAssemblyInto()
150 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm); in parseConstantValue() local
151 SM.AddNewSourceBuffer(std::move(Buf), SMLoc()); in parseConstantValue()
167 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm); in parseType() local
168 SM.AddNewSourceBuffer(std::move(Buf), SMLoc()); in parseType()
179 std::unique_ptr<MemoryBuffer> Buf = MemoryBuffer::getMemBuffer(Asm); in parseTypeAtBeginning() local
180 SM.AddNewSourceBuffer(std::move(Buf), SMLoc()); in parseTypeAtBeginning()
/third_party/libcoap/include/coap3/
Dcoap_prng.h48 #define coap_prng(Buf,Length) contiki_prng_impl((Buf), (Length)) argument
67 #define coap_prng(Buf,Length) lwip_prng_impl((Buf), (Length)) argument
/third_party/abseil-cpp/absl/strings/internal/
Dostringstream.cc21 OStringStream::Buf::int_type OStringStream::overflow(int c) { in overflow()
23 if (!Buf::traits_type::eq_int_type(c, Buf::traits_type::eof())) in overflow()
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
Dostringstream.cc21 OStringStream::Buf::int_type OStringStream::overflow(int c) { in overflow()
23 if (!Buf::traits_type::eq_int_type(c, Buf::traits_type::eof())) in overflow()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/pnacl-llvm/
DNaClBitcodeHeader.cpp95 bool NaClBitcodeHeaderField::Write(uint8_t *Buf, size_t BufLen) const { in Write() argument
104 WriteFixedSubfield(EncodeTypedID(), Buf); in Write()
106 Buf + sizeof(FixedSubfield)); in Write()
107 memcpy(Buf + kTagLenSize, Data, Len); in Write()
110 memset(Buf + FieldsLen, 0, PadLen); in Write()
115 bool NaClBitcodeHeaderField::Read(const uint8_t *Buf, size_t BufLen) { in Read() argument
119 ReadFixedSubfield(&IdField, Buf); in Read()
121 ReadFixedSubfield(&LengthField, Buf + sizeof(FixedSubfield)); in Read()
133 memcpy(Data, Buf + kTagLenSize, Len); in Read()

123456