• Home
  • Raw
  • Download

Lines Matching full:io

16 #define ECase(X) IO.enumCase(Value, #X, COFF::X);
27 IO &IO, COFFYAML::COMDATType &Value) { in enumeration() argument
28 IO.enumCase(Value, "0", 0); in enumeration()
40 IO &IO, COFFYAML::WeakExternalCharacteristics &Value) { in enumeration() argument
41 IO.enumCase(Value, "0", 0); in enumeration()
48 IO &IO, COFFYAML::AuxSymbolType &Value) { in enumeration() argument
53 IO &IO, COFF::MachineTypes &Value) { in enumeration() argument
79 IO &IO, COFF::SymbolBaseType &Value) { in enumeration() argument
99 IO &IO, COFF::SymbolStorageClass &Value) { in enumeration() argument
130 IO &IO, COFF::SymbolComplexType &Value) { in enumeration() argument
138 IO &IO, COFF::RelocationTypeI386 &Value) { in enumeration() argument
153 IO &IO, COFF::RelocationTypeAMD64 &Value) { in enumeration() argument
174 IO &IO, COFF::WindowsSubsystem &Value) { in enumeration() argument
192 #define BCase(X) IO.bitSetCase(Value, #X, COFF::X);
194 IO &IO, COFF::Characteristics &Value) { in bitset() argument
213 IO &IO, COFF::SectionCharacteristics &Value) { in bitset() argument
239 IO &IO, COFF::DLLCharacteristics &Value) { in bitset() argument
256 NSectionSelectionType(IO &) in NSectionSelectionType()
258 NSectionSelectionType(IO &, uint8_t C) in NSectionSelectionType()
260 uint8_t denormalize(IO &) { return SelectionType; } in denormalize()
265 NWeakExternalCharacteristics(IO &) in NWeakExternalCharacteristics()
267 NWeakExternalCharacteristics(IO &, uint32_t C) in NWeakExternalCharacteristics()
269 uint32_t denormalize(IO &) { return Characteristics; } in denormalize()
274 NSectionCharacteristics(IO &) in NSectionCharacteristics()
276 NSectionCharacteristics(IO &, uint32_t C) in NSectionCharacteristics()
278 uint32_t denormalize(IO &) { return Characteristics; } in denormalize()
283 NAuxTokenType(IO &) in NAuxTokenType()
285 NAuxTokenType(IO &, uint8_t C) in NAuxTokenType()
287 uint32_t denormalize(IO &) { return AuxType; } in denormalize()
292 NStorageClass(IO &) : StorageClass(COFF::SymbolStorageClass(0)) {} in NStorageClass()
293 NStorageClass(IO &, uint8_t S) : StorageClass(COFF::SymbolStorageClass(S)) {} in NStorageClass()
294 uint8_t denormalize(IO &) { return StorageClass; } in denormalize()
300 NMachine(IO &) : Machine(COFF::MachineTypes(0)) {} in NMachine()
301 NMachine(IO &, uint16_t M) : Machine(COFF::MachineTypes(M)) {} in NMachine()
302 uint16_t denormalize(IO &) { return Machine; } in denormalize()
307 NHeaderCharacteristics(IO &) : Characteristics(COFF::Characteristics(0)) {} in NHeaderCharacteristics()
308 NHeaderCharacteristics(IO &, uint16_t C) in NHeaderCharacteristics()
310 uint16_t denormalize(IO &) { return Characteristics; } in denormalize()
317 NType(IO &) : Type(RelocType(0)) {} in NType()
318 NType(IO &, uint16_t T) : Type(RelocType(T)) {} in NType()
319 uint16_t denormalize(IO &) { return Type; } in denormalize()
324 NWindowsSubsystem(IO &) : Subsystem(COFF::WindowsSubsystem(0)) {} in NWindowsSubsystem()
325 NWindowsSubsystem(IO &, uint16_t C) : Subsystem(COFF::WindowsSubsystem(C)) {} in NWindowsSubsystem()
326 uint16_t denormalize(IO &) { return Subsystem; } in denormalize()
332 NDLLCharacteristics(IO &) : Characteristics(COFF::DLLCharacteristics(0)) {} in NDLLCharacteristics()
333 NDLLCharacteristics(IO &, uint16_t C) in NDLLCharacteristics()
335 uint16_t denormalize(IO &) { return Characteristics; } in denormalize()
342 void MappingTraits<COFFYAML::Relocation>::mapping(IO &IO, in mapping() argument
344 IO.mapRequired("VirtualAddress", Rel.VirtualAddress); in mapping()
345 IO.mapRequired("SymbolName", Rel.SymbolName); in mapping()
347 COFF::header &H = *static_cast<COFF::header *>(IO.getContext()); in mapping()
350 IO, Rel.Type); in mapping()
351 IO.mapRequired("Type", NT->Type); in mapping()
354 IO, Rel.Type); in mapping()
355 IO.mapRequired("Type", NT->Type); in mapping()
357 IO.mapRequired("Type", Rel.Type); in mapping()
361 void MappingTraits<COFF::DataDirectory>::mapping(IO &IO, in mapping() argument
363 IO.mapRequired("RelativeVirtualAddress", DD.RelativeVirtualAddress); in mapping()
364 IO.mapRequired("Size", DD.Size); in mapping()
367 void MappingTraits<COFFYAML::PEHeader>::mapping(IO &IO, in mapping() argument
369 MappingNormalization<NWindowsSubsystem, uint16_t> NWS(IO, in mapping()
372 IO, PH.Header.DLLCharacteristics); in mapping()
374 IO.mapRequired("AddressOfEntryPoint", PH.Header.AddressOfEntryPoint); in mapping()
375 IO.mapRequired("ImageBase", PH.Header.ImageBase); in mapping()
376 IO.mapRequired("SectionAlignment", PH.Header.SectionAlignment); in mapping()
377 IO.mapRequired("FileAlignment", PH.Header.FileAlignment); in mapping()
378 IO.mapRequired("MajorOperatingSystemVersion", in mapping()
380 IO.mapRequired("MinorOperatingSystemVersion", in mapping()
382 IO.mapRequired("MajorImageVersion", PH.Header.MajorImageVersion); in mapping()
383 IO.mapRequired("MinorImageVersion", PH.Header.MinorImageVersion); in mapping()
384 IO.mapRequired("MajorSubsystemVersion", PH.Header.MajorSubsystemVersion); in mapping()
385 IO.mapRequired("MinorSubsystemVersion", PH.Header.MinorSubsystemVersion); in mapping()
386 IO.mapRequired("Subsystem", NWS->Subsystem); in mapping()
387 IO.mapRequired("DLLCharacteristics", NDC->Characteristics); in mapping()
388 IO.mapRequired("SizeOfStackReserve", PH.Header.SizeOfStackReserve); in mapping()
389 IO.mapRequired("SizeOfStackCommit", PH.Header.SizeOfStackCommit); in mapping()
390 IO.mapRequired("SizeOfHeapReserve", PH.Header.SizeOfHeapReserve); in mapping()
391 IO.mapRequired("SizeOfHeapCommit", PH.Header.SizeOfHeapCommit); in mapping()
393 IO.mapOptional("ExportTable", PH.DataDirectories[COFF::EXPORT_TABLE]); in mapping()
394 IO.mapOptional("ImportTable", PH.DataDirectories[COFF::IMPORT_TABLE]); in mapping()
395 IO.mapOptional("ResourceTable", PH.DataDirectories[COFF::RESOURCE_TABLE]); in mapping()
396 IO.mapOptional("ExceptionTable", PH.DataDirectories[COFF::EXCEPTION_TABLE]); in mapping()
397 IO.mapOptional("CertificateTable", PH.DataDirectories[COFF::CERTIFICATE_TABLE]); in mapping()
398 IO.mapOptional("BaseRelocationTable", in mapping()
400 IO.mapOptional("Debug", PH.DataDirectories[COFF::DEBUG_DIRECTORY]); in mapping()
401 IO.mapOptional("Architecture", PH.DataDirectories[COFF::ARCHITECTURE]); in mapping()
402 IO.mapOptional("GlobalPtr", PH.DataDirectories[COFF::GLOBAL_PTR]); in mapping()
403 IO.mapOptional("TlsTable", PH.DataDirectories[COFF::TLS_TABLE]); in mapping()
404 IO.mapOptional("LoadConfigTable", in mapping()
406 IO.mapOptional("BoundImport", PH.DataDirectories[COFF::BOUND_IMPORT]); in mapping()
407 IO.mapOptional("IAT", PH.DataDirectories[COFF::IAT]); in mapping()
408 IO.mapOptional("DelayImportDescriptor", in mapping()
410 IO.mapOptional("ClrRuntimeHeader", in mapping()
414 void MappingTraits<COFF::header>::mapping(IO &IO, COFF::header &H) { in mapping() argument
415 MappingNormalization<NMachine, uint16_t> NM(IO, H.Machine); in mapping()
416 MappingNormalization<NHeaderCharacteristics, uint16_t> NC(IO, in mapping()
419 IO.mapRequired("Machine", NM->Machine); in mapping()
420 IO.mapOptional("Characteristics", NC->Characteristics); in mapping()
421 IO.setContext(static_cast<void *>(&H)); in mapping()
425 IO &IO, COFF::AuxiliaryFunctionDefinition &AFD) { in mapping() argument
426 IO.mapRequired("TagIndex", AFD.TagIndex); in mapping()
427 IO.mapRequired("TotalSize", AFD.TotalSize); in mapping()
428 IO.mapRequired("PointerToLinenumber", AFD.PointerToLinenumber); in mapping()
429 IO.mapRequired("PointerToNextFunction", AFD.PointerToNextFunction); in mapping()
433 IO &IO, COFF::AuxiliarybfAndefSymbol &AAS) { in mapping() argument
434 IO.mapRequired("Linenumber", AAS.Linenumber); in mapping()
435 IO.mapRequired("PointerToNextFunction", AAS.PointerToNextFunction); in mapping()
439 IO &IO, COFF::AuxiliaryWeakExternal &AWE) { in mapping() argument
441 IO, AWE.Characteristics); in mapping()
442 IO.mapRequired("TagIndex", AWE.TagIndex); in mapping()
443 IO.mapRequired("Characteristics", NWEC->Characteristics); in mapping()
447 IO &IO, COFF::AuxiliarySectionDefinition &ASD) { in mapping() argument
449 IO, ASD.Selection); in mapping()
451 IO.mapRequired("Length", ASD.Length); in mapping()
452 IO.mapRequired("NumberOfRelocations", ASD.NumberOfRelocations); in mapping()
453 IO.mapRequired("NumberOfLinenumbers", ASD.NumberOfLinenumbers); in mapping()
454 IO.mapRequired("CheckSum", ASD.CheckSum); in mapping()
455 IO.mapRequired("Number", ASD.Number); in mapping()
456 IO.mapOptional("Selection", NSST->SelectionType, COFFYAML::COMDATType(0)); in mapping()
460 IO &IO, COFF::AuxiliaryCLRToken &ACT) { in mapping() argument
461 MappingNormalization<NAuxTokenType, uint8_t> NATT(IO, ACT.AuxType); in mapping()
462 IO.mapRequired("AuxType", NATT->AuxType); in mapping()
463 IO.mapRequired("SymbolTableIndex", ACT.SymbolTableIndex); in mapping()
466 void MappingTraits<COFFYAML::Symbol>::mapping(IO &IO, COFFYAML::Symbol &S) { in mapping() argument
467 MappingNormalization<NStorageClass, uint8_t> NS(IO, S.Header.StorageClass); in mapping()
469 IO.mapRequired("Name", S.Name); in mapping()
470 IO.mapRequired("Value", S.Header.Value); in mapping()
471 IO.mapRequired("SectionNumber", S.Header.SectionNumber); in mapping()
472 IO.mapRequired("SimpleType", S.SimpleType); in mapping()
473 IO.mapRequired("ComplexType", S.ComplexType); in mapping()
474 IO.mapRequired("StorageClass", NS->StorageClass); in mapping()
475 IO.mapOptional("FunctionDefinition", S.FunctionDefinition); in mapping()
476 IO.mapOptional("bfAndefSymbol", S.bfAndefSymbol); in mapping()
477 IO.mapOptional("WeakExternal", S.WeakExternal); in mapping()
478 IO.mapOptional("File", S.File, StringRef()); in mapping()
479 IO.mapOptional("SectionDefinition", S.SectionDefinition); in mapping()
480 IO.mapOptional("CLRToken", S.CLRToken); in mapping()
483 void MappingTraits<COFFYAML::Section>::mapping(IO &IO, COFFYAML::Section &Sec) { in mapping() argument
485 IO, Sec.Header.Characteristics); in mapping()
486 IO.mapRequired("Name", Sec.Name); in mapping()
487 IO.mapRequired("Characteristics", NC->Characteristics); in mapping()
488 IO.mapOptional("VirtualAddress", Sec.Header.VirtualAddress, 0U); in mapping()
489 IO.mapOptional("VirtualSize", Sec.Header.VirtualSize, 0U); in mapping()
490 IO.mapOptional("Alignment", Sec.Alignment, 0U); in mapping()
491 IO.mapRequired("SectionData", Sec.SectionData); in mapping()
492 IO.mapOptional("Relocations", Sec.Relocations); in mapping()
495 void MappingTraits<COFFYAML::Object>::mapping(IO &IO, COFFYAML::Object &Obj) { in mapping() argument
496 IO.mapTag("!COFF", true); in mapping()
497 IO.mapOptional("OptionalHeader", Obj.OptionalHeader); in mapping()
498 IO.mapRequired("header", Obj.Header); in mapping()
499 IO.mapRequired("sections", Obj.Sections); in mapping()
500 IO.mapRequired("symbols", Obj.Symbols); in mapping()