Home
last modified time | relevance | path

Searched refs:builder (Results 1 – 10 of 10) sorted by relevance

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CPU/ExecutionTracer/FBInstruction/
DInstruction.cs61 public static Offset<FBInstruction.Instruction> CreateInstruction(FlatBufferBuilder builder, in CreateInstruction()
79 builder.StartTable(16); in CreateInstruction()
80 Instruction.AddBranchTarget(builder, branch_target); in CreateInstruction()
81 Instruction.AddAddr(builder, addr); in CreateInstruction()
82 Instruction.AddLmul(builder, lmul); in CreateInstruction()
83 Instruction.AddStores(builder, storesOffset); in CreateInstruction()
84 Instruction.AddLoads(builder, loadsOffset); in CreateInstruction()
85 Instruction.AddOutputs(builder, outputsOffset); in CreateInstruction()
86 Instruction.AddInputs(builder, inputsOffset); in CreateInstruction()
87 Instruction.AddOperands(builder, operandsOffset); in CreateInstruction()
[all …]
DInstructions.cs24 … public static Offset<FBInstruction.Instructions> CreateInstructions(FlatBufferBuilder builder, in CreateInstructions()
27 builder.StartTable(1); in CreateInstructions()
28 Instructions.AddInstructions(builder, instructionsOffset); in CreateInstructions()
29 return Instructions.EndInstructions(builder); in CreateInstructions()
32 public static void StartInstructions(FlatBufferBuilder builder) { builder.StartTable(1); } in StartInstructions()
33 …blic static void AddInstructions(FlatBufferBuilder builder, VectorOffset instructionsOffset) { bui… in AddInstructions()
34builder, Offset<FBInstruction.Instruction>[] data) { builder.StartVector(4, data.Length, 4); for (… in CreateInstructionsVector()
35 …ufferBuilder builder, Offset<FBInstruction.Instruction>[] data) { builder.StartVector(4, data.Leng… in CreateInstructionsVectorBlock()
36 …Builder builder, ArraySegment<Offset<FBInstruction.Instruction>> data) { builder.StartVector(4, da… in CreateInstructionsVectorBlock()
37builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add<Of… in CreateInstructionsVectorBlock()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CPU/ExecutionTracer/
DTraceBasedModelFlatBufferWriter.cs64 var builder = new FlatBufferBuilder(InitialFlatBufferSize); in FlushBuffer()
65 …var instructions = instructionsBuffer.Select(x => BuildInstructionFlatbuffer(builder, x.Result, x.… in FlushBuffer()
66 var instrsVector = Instructions.CreateInstructionsVector(builder, instructions); in FlushBuffer()
67 Instructions.StartInstructions(builder); in FlushBuffer()
68 Instructions.AddInstructions(builder, instrsVector); in FlushBuffer()
69 var instrs = Instructions.EndInstructions(builder); in FlushBuffer()
70 Instructions.FinishInstructionsBuffer(builder, instrs); in FlushBuffer()
72 var buf = builder.DataBuffer.ToSizedArray(); in FlushBuffer()
78 builder.Clear(); in FlushBuffer()
97 …private Offset<Instruction> BuildInstructionFlatbuffer(FlatBufferBuilder builder, DisassemblyResul… in BuildInstructionFlatbuffer() argument
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/Config/
DSimpleJson.cs649 StringBuilder builder = new StringBuilder(BUILDER_CAPACITY); in SerializeObject()
650 bool success = SerializeValue(jsonSerializerStrategy, json, builder); in SerializeObject()
651 return (success ? builder.ToString() : null); in SerializeObject()
1206 …SerializeValue(IJsonSerializerStrategy jsonSerializerStrategy, object value, StringBuilder builder) in SerializeValue() argument
1212 success = SerializeString((string)value, builder); in SerializeValue()
1218 success = SerializeObject(jsonSerializerStrategy, dict.Keys, dict.Values, builder); in SerializeValue()
1224 success = SerializeObject(jsonSerializerStrategy, dict.Keys, dict.Values, builder); in SerializeValue()
1229 success = SerializeArray(jsonSerializerStrategy, (IEnumerable)value, builder); in SerializeValue()
1234 success = SerializeNumber(value, builder); in SerializeValue()
1239 builder.Append((bool)value ? "true" : "false"); in SerializeValue()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/
DRawImageData.cs31 var builder = PngBuilder.Create(Width, Height, false); in ToPng()
37builder.SetPixel(new BigGustave.Pixel(Bytes[p], Bytes[p + 1], Bytes[p + 2], Bytes[p + 3], false), … in ToPng()
40 builder.Save(stream); in ToPng()
DMisc.cs338 var builder = new StringBuilder(value); in AppendIf()
339 return AppendIf(builder, condition, what); in AppendIf()
486 var builder = new StringBuilder(data.Length * 2); in ToHexString()
489 builder.Append(lookup[data[i]]); in ToHexString()
491 return builder.ToString(); in ToHexString()
968 var builder = new StringBuilder(); in DumpPacket()
977builder.AppendLine(String.Format("Sending packet from {0}, length: {1}", machName, packet.Bytes.Le… in DumpPacket()
981builder.AppendLine(String.Format("Receiving packet on {0}, length: {1}", machName, packet.Bytes.Le… in DumpPacket()
983 builder.Append(packet.ToString()); in DumpPacket()
984 return builder.ToString(); in DumpPacket()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/SPI/
DAmbiqApollo4_IOMaster.cs941 StringBuilder builder = new StringBuilder(); in ToString()
942 builder.AppendFormat("{0}: ", name); in ToString()
943 builder.AppendFormat("Count: {0}; values: ", Count, headIndex, tailIndex); in ToString()
946 builder.AppendFormat("0x{0:X8} ", memory[index % DoubleWordCapacity]); in ToString()
948 return builder.ToString(); in ToString()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/UserInterface/
DMonitor.cs638 var builder = new StringBuilder(); in TryExecuteScript()
653 builder.AppendLine(processedLines.Last()); in TryExecuteScript()
656 builder.AppendLine(line); in TryExecuteScript()
659 processedLines.Add(builder.ToString()); in TryExecuteScript()
660 builder.Clear(); in TryExecuteScript()
666 builder.AppendLine(line); in TryExecuteScript()
DMonitorCommands.cs63 var builder = new StringBuilder(); in GetPossibleEnumValues()
64 builder.AppendLine("Possible values are:"); in GetPossibleEnumValues()
67 builder.AppendLine($"\t{name}"); in GetPossibleEnumValues()
69 builder.AppendLine(); in GetPossibleEnumValues()
76builder.AppendLine($"{nameof(ExecutionMode.SingleStep)} is {blockingString}. It can be changed wit… in GetPossibleEnumValues()
77builder.AppendLine($"\t{EmulationToken} {nameof(emulation.SingleStepBlocking)} {!isBlocking}"); in GetPossibleEnumValues()
79 return builder.ToString(); in GetPossibleEnumValues()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Bus/
DSystemBus.cs1137 var builder = new StringBuilder(str.Length + 26); in DecorateWithCPUNameAndPC()
1138 builder in DecorateWithCPUNameAndPC()
1142 builder.AppendFormat(": 0x{0:X}", cpu.PC.RawValue); in DecorateWithCPUNameAndPC()
1144 builder in DecorateWithCPUNameAndPC()
1148 return builder.ToString(); in DecorateWithCPUNameAndPC()