reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/Support/raw_ostream.h
  241   raw_ostream &write(const char *Ptr, size_t Size);

References

include/llvm/BinaryFormat/MachO.def
   15 HANDLE_LOAD_COMMAND(LC_SEGMENT, 0x00000001u, segment_command)
   16 HANDLE_LOAD_COMMAND(LC_SYMTAB, 0x00000002u, symtab_command)
   18 HANDLE_LOAD_COMMAND(LC_SYMSEG, 0x00000003u, symseg_command)
   19 HANDLE_LOAD_COMMAND(LC_THREAD, 0x00000004u, thread_command)
   20 HANDLE_LOAD_COMMAND(LC_UNIXTHREAD, 0x00000005u, thread_command)
   22 HANDLE_LOAD_COMMAND(LC_LOADFVMLIB, 0x00000006u, fvmlib_command)
   24 HANDLE_LOAD_COMMAND(LC_IDFVMLIB, 0x00000007u, fvmlib_command)
   26 HANDLE_LOAD_COMMAND(LC_IDENT, 0x00000008u, ident_command)
   28 HANDLE_LOAD_COMMAND(LC_FVMFILE, 0x00000009u, fvmfile_command)
   30 HANDLE_LOAD_COMMAND(LC_PREPAGE, 0x0000000Au, load_command)
   31 HANDLE_LOAD_COMMAND(LC_DYSYMTAB, 0x0000000Bu, dysymtab_command)
   32 HANDLE_LOAD_COMMAND(LC_LOAD_DYLIB, 0x0000000Cu, dylib_command)
   33 HANDLE_LOAD_COMMAND(LC_ID_DYLIB, 0x0000000Du, dylib_command)
   34 HANDLE_LOAD_COMMAND(LC_LOAD_DYLINKER, 0x0000000Eu, dylinker_command)
   35 HANDLE_LOAD_COMMAND(LC_ID_DYLINKER, 0x0000000Fu, dylinker_command)
   37 HANDLE_LOAD_COMMAND(LC_PREBOUND_DYLIB, 0x00000010u, prebound_dylib_command)
   38 HANDLE_LOAD_COMMAND(LC_ROUTINES, 0x00000011u, routines_command)
   39 HANDLE_LOAD_COMMAND(LC_SUB_FRAMEWORK, 0x00000012u, sub_framework_command)
   40 HANDLE_LOAD_COMMAND(LC_SUB_UMBRELLA, 0x00000013u, sub_umbrella_command)
   41 HANDLE_LOAD_COMMAND(LC_SUB_CLIENT, 0x00000014u, sub_client_command)
   42 HANDLE_LOAD_COMMAND(LC_SUB_LIBRARY, 0x00000015u, sub_library_command)
   44 HANDLE_LOAD_COMMAND(LC_TWOLEVEL_HINTS, 0x00000016u, twolevel_hints_command)
   46 HANDLE_LOAD_COMMAND(LC_PREBIND_CKSUM, 0x00000017u, prebind_cksum_command)
   48 HANDLE_LOAD_COMMAND(LC_LOAD_WEAK_DYLIB, 0x80000018u, dylib_command)
   49 HANDLE_LOAD_COMMAND(LC_SEGMENT_64, 0x00000019u, segment_command_64)
   50 HANDLE_LOAD_COMMAND(LC_ROUTINES_64, 0x0000001Au, routines_command_64)
   51 HANDLE_LOAD_COMMAND(LC_UUID, 0x0000001Bu, uuid_command)
   52 HANDLE_LOAD_COMMAND(LC_RPATH, 0x8000001Cu, rpath_command)
   53 HANDLE_LOAD_COMMAND(LC_CODE_SIGNATURE, 0x0000001Du, linkedit_data_command)
   54 HANDLE_LOAD_COMMAND(LC_SEGMENT_SPLIT_INFO, 0x0000001Eu, linkedit_data_command)
   55 HANDLE_LOAD_COMMAND(LC_REEXPORT_DYLIB, 0x8000001Fu, dylib_command)
   56 HANDLE_LOAD_COMMAND(LC_LAZY_LOAD_DYLIB, 0x00000020u, dylib_command)
   57 HANDLE_LOAD_COMMAND(LC_ENCRYPTION_INFO, 0x00000021u, encryption_info_command)
   58 HANDLE_LOAD_COMMAND(LC_DYLD_INFO, 0x00000022u, dyld_info_command)
   59 HANDLE_LOAD_COMMAND(LC_DYLD_INFO_ONLY, 0x80000022u, dyld_info_command)
   60 HANDLE_LOAD_COMMAND(LC_LOAD_UPWARD_DYLIB, 0x80000023u, dylib_command)
   61 HANDLE_LOAD_COMMAND(LC_VERSION_MIN_MACOSX, 0x00000024u, version_min_command)
   62 HANDLE_LOAD_COMMAND(LC_VERSION_MIN_IPHONEOS, 0x00000025u, version_min_command)
   63 HANDLE_LOAD_COMMAND(LC_FUNCTION_STARTS, 0x00000026u, linkedit_data_command)
   64 HANDLE_LOAD_COMMAND(LC_DYLD_ENVIRONMENT, 0x00000027u, dylinker_command)
   65 HANDLE_LOAD_COMMAND(LC_MAIN, 0x80000028u, entry_point_command)
   66 HANDLE_LOAD_COMMAND(LC_DATA_IN_CODE, 0x00000029u, linkedit_data_command)
   67 HANDLE_LOAD_COMMAND(LC_SOURCE_VERSION, 0x0000002Au, source_version_command)
   68 HANDLE_LOAD_COMMAND(LC_DYLIB_CODE_SIGN_DRS, 0x0000002Bu, linkedit_data_command)
   69 HANDLE_LOAD_COMMAND(LC_ENCRYPTION_INFO_64, 0x0000002Cu,
   71 HANDLE_LOAD_COMMAND(LC_LINKER_OPTION, 0x0000002Du, linker_option_command)
   72 HANDLE_LOAD_COMMAND(LC_LINKER_OPTIMIZATION_HINT, 0x0000002Eu, linkedit_data_command)
   73 HANDLE_LOAD_COMMAND(LC_VERSION_MIN_TVOS, 0x0000002Fu, version_min_command)
   74 HANDLE_LOAD_COMMAND(LC_VERSION_MIN_WATCHOS, 0x00000030u, version_min_command)
   75 HANDLE_LOAD_COMMAND(LC_NOTE, 0x00000031u, note_command)
   76 HANDLE_LOAD_COMMAND(LC_BUILD_VERSION, 0x00000032u, build_version_command)
include/llvm/Support/EndianStream.h
   29   os.write((const char *)&value, sizeof(value_type));
include/llvm/Support/circular_raw_ostream.h
   75         TheStream->write(Cur, BufferArray + BufferSize - Cur);
   77       TheStream->write(BufferArray, Cur - BufferArray);
include/llvm/Support/raw_ostream.h
  185       return write(Str.data(), Size);
  203     return write(Str.data(), Str.length());
  207     return write(Str.data(), Str.size());
lib/BinaryFormat/MsgPackWriter.cpp
  138   EW.OS.write(Buffer.getBufferStart(), Size);
  207   EW.OS.write(Buffer.getBufferStart(), Size);
lib/Bitcode/Writer/BitcodeWriter.cpp
 4480   Out.write((char*)&Buffer.front(), Buffer.size());
 4511   Out.write((char *)&Buffer.front(), Buffer.size());
 4672   Out.write((char *)&Buffer.front(), Buffer.size());
lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
  189       OS.write(LastEmitted, LiteralEnd-LastEmitted);
  302         OS.write(LastEmitted, LiteralEnd-LastEmitted);
lib/CodeGen/ParallelCG.cpp
   71             BCOSs[ThreadCount]->write(BC.begin(), BC.size());
lib/DebugInfo/GSYM/FileWriter.cpp
   24   OS.write(reinterpret_cast<const char *>(Bytes), Length);
   31   OS.write(reinterpret_cast<const char *>(Bytes), Length);
   35   OS.write(reinterpret_cast<const char *>(&U), sizeof(U));
   40   OS.write(reinterpret_cast<const char *>(&Swapped), sizeof(Swapped));
   45   OS.write(reinterpret_cast<const char *>(&Swapped), sizeof(Swapped));
   50   OS.write(reinterpret_cast<const char *>(&Swapped), sizeof(Swapped));
   60   OS.write(reinterpret_cast<const char *>(Data.data()), Data.size());
lib/MC/MCAssembler.cpp
  605       OS.write(Data, TrailingCount);
lib/MC/WasmObjectWriter.cpp
  405   W.OS.write(wasm::WasmMagic, sizeof(wasm::WasmMagic));
lib/MC/WinCOFFObjectWriter.cpp
  489     W.OS.write(COFF::BigObjMagic, sizeof(COFF::BigObjMagic));
  509   W.OS.write(S.Data.Name, COFF::NameSize);
  533       W.OS.write(reinterpret_cast<const char *>(&i.Aux),
  571     W.OS.write(S.Name, COFF::NameSize);
lib/ObjectYAML/COFFEmitter.cpp
  324   OS.write(Buffer, sizeof(BLE.Value));
  339   OS.write(Buffer, sizeof(Buffer));
  419     OS.write(reinterpret_cast<char *>(&DH), sizeof(DH));
  424     OS.write(COFF::PEMagic, sizeof(COFF::PEMagic));
  433     OS.write(COFF::BigObjMagic, sizeof(COFF::BigObjMagic));
  451       OS.write(reinterpret_cast<char *>(&PEH), sizeof(PEH));
  457       OS.write(reinterpret_cast<char *>(&PEH), sizeof(PEH));
  478     OS.write(i->Header.Name, COFF::NameSize);
  529     OS.write(i->Header.Name, COFF::NameSize);
  566       OS.write(i->File.data(), i->File.size());
  590     OS.write(&CP.StringTable[0], CP.StringTable.size());
lib/ObjectYAML/DWARFEmitter.cpp
   41   OS.write(reinterpret_cast<char *>(&Integer), sizeof(T));
   61   OS.write(reinterpret_cast<char *>(FillData.data()), Size);
   73     OS.write(Str.data(), Str.size());
  128     OS.write(Entry.Name.data(), Entry.Name.size());
  185     OS.write(String.data(), String.size());
  190     OS.write(MBR.getBufferStart(), MBR.getBufferSize());
  205   OS.write(File.Name.data(), File.Name.size());
  231       OS.write(IncludeDir.data(), IncludeDir.size());
lib/ObjectYAML/ELFEmitter.cpp
  199   OS.write((const char *)A.data(), arrayDataSize(A));
  285   OS.write((const char *)&Header, sizeof(Header));
  762       OS.write((const char *)&REntry, sizeof(REntry));
  768       OS.write((const char *)&REntry, sizeof(REntry));
  897     OS.write((const char *)&VerDef, sizeof(Elf_Verdef));
  906       OS.write((const char *)&VernAux, sizeof(Elf_Verdaux));
  938     OS.write((const char *)&VerNeed, sizeof(Elf_Verneed));
  952       OS.write((const char *)&VernAux, sizeof(Elf_Vernaux));
  985   OS.write((const char *)&Flags, sizeof(Flags));
lib/ObjectYAML/MachOEmitter.cpp
   87   OS.write((const char *)&Header, header_size);
  122     OS.write(reinterpret_cast<const char *>(&(TempSec)),
  138     OS.write(reinterpret_cast<const char *>(&(TempSec)),
  148     OS.write(LC.PayloadString.c_str(), LC.PayloadString.length());
  183     OS.write(reinterpret_cast<const char *>(&tool),
  193   OS.write(reinterpret_cast<char *>(FillData.data()), Size);
  199   OS.write(reinterpret_cast<char *>(FillData.data()), Size);
  228       OS.write(reinterpret_cast<const char *>(&(Data.load_command_data)),
  238       OS.write(reinterpret_cast<const char *>(LC.PayloadBytes.data()),
  329     OS.write(reinterpret_cast<char *>(&OpByte), 1);
  337       OS.write(Opcode.Symbol.data(), Opcode.Symbol.size());
  384   OS.write(reinterpret_cast<const char *>(&ListEntry), sizeof(NListType));
  434     OS.write(reinterpret_cast<char *>(&OpByte), 1);
  463     OS.write(Str.data(), Str.size());
  515   OS.write(reinterpret_cast<const char *>(&header), sizeof(MachO::fat_header));
  537   OS.write(reinterpret_cast<const char *>(&FatArch), sizeof(MachO::fat_arch));
  547   OS.write(reinterpret_cast<const char *>(&FatArch),
lib/ObjectYAML/WasmEmitter.cpp
   93   OS.write(Data, sizeof(Data));
  100   OS.write(Data, sizeof(Data));
  107   OS.write(Data, sizeof(Data));
  546   OS.write(wasm::WasmMagic, sizeof(wasm::WasmMagic));
lib/ObjectYAML/YAML.cpp
   42     OS.write((const char *)Data.data(), Data.size());
   57     OS.write((const char *)Data.data(), Data.size());
lib/ProfileData/InstrProfWriter.cpp
  137     Out.write(K.data(), N);
  161       Out.write((const char *)VDataPtr.get(), S);
lib/Remarks/BitstreamRemarkSerializer.cpp
  319   OS.write(Encoded.data(), Encoded.size());
lib/Remarks/YAMLRemarkSerializer.cpp
  218   OS.write(Version.data(), Version.size());
  229   OS.write(StrTabSizeBuf.data(), StrTabSizeBuf.size());
  239   OS.write(FilenameBuf.data(), FilenameBuf.size());
lib/Support/CodeGenCoverage.cpp
  113     CoverageFile->os().write((const char *)&Zero, sizeof(unsigned char));
  115       CoverageFile->os().write((const char *)&I, sizeof(uint64_t));
  116     CoverageFile->os().write((const char *)&InvZero, sizeof(uint64_t));
lib/Support/FileUtilities.cpp
  292                                OS.write(Buffer.data(), Buffer.size());
lib/Support/FormattedStream.cpp
   82   TheStream->write(Ptr, Size);
lib/Support/NativeFormatting.cpp
   38   S.write(ThisGroup.data(), ThisGroup.size());
   45     S.write(ThisGroup.data(), 3);
   72     S.write(std::end(NumberBuffer) - Len, Len);
  160   S.write(NumberBuffer, NumChars);
lib/Support/circular_raw_ostream.cpp
   19     TheStream->write(Ptr, Size);
   41     TheStream->write(Banner, std::strlen(Banner));
lib/Support/raw_ostream.cpp
  252       return write(Ptr, Size);
  267         return write(Ptr + BytesToWrite, BytesRemaining);
  277     return write(Ptr + NumBytes, Size - NumBytes);
  337       return write(V.data(), BytesUsed);
  484     return OS.write(Chars, NumChars);
  489     OS.write(Chars, NumToWrite);
  771   write(Ptr, Size);
  817     write(colorcode, len);
  833     write(colorcode, len);
  849     write(colorcode, len);
lib/Target/AMDGPU/AMDGPULibFunc.cpp
  718     OS.write(S.data(), S.size());
lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
  380     OS.write("\0\0", 2);
  383     OS.write("\0\0\xa0", 3);
lib/Target/Lanai/MCTargetDesc/LanaiAsmBackend.cpp
   89     OS.write("\x15\0\0\0", 4);
lib/Target/MSP430/MCTargetDesc/MSP430AsmBackend.cpp
  165     OS.write("\x03\x43", 2);
lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
  173     OS.write("\x13\0\0\0", 4);
  177     OS.write("\x01\0", 2);
lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
  368       OS.write(Nops[Rest - 1], Rest);
lib/Transforms/Instrumentation/GCOVProfiling.cpp
  211       os->write(Bytes, Size);
  756     out.write("oncg", 4);
  757     out.write(ReversedVersion, 4);
  758     out.write(reinterpret_cast<char*>(&FileChecksums.back()), 4);
  765     out.write("\0\0\0\0\0\0\0\0", 8);  // EOF
tools/clang/lib/ARCMigrate/FileRemapper.cpp
  152       newOut.write(mem->getBufferStart(), mem->getBufferSize());
  185     Out.write(mem->getBufferStart(), mem->getBufferSize());
tools/clang/lib/ARCMigrate/ObjCMT.cpp
 2224   TmpOut.write(NewText.data(), NewText.size());
tools/clang/lib/AST/ItaniumMangle.cpp
 1043   Out.write(buffer.data(), numCharacters);
 4654     Out.write(I.base(), I - BufferRef.rbegin());
tools/clang/lib/AST/MicrosoftMangle.cpp
  754     Out.write(I.base(), I - BufferRef.rbegin());
tools/clang/lib/Frontend/ASTUnit.cpp
 2330     OS.write(Buffer.data(), Buffer.size());
tools/clang/lib/Frontend/FrontendActions.cpp
  868     llvm::outs().write((*Buffer)->getBufferStart(), Preamble);
tools/clang/lib/Frontend/PrintPreprocessedOutput.cpp
  203       OS.write(Extra, ExtraLen);
  206       OS.write(" 3", 2);
  208       OS.write(" 3 4", 4);
  227       OS.write(NewLines, LineNo-CurLine);
  403   OS.write("#ident ", strlen("#ident "));
  404   OS.write(S.begin(), S.size());
  673     Callbacks->OS.write(Prefix, strlen(Prefix));
  696       Callbacks->OS.write(&TokSpell[0], TokSpell.size());
  780       OS.write(Name.data(), Name.size());
  791       OS.write(Tok.getLiteralData(), Tok.getLength());
  795       OS.write(TokPtr, Len);
  803       OS.write(S.data(), S.size());
tools/clang/lib/Frontend/Rewrite/HTMLPrint.cpp
   90   Out->write(Buffer.get(), RewriteBuf.size());
tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp
  792   OS->write((char *)&State->Buffer.front(), State->Buffer.size());
tools/clang/lib/Frontend/TextDiagnostic.cpp
  651     OS.write(&IndentStr[0], Indentation);
tools/clang/lib/Serialization/ASTWriter.cpp
 2039       Out.write(key.Filename.data(), KeyLen);
 3709     Out.write(II->getNameStart(), KeyLen);
 5045         Out.write(Name.data(), Name.size());
tools/clang/lib/Serialization/GlobalModuleIndex.cpp
  745     Out.write(Key.data(), KeyLen);
tools/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
  202     OS.write(&Char, 1);
  314     OS.write(FC.data() + CurBundleInfo->second.Offset,
  362     OS.write(Input.getBufferStart(), Input.getBufferSize());
  439     OS.write(Content->data(), Content->size());
  792         OutputFile.write(Input.getBufferStart(), Input.getBufferSize());
tools/clang/tools/extra/clangd/RIFF.cpp
   41   OS.write(C.ID.data(), C.ID.size());
   44   OS.write(Size, sizeof(Size));
   77   OS.write(Size, sizeof(Size));
   78   OS.write(F.Type.data(), F.Type.size());
tools/clang/tools/extra/clangd/SemanticHighlighting.cpp
  340   OS.write(Buf.data(), Buf.size());
  346   OS.write(Buf.data(), Buf.size());
tools/clang/tools/extra/clangd/index/Serialization.cpp
  116   OS.write(Buf, sizeof(Buf));
tools/dsymutil/MachOUtils.cpp
  272   Writer.W.OS.write(reinterpret_cast<char *>(&Segment), sizeof(Segment));
  278     Writer.W.OS.write(reinterpret_cast<char *>(&Sect), sizeof(Sect));
  467     OutFile.write(reinterpret_cast<const char *>(UUIDCmd.uuid), 16);
  539       OutFile.write(EntryRef.getString().data(),
tools/lld/wasm/SyntheticSections.cpp
   45     to.write(body.data(), body.size());
tools/lld/wasm/WriterUtils.cpp
   83   os.write(bytes, count);
   90   os.write(string.data(), string.size());
tools/lldb/include/lldb/Utility/ReproducerInstrumentation.h
  577       m_stream.write(reinterpret_cast<const char *>(&t), sizeof(T));
tools/lldb/source/Expression/IRExecutionUnit.cpp
  307       fds.write(object.getBufferStart(), object.getBufferSize());
tools/lldb/source/Plugins/Platform/Android/AdbClient.cpp
  417   dst.write(&output_buffer[0], output_buffer.size());
  457       dst.write(&chunk[0], chunk.size());
tools/lldb/source/Target/Platform.cpp
 1663     dst.write(&buffer[0], n_read);
tools/lli/lli.cpp
  255     outfile.write(Obj.getBufferStart(), Obj.getBufferSize());
tools/llvm-ar/llvm-ar.cpp
  446   outs().write(Data.data(), Data.size());
  548     file.write(Data.data(), Data.size());
tools/llvm-cat/llvm-cat.cpp
   95   OS.write(Buffer.data(), Buffer.size());
tools/llvm-objdump/llvm-objdump.cpp
 1963   outs().write(ClangASTContents.data(), ClangASTContents.size());
tools/llvm-rc/ResourceFileWriter.cpp
  364   FS->write((const char *)Data.begin(), Data.size());
unittests/DebugInfo/DWARF/DwarfGenerator.cpp
  537   Strm.write(FileBytes.data(), FileBytes.size());
unittests/Support/formatted_raw_ostream_test.cpp
   26     C.write(tmp, 100);