github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/pkg/flatrpc/flatrpc.go (about) 1 // Code generated by the FlatBuffers compiler. DO NOT EDIT. 2 3 package flatrpc 4 5 import ( 6 "strconv" 7 8 flatbuffers "github.com/google/flatbuffers/go" 9 ) 10 11 type Feature uint64 12 13 const ( 14 FeatureCoverage Feature = 1 15 FeatureComparisons Feature = 2 16 FeatureExtraCoverage Feature = 4 17 FeatureDelayKcovMmap Feature = 8 18 FeatureSandboxSetuid Feature = 16 19 FeatureSandboxNamespace Feature = 32 20 FeatureSandboxAndroid Feature = 64 21 FeatureFault Feature = 128 22 FeatureLeak Feature = 256 23 FeatureNetInjection Feature = 512 24 FeatureNetDevices Feature = 1024 25 FeatureKCSAN Feature = 2048 26 FeatureDevlinkPCI Feature = 4096 27 FeatureNicVF Feature = 8192 28 FeatureUSBEmulation Feature = 16384 29 FeatureVhciInjection Feature = 32768 30 FeatureWifiEmulation Feature = 65536 31 FeatureLRWPANEmulation Feature = 131072 32 FeatureBinFmtMisc Feature = 262144 33 FeatureSwap Feature = 524288 34 ) 35 36 var EnumNamesFeature = map[Feature]string{ 37 FeatureCoverage: "Coverage", 38 FeatureComparisons: "Comparisons", 39 FeatureExtraCoverage: "ExtraCoverage", 40 FeatureDelayKcovMmap: "DelayKcovMmap", 41 FeatureSandboxSetuid: "SandboxSetuid", 42 FeatureSandboxNamespace: "SandboxNamespace", 43 FeatureSandboxAndroid: "SandboxAndroid", 44 FeatureFault: "Fault", 45 FeatureLeak: "Leak", 46 FeatureNetInjection: "NetInjection", 47 FeatureNetDevices: "NetDevices", 48 FeatureKCSAN: "KCSAN", 49 FeatureDevlinkPCI: "DevlinkPCI", 50 FeatureNicVF: "NicVF", 51 FeatureUSBEmulation: "USBEmulation", 52 FeatureVhciInjection: "VhciInjection", 53 FeatureWifiEmulation: "WifiEmulation", 54 FeatureLRWPANEmulation: "LRWPANEmulation", 55 FeatureBinFmtMisc: "BinFmtMisc", 56 FeatureSwap: "Swap", 57 } 58 59 var EnumValuesFeature = map[string]Feature{ 60 "Coverage": FeatureCoverage, 61 "Comparisons": FeatureComparisons, 62 "ExtraCoverage": FeatureExtraCoverage, 63 "DelayKcovMmap": FeatureDelayKcovMmap, 64 "SandboxSetuid": FeatureSandboxSetuid, 65 "SandboxNamespace": FeatureSandboxNamespace, 66 "SandboxAndroid": FeatureSandboxAndroid, 67 "Fault": FeatureFault, 68 "Leak": FeatureLeak, 69 "NetInjection": FeatureNetInjection, 70 "NetDevices": FeatureNetDevices, 71 "KCSAN": FeatureKCSAN, 72 "DevlinkPCI": FeatureDevlinkPCI, 73 "NicVF": FeatureNicVF, 74 "USBEmulation": FeatureUSBEmulation, 75 "VhciInjection": FeatureVhciInjection, 76 "WifiEmulation": FeatureWifiEmulation, 77 "LRWPANEmulation": FeatureLRWPANEmulation, 78 "BinFmtMisc": FeatureBinFmtMisc, 79 "Swap": FeatureSwap, 80 } 81 82 func (v Feature) String() string { 83 if s, ok := EnumNamesFeature[v]; ok { 84 return s 85 } 86 return "Feature(" + strconv.FormatInt(int64(v), 10) + ")" 87 } 88 89 type HostMessagesRaw byte 90 91 const ( 92 HostMessagesRawNONE HostMessagesRaw = 0 93 HostMessagesRawExecRequest HostMessagesRaw = 1 94 HostMessagesRawSignalUpdate HostMessagesRaw = 2 95 ) 96 97 var EnumNamesHostMessagesRaw = map[HostMessagesRaw]string{ 98 HostMessagesRawNONE: "NONE", 99 HostMessagesRawExecRequest: "ExecRequest", 100 HostMessagesRawSignalUpdate: "SignalUpdate", 101 } 102 103 var EnumValuesHostMessagesRaw = map[string]HostMessagesRaw{ 104 "NONE": HostMessagesRawNONE, 105 "ExecRequest": HostMessagesRawExecRequest, 106 "SignalUpdate": HostMessagesRawSignalUpdate, 107 } 108 109 func (v HostMessagesRaw) String() string { 110 if s, ok := EnumNamesHostMessagesRaw[v]; ok { 111 return s 112 } 113 return "HostMessagesRaw(" + strconv.FormatInt(int64(v), 10) + ")" 114 } 115 116 type HostMessagesRawT struct { 117 Type HostMessagesRaw 118 Value interface{} 119 } 120 121 func (t *HostMessagesRawT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 122 if t == nil { 123 return 0 124 } 125 switch t.Type { 126 case HostMessagesRawExecRequest: 127 return t.Value.(*ExecRequestRawT).Pack(builder) 128 case HostMessagesRawSignalUpdate: 129 return t.Value.(*SignalUpdateRawT).Pack(builder) 130 } 131 return 0 132 } 133 134 func (rcv HostMessagesRaw) UnPack(table flatbuffers.Table) *HostMessagesRawT { 135 switch rcv { 136 case HostMessagesRawExecRequest: 137 x := ExecRequestRaw{_tab: table} 138 return &HostMessagesRawT{Type: HostMessagesRawExecRequest, Value: x.UnPack()} 139 case HostMessagesRawSignalUpdate: 140 x := SignalUpdateRaw{_tab: table} 141 return &HostMessagesRawT{Type: HostMessagesRawSignalUpdate, Value: x.UnPack()} 142 } 143 return nil 144 } 145 146 type ExecutorMessagesRaw byte 147 148 const ( 149 ExecutorMessagesRawNONE ExecutorMessagesRaw = 0 150 ExecutorMessagesRawExecResult ExecutorMessagesRaw = 1 151 ExecutorMessagesRawExecuting ExecutorMessagesRaw = 2 152 ) 153 154 var EnumNamesExecutorMessagesRaw = map[ExecutorMessagesRaw]string{ 155 ExecutorMessagesRawNONE: "NONE", 156 ExecutorMessagesRawExecResult: "ExecResult", 157 ExecutorMessagesRawExecuting: "Executing", 158 } 159 160 var EnumValuesExecutorMessagesRaw = map[string]ExecutorMessagesRaw{ 161 "NONE": ExecutorMessagesRawNONE, 162 "ExecResult": ExecutorMessagesRawExecResult, 163 "Executing": ExecutorMessagesRawExecuting, 164 } 165 166 func (v ExecutorMessagesRaw) String() string { 167 if s, ok := EnumNamesExecutorMessagesRaw[v]; ok { 168 return s 169 } 170 return "ExecutorMessagesRaw(" + strconv.FormatInt(int64(v), 10) + ")" 171 } 172 173 type ExecutorMessagesRawT struct { 174 Type ExecutorMessagesRaw 175 Value interface{} 176 } 177 178 func (t *ExecutorMessagesRawT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 179 if t == nil { 180 return 0 181 } 182 switch t.Type { 183 case ExecutorMessagesRawExecResult: 184 return t.Value.(*ExecResultRawT).Pack(builder) 185 case ExecutorMessagesRawExecuting: 186 return t.Value.(*ExecutingMessageRawT).Pack(builder) 187 } 188 return 0 189 } 190 191 func (rcv ExecutorMessagesRaw) UnPack(table flatbuffers.Table) *ExecutorMessagesRawT { 192 switch rcv { 193 case ExecutorMessagesRawExecResult: 194 x := ExecResultRaw{_tab: table} 195 return &ExecutorMessagesRawT{Type: ExecutorMessagesRawExecResult, Value: x.UnPack()} 196 case ExecutorMessagesRawExecuting: 197 x := ExecutingMessageRaw{_tab: table} 198 return &ExecutorMessagesRawT{Type: ExecutorMessagesRawExecuting, Value: x.UnPack()} 199 } 200 return nil 201 } 202 203 type RequestFlag uint64 204 205 const ( 206 RequestFlagIsBinary RequestFlag = 1 207 RequestFlagNewSignal RequestFlag = 2 208 RequestFlagResetState RequestFlag = 4 209 RequestFlagReturnOutput RequestFlag = 8 210 RequestFlagReturnError RequestFlag = 16 211 ) 212 213 var EnumNamesRequestFlag = map[RequestFlag]string{ 214 RequestFlagIsBinary: "IsBinary", 215 RequestFlagNewSignal: "NewSignal", 216 RequestFlagResetState: "ResetState", 217 RequestFlagReturnOutput: "ReturnOutput", 218 RequestFlagReturnError: "ReturnError", 219 } 220 221 var EnumValuesRequestFlag = map[string]RequestFlag{ 222 "IsBinary": RequestFlagIsBinary, 223 "NewSignal": RequestFlagNewSignal, 224 "ResetState": RequestFlagResetState, 225 "ReturnOutput": RequestFlagReturnOutput, 226 "ReturnError": RequestFlagReturnError, 227 } 228 229 func (v RequestFlag) String() string { 230 if s, ok := EnumNamesRequestFlag[v]; ok { 231 return s 232 } 233 return "RequestFlag(" + strconv.FormatInt(int64(v), 10) + ")" 234 } 235 236 type ExecEnv uint64 237 238 const ( 239 ExecEnvDebug ExecEnv = 1 240 ExecEnvSignal ExecEnv = 2 241 ExecEnvSandboxSetuid ExecEnv = 4 242 ExecEnvSandboxNamespace ExecEnv = 8 243 ExecEnvSandboxAndroid ExecEnv = 16 244 ExecEnvExtraCover ExecEnv = 32 245 ExecEnvEnableTun ExecEnv = 64 246 ExecEnvEnableNetDev ExecEnv = 128 247 ExecEnvEnableNetReset ExecEnv = 256 248 ExecEnvEnableCgroups ExecEnv = 512 249 ExecEnvEnableCloseFds ExecEnv = 1024 250 ExecEnvEnableDevlinkPCI ExecEnv = 2048 251 ExecEnvEnableVhciInjection ExecEnv = 4096 252 ExecEnvEnableWifi ExecEnv = 8192 253 ExecEnvDelayKcovMmap ExecEnv = 16384 254 ExecEnvEnableNicVF ExecEnv = 32768 255 ) 256 257 var EnumNamesExecEnv = map[ExecEnv]string{ 258 ExecEnvDebug: "Debug", 259 ExecEnvSignal: "Signal", 260 ExecEnvSandboxSetuid: "SandboxSetuid", 261 ExecEnvSandboxNamespace: "SandboxNamespace", 262 ExecEnvSandboxAndroid: "SandboxAndroid", 263 ExecEnvExtraCover: "ExtraCover", 264 ExecEnvEnableTun: "EnableTun", 265 ExecEnvEnableNetDev: "EnableNetDev", 266 ExecEnvEnableNetReset: "EnableNetReset", 267 ExecEnvEnableCgroups: "EnableCgroups", 268 ExecEnvEnableCloseFds: "EnableCloseFds", 269 ExecEnvEnableDevlinkPCI: "EnableDevlinkPCI", 270 ExecEnvEnableVhciInjection: "EnableVhciInjection", 271 ExecEnvEnableWifi: "EnableWifi", 272 ExecEnvDelayKcovMmap: "DelayKcovMmap", 273 ExecEnvEnableNicVF: "EnableNicVF", 274 } 275 276 var EnumValuesExecEnv = map[string]ExecEnv{ 277 "Debug": ExecEnvDebug, 278 "Signal": ExecEnvSignal, 279 "SandboxSetuid": ExecEnvSandboxSetuid, 280 "SandboxNamespace": ExecEnvSandboxNamespace, 281 "SandboxAndroid": ExecEnvSandboxAndroid, 282 "ExtraCover": ExecEnvExtraCover, 283 "EnableTun": ExecEnvEnableTun, 284 "EnableNetDev": ExecEnvEnableNetDev, 285 "EnableNetReset": ExecEnvEnableNetReset, 286 "EnableCgroups": ExecEnvEnableCgroups, 287 "EnableCloseFds": ExecEnvEnableCloseFds, 288 "EnableDevlinkPCI": ExecEnvEnableDevlinkPCI, 289 "EnableVhciInjection": ExecEnvEnableVhciInjection, 290 "EnableWifi": ExecEnvEnableWifi, 291 "DelayKcovMmap": ExecEnvDelayKcovMmap, 292 "EnableNicVF": ExecEnvEnableNicVF, 293 } 294 295 func (v ExecEnv) String() string { 296 if s, ok := EnumNamesExecEnv[v]; ok { 297 return s 298 } 299 return "ExecEnv(" + strconv.FormatInt(int64(v), 10) + ")" 300 } 301 302 type ExecFlag uint64 303 304 const ( 305 ExecFlagCollectSignal ExecFlag = 1 306 ExecFlagCollectCover ExecFlag = 2 307 ExecFlagDedupCover ExecFlag = 4 308 ExecFlagCollectComps ExecFlag = 8 309 ExecFlagThreaded ExecFlag = 16 310 ExecFlagCoverFilter ExecFlag = 32 311 ) 312 313 var EnumNamesExecFlag = map[ExecFlag]string{ 314 ExecFlagCollectSignal: "CollectSignal", 315 ExecFlagCollectCover: "CollectCover", 316 ExecFlagDedupCover: "DedupCover", 317 ExecFlagCollectComps: "CollectComps", 318 ExecFlagThreaded: "Threaded", 319 ExecFlagCoverFilter: "CoverFilter", 320 } 321 322 var EnumValuesExecFlag = map[string]ExecFlag{ 323 "CollectSignal": ExecFlagCollectSignal, 324 "CollectCover": ExecFlagCollectCover, 325 "DedupCover": ExecFlagDedupCover, 326 "CollectComps": ExecFlagCollectComps, 327 "Threaded": ExecFlagThreaded, 328 "CoverFilter": ExecFlagCoverFilter, 329 } 330 331 func (v ExecFlag) String() string { 332 if s, ok := EnumNamesExecFlag[v]; ok { 333 return s 334 } 335 return "ExecFlag(" + strconv.FormatInt(int64(v), 10) + ")" 336 } 337 338 type CallFlag byte 339 340 const ( 341 CallFlagExecuted CallFlag = 1 342 CallFlagFinished CallFlag = 2 343 CallFlagBlocked CallFlag = 4 344 CallFlagFaultInjected CallFlag = 8 345 ) 346 347 var EnumNamesCallFlag = map[CallFlag]string{ 348 CallFlagExecuted: "Executed", 349 CallFlagFinished: "Finished", 350 CallFlagBlocked: "Blocked", 351 CallFlagFaultInjected: "FaultInjected", 352 } 353 354 var EnumValuesCallFlag = map[string]CallFlag{ 355 "Executed": CallFlagExecuted, 356 "Finished": CallFlagFinished, 357 "Blocked": CallFlagBlocked, 358 "FaultInjected": CallFlagFaultInjected, 359 } 360 361 func (v CallFlag) String() string { 362 if s, ok := EnumNamesCallFlag[v]; ok { 363 return s 364 } 365 return "CallFlag(" + strconv.FormatInt(int64(v), 10) + ")" 366 } 367 368 type ConnectRequestRawT struct { 369 Name string `json:"name"` 370 Arch string `json:"arch"` 371 GitRevision string `json:"git_revision"` 372 SyzRevision string `json:"syz_revision"` 373 } 374 375 func (t *ConnectRequestRawT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 376 if t == nil { 377 return 0 378 } 379 nameOffset := builder.CreateString(t.Name) 380 archOffset := builder.CreateString(t.Arch) 381 gitRevisionOffset := builder.CreateString(t.GitRevision) 382 syzRevisionOffset := builder.CreateString(t.SyzRevision) 383 ConnectRequestRawStart(builder) 384 ConnectRequestRawAddName(builder, nameOffset) 385 ConnectRequestRawAddArch(builder, archOffset) 386 ConnectRequestRawAddGitRevision(builder, gitRevisionOffset) 387 ConnectRequestRawAddSyzRevision(builder, syzRevisionOffset) 388 return ConnectRequestRawEnd(builder) 389 } 390 391 func (rcv *ConnectRequestRaw) UnPackTo(t *ConnectRequestRawT) { 392 t.Name = string(rcv.Name()) 393 t.Arch = string(rcv.Arch()) 394 t.GitRevision = string(rcv.GitRevision()) 395 t.SyzRevision = string(rcv.SyzRevision()) 396 } 397 398 func (rcv *ConnectRequestRaw) UnPack() *ConnectRequestRawT { 399 if rcv == nil { 400 return nil 401 } 402 t := &ConnectRequestRawT{} 403 rcv.UnPackTo(t) 404 return t 405 } 406 407 type ConnectRequestRaw struct { 408 _tab flatbuffers.Table 409 } 410 411 func GetRootAsConnectRequestRaw(buf []byte, offset flatbuffers.UOffsetT) *ConnectRequestRaw { 412 n := flatbuffers.GetUOffsetT(buf[offset:]) 413 x := &ConnectRequestRaw{} 414 x.Init(buf, n+offset) 415 return x 416 } 417 418 func GetSizePrefixedRootAsConnectRequestRaw(buf []byte, offset flatbuffers.UOffsetT) *ConnectRequestRaw { 419 n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) 420 x := &ConnectRequestRaw{} 421 x.Init(buf, n+offset+flatbuffers.SizeUint32) 422 return x 423 } 424 425 func (rcv *ConnectRequestRaw) Init(buf []byte, i flatbuffers.UOffsetT) { 426 rcv._tab.Bytes = buf 427 rcv._tab.Pos = i 428 } 429 430 func (rcv *ConnectRequestRaw) Table() flatbuffers.Table { 431 return rcv._tab 432 } 433 434 func (rcv *ConnectRequestRaw) Name() []byte { 435 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 436 if o != 0 { 437 return rcv._tab.ByteVector(o + rcv._tab.Pos) 438 } 439 return nil 440 } 441 442 func (rcv *ConnectRequestRaw) Arch() []byte { 443 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 444 if o != 0 { 445 return rcv._tab.ByteVector(o + rcv._tab.Pos) 446 } 447 return nil 448 } 449 450 func (rcv *ConnectRequestRaw) GitRevision() []byte { 451 o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) 452 if o != 0 { 453 return rcv._tab.ByteVector(o + rcv._tab.Pos) 454 } 455 return nil 456 } 457 458 func (rcv *ConnectRequestRaw) SyzRevision() []byte { 459 o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) 460 if o != 0 { 461 return rcv._tab.ByteVector(o + rcv._tab.Pos) 462 } 463 return nil 464 } 465 466 func ConnectRequestRawStart(builder *flatbuffers.Builder) { 467 builder.StartObject(4) 468 } 469 func ConnectRequestRawAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { 470 builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) 471 } 472 func ConnectRequestRawAddArch(builder *flatbuffers.Builder, arch flatbuffers.UOffsetT) { 473 builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(arch), 0) 474 } 475 func ConnectRequestRawAddGitRevision(builder *flatbuffers.Builder, gitRevision flatbuffers.UOffsetT) { 476 builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(gitRevision), 0) 477 } 478 func ConnectRequestRawAddSyzRevision(builder *flatbuffers.Builder, syzRevision flatbuffers.UOffsetT) { 479 builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(syzRevision), 0) 480 } 481 func ConnectRequestRawEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 482 return builder.EndObject() 483 } 484 485 type ConnectReplyRawT struct { 486 LeakFrames []string `json:"leak_frames"` 487 RaceFrames []string `json:"race_frames"` 488 Features Feature `json:"features"` 489 Files []string `json:"files"` 490 Globs []string `json:"globs"` 491 } 492 493 func (t *ConnectReplyRawT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 494 if t == nil { 495 return 0 496 } 497 leakFramesOffset := flatbuffers.UOffsetT(0) 498 if t.LeakFrames != nil { 499 leakFramesLength := len(t.LeakFrames) 500 leakFramesOffsets := make([]flatbuffers.UOffsetT, leakFramesLength) 501 for j := 0; j < leakFramesLength; j++ { 502 leakFramesOffsets[j] = builder.CreateString(t.LeakFrames[j]) 503 } 504 ConnectReplyRawStartLeakFramesVector(builder, leakFramesLength) 505 for j := leakFramesLength - 1; j >= 0; j-- { 506 builder.PrependUOffsetT(leakFramesOffsets[j]) 507 } 508 leakFramesOffset = builder.EndVector(leakFramesLength) 509 } 510 raceFramesOffset := flatbuffers.UOffsetT(0) 511 if t.RaceFrames != nil { 512 raceFramesLength := len(t.RaceFrames) 513 raceFramesOffsets := make([]flatbuffers.UOffsetT, raceFramesLength) 514 for j := 0; j < raceFramesLength; j++ { 515 raceFramesOffsets[j] = builder.CreateString(t.RaceFrames[j]) 516 } 517 ConnectReplyRawStartRaceFramesVector(builder, raceFramesLength) 518 for j := raceFramesLength - 1; j >= 0; j-- { 519 builder.PrependUOffsetT(raceFramesOffsets[j]) 520 } 521 raceFramesOffset = builder.EndVector(raceFramesLength) 522 } 523 filesOffset := flatbuffers.UOffsetT(0) 524 if t.Files != nil { 525 filesLength := len(t.Files) 526 filesOffsets := make([]flatbuffers.UOffsetT, filesLength) 527 for j := 0; j < filesLength; j++ { 528 filesOffsets[j] = builder.CreateString(t.Files[j]) 529 } 530 ConnectReplyRawStartFilesVector(builder, filesLength) 531 for j := filesLength - 1; j >= 0; j-- { 532 builder.PrependUOffsetT(filesOffsets[j]) 533 } 534 filesOffset = builder.EndVector(filesLength) 535 } 536 globsOffset := flatbuffers.UOffsetT(0) 537 if t.Globs != nil { 538 globsLength := len(t.Globs) 539 globsOffsets := make([]flatbuffers.UOffsetT, globsLength) 540 for j := 0; j < globsLength; j++ { 541 globsOffsets[j] = builder.CreateString(t.Globs[j]) 542 } 543 ConnectReplyRawStartGlobsVector(builder, globsLength) 544 for j := globsLength - 1; j >= 0; j-- { 545 builder.PrependUOffsetT(globsOffsets[j]) 546 } 547 globsOffset = builder.EndVector(globsLength) 548 } 549 ConnectReplyRawStart(builder) 550 ConnectReplyRawAddLeakFrames(builder, leakFramesOffset) 551 ConnectReplyRawAddRaceFrames(builder, raceFramesOffset) 552 ConnectReplyRawAddFeatures(builder, t.Features) 553 ConnectReplyRawAddFiles(builder, filesOffset) 554 ConnectReplyRawAddGlobs(builder, globsOffset) 555 return ConnectReplyRawEnd(builder) 556 } 557 558 func (rcv *ConnectReplyRaw) UnPackTo(t *ConnectReplyRawT) { 559 leakFramesLength := rcv.LeakFramesLength() 560 t.LeakFrames = make([]string, leakFramesLength) 561 for j := 0; j < leakFramesLength; j++ { 562 t.LeakFrames[j] = string(rcv.LeakFrames(j)) 563 } 564 raceFramesLength := rcv.RaceFramesLength() 565 t.RaceFrames = make([]string, raceFramesLength) 566 for j := 0; j < raceFramesLength; j++ { 567 t.RaceFrames[j] = string(rcv.RaceFrames(j)) 568 } 569 t.Features = rcv.Features() 570 filesLength := rcv.FilesLength() 571 t.Files = make([]string, filesLength) 572 for j := 0; j < filesLength; j++ { 573 t.Files[j] = string(rcv.Files(j)) 574 } 575 globsLength := rcv.GlobsLength() 576 t.Globs = make([]string, globsLength) 577 for j := 0; j < globsLength; j++ { 578 t.Globs[j] = string(rcv.Globs(j)) 579 } 580 } 581 582 func (rcv *ConnectReplyRaw) UnPack() *ConnectReplyRawT { 583 if rcv == nil { 584 return nil 585 } 586 t := &ConnectReplyRawT{} 587 rcv.UnPackTo(t) 588 return t 589 } 590 591 type ConnectReplyRaw struct { 592 _tab flatbuffers.Table 593 } 594 595 func GetRootAsConnectReplyRaw(buf []byte, offset flatbuffers.UOffsetT) *ConnectReplyRaw { 596 n := flatbuffers.GetUOffsetT(buf[offset:]) 597 x := &ConnectReplyRaw{} 598 x.Init(buf, n+offset) 599 return x 600 } 601 602 func GetSizePrefixedRootAsConnectReplyRaw(buf []byte, offset flatbuffers.UOffsetT) *ConnectReplyRaw { 603 n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) 604 x := &ConnectReplyRaw{} 605 x.Init(buf, n+offset+flatbuffers.SizeUint32) 606 return x 607 } 608 609 func (rcv *ConnectReplyRaw) Init(buf []byte, i flatbuffers.UOffsetT) { 610 rcv._tab.Bytes = buf 611 rcv._tab.Pos = i 612 } 613 614 func (rcv *ConnectReplyRaw) Table() flatbuffers.Table { 615 return rcv._tab 616 } 617 618 func (rcv *ConnectReplyRaw) LeakFrames(j int) []byte { 619 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 620 if o != 0 { 621 a := rcv._tab.Vector(o) 622 return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) 623 } 624 return nil 625 } 626 627 func (rcv *ConnectReplyRaw) LeakFramesLength() int { 628 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 629 if o != 0 { 630 return rcv._tab.VectorLen(o) 631 } 632 return 0 633 } 634 635 func (rcv *ConnectReplyRaw) RaceFrames(j int) []byte { 636 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 637 if o != 0 { 638 a := rcv._tab.Vector(o) 639 return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) 640 } 641 return nil 642 } 643 644 func (rcv *ConnectReplyRaw) RaceFramesLength() int { 645 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 646 if o != 0 { 647 return rcv._tab.VectorLen(o) 648 } 649 return 0 650 } 651 652 func (rcv *ConnectReplyRaw) Features() Feature { 653 o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) 654 if o != 0 { 655 return Feature(rcv._tab.GetUint64(o + rcv._tab.Pos)) 656 } 657 return 0 658 } 659 660 func (rcv *ConnectReplyRaw) MutateFeatures(n Feature) bool { 661 return rcv._tab.MutateUint64Slot(8, uint64(n)) 662 } 663 664 func (rcv *ConnectReplyRaw) Files(j int) []byte { 665 o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) 666 if o != 0 { 667 a := rcv._tab.Vector(o) 668 return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) 669 } 670 return nil 671 } 672 673 func (rcv *ConnectReplyRaw) FilesLength() int { 674 o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) 675 if o != 0 { 676 return rcv._tab.VectorLen(o) 677 } 678 return 0 679 } 680 681 func (rcv *ConnectReplyRaw) Globs(j int) []byte { 682 o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) 683 if o != 0 { 684 a := rcv._tab.Vector(o) 685 return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) 686 } 687 return nil 688 } 689 690 func (rcv *ConnectReplyRaw) GlobsLength() int { 691 o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) 692 if o != 0 { 693 return rcv._tab.VectorLen(o) 694 } 695 return 0 696 } 697 698 func ConnectReplyRawStart(builder *flatbuffers.Builder) { 699 builder.StartObject(5) 700 } 701 func ConnectReplyRawAddLeakFrames(builder *flatbuffers.Builder, leakFrames flatbuffers.UOffsetT) { 702 builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(leakFrames), 0) 703 } 704 func ConnectReplyRawStartLeakFramesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { 705 return builder.StartVector(4, numElems, 4) 706 } 707 func ConnectReplyRawAddRaceFrames(builder *flatbuffers.Builder, raceFrames flatbuffers.UOffsetT) { 708 builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(raceFrames), 0) 709 } 710 func ConnectReplyRawStartRaceFramesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { 711 return builder.StartVector(4, numElems, 4) 712 } 713 func ConnectReplyRawAddFeatures(builder *flatbuffers.Builder, features Feature) { 714 builder.PrependUint64Slot(2, uint64(features), 0) 715 } 716 func ConnectReplyRawAddFiles(builder *flatbuffers.Builder, files flatbuffers.UOffsetT) { 717 builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(files), 0) 718 } 719 func ConnectReplyRawStartFilesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { 720 return builder.StartVector(4, numElems, 4) 721 } 722 func ConnectReplyRawAddGlobs(builder *flatbuffers.Builder, globs flatbuffers.UOffsetT) { 723 builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(globs), 0) 724 } 725 func ConnectReplyRawStartGlobsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { 726 return builder.StartVector(4, numElems, 4) 727 } 728 func ConnectReplyRawEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 729 return builder.EndObject() 730 } 731 732 type InfoRequestRawT struct { 733 Error string `json:"error"` 734 Features []*FeatureInfoRawT `json:"features"` 735 Files []*FileInfoRawT `json:"files"` 736 Globs []*GlobInfoRawT `json:"globs"` 737 } 738 739 func (t *InfoRequestRawT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 740 if t == nil { 741 return 0 742 } 743 errorOffset := builder.CreateString(t.Error) 744 featuresOffset := flatbuffers.UOffsetT(0) 745 if t.Features != nil { 746 featuresLength := len(t.Features) 747 featuresOffsets := make([]flatbuffers.UOffsetT, featuresLength) 748 for j := 0; j < featuresLength; j++ { 749 featuresOffsets[j] = t.Features[j].Pack(builder) 750 } 751 InfoRequestRawStartFeaturesVector(builder, featuresLength) 752 for j := featuresLength - 1; j >= 0; j-- { 753 builder.PrependUOffsetT(featuresOffsets[j]) 754 } 755 featuresOffset = builder.EndVector(featuresLength) 756 } 757 filesOffset := flatbuffers.UOffsetT(0) 758 if t.Files != nil { 759 filesLength := len(t.Files) 760 filesOffsets := make([]flatbuffers.UOffsetT, filesLength) 761 for j := 0; j < filesLength; j++ { 762 filesOffsets[j] = t.Files[j].Pack(builder) 763 } 764 InfoRequestRawStartFilesVector(builder, filesLength) 765 for j := filesLength - 1; j >= 0; j-- { 766 builder.PrependUOffsetT(filesOffsets[j]) 767 } 768 filesOffset = builder.EndVector(filesLength) 769 } 770 globsOffset := flatbuffers.UOffsetT(0) 771 if t.Globs != nil { 772 globsLength := len(t.Globs) 773 globsOffsets := make([]flatbuffers.UOffsetT, globsLength) 774 for j := 0; j < globsLength; j++ { 775 globsOffsets[j] = t.Globs[j].Pack(builder) 776 } 777 InfoRequestRawStartGlobsVector(builder, globsLength) 778 for j := globsLength - 1; j >= 0; j-- { 779 builder.PrependUOffsetT(globsOffsets[j]) 780 } 781 globsOffset = builder.EndVector(globsLength) 782 } 783 InfoRequestRawStart(builder) 784 InfoRequestRawAddError(builder, errorOffset) 785 InfoRequestRawAddFeatures(builder, featuresOffset) 786 InfoRequestRawAddFiles(builder, filesOffset) 787 InfoRequestRawAddGlobs(builder, globsOffset) 788 return InfoRequestRawEnd(builder) 789 } 790 791 func (rcv *InfoRequestRaw) UnPackTo(t *InfoRequestRawT) { 792 t.Error = string(rcv.Error()) 793 featuresLength := rcv.FeaturesLength() 794 t.Features = make([]*FeatureInfoRawT, featuresLength) 795 for j := 0; j < featuresLength; j++ { 796 x := FeatureInfoRaw{} 797 rcv.Features(&x, j) 798 t.Features[j] = x.UnPack() 799 } 800 filesLength := rcv.FilesLength() 801 t.Files = make([]*FileInfoRawT, filesLength) 802 for j := 0; j < filesLength; j++ { 803 x := FileInfoRaw{} 804 rcv.Files(&x, j) 805 t.Files[j] = x.UnPack() 806 } 807 globsLength := rcv.GlobsLength() 808 t.Globs = make([]*GlobInfoRawT, globsLength) 809 for j := 0; j < globsLength; j++ { 810 x := GlobInfoRaw{} 811 rcv.Globs(&x, j) 812 t.Globs[j] = x.UnPack() 813 } 814 } 815 816 func (rcv *InfoRequestRaw) UnPack() *InfoRequestRawT { 817 if rcv == nil { 818 return nil 819 } 820 t := &InfoRequestRawT{} 821 rcv.UnPackTo(t) 822 return t 823 } 824 825 type InfoRequestRaw struct { 826 _tab flatbuffers.Table 827 } 828 829 func GetRootAsInfoRequestRaw(buf []byte, offset flatbuffers.UOffsetT) *InfoRequestRaw { 830 n := flatbuffers.GetUOffsetT(buf[offset:]) 831 x := &InfoRequestRaw{} 832 x.Init(buf, n+offset) 833 return x 834 } 835 836 func GetSizePrefixedRootAsInfoRequestRaw(buf []byte, offset flatbuffers.UOffsetT) *InfoRequestRaw { 837 n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) 838 x := &InfoRequestRaw{} 839 x.Init(buf, n+offset+flatbuffers.SizeUint32) 840 return x 841 } 842 843 func (rcv *InfoRequestRaw) Init(buf []byte, i flatbuffers.UOffsetT) { 844 rcv._tab.Bytes = buf 845 rcv._tab.Pos = i 846 } 847 848 func (rcv *InfoRequestRaw) Table() flatbuffers.Table { 849 return rcv._tab 850 } 851 852 func (rcv *InfoRequestRaw) Error() []byte { 853 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 854 if o != 0 { 855 return rcv._tab.ByteVector(o + rcv._tab.Pos) 856 } 857 return nil 858 } 859 860 func (rcv *InfoRequestRaw) Features(obj *FeatureInfoRaw, j int) bool { 861 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 862 if o != 0 { 863 x := rcv._tab.Vector(o) 864 x += flatbuffers.UOffsetT(j) * 4 865 x = rcv._tab.Indirect(x) 866 obj.Init(rcv._tab.Bytes, x) 867 return true 868 } 869 return false 870 } 871 872 func (rcv *InfoRequestRaw) FeaturesLength() int { 873 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 874 if o != 0 { 875 return rcv._tab.VectorLen(o) 876 } 877 return 0 878 } 879 880 func (rcv *InfoRequestRaw) Files(obj *FileInfoRaw, j int) bool { 881 o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) 882 if o != 0 { 883 x := rcv._tab.Vector(o) 884 x += flatbuffers.UOffsetT(j) * 4 885 x = rcv._tab.Indirect(x) 886 obj.Init(rcv._tab.Bytes, x) 887 return true 888 } 889 return false 890 } 891 892 func (rcv *InfoRequestRaw) FilesLength() int { 893 o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) 894 if o != 0 { 895 return rcv._tab.VectorLen(o) 896 } 897 return 0 898 } 899 900 func (rcv *InfoRequestRaw) Globs(obj *GlobInfoRaw, j int) bool { 901 o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) 902 if o != 0 { 903 x := rcv._tab.Vector(o) 904 x += flatbuffers.UOffsetT(j) * 4 905 x = rcv._tab.Indirect(x) 906 obj.Init(rcv._tab.Bytes, x) 907 return true 908 } 909 return false 910 } 911 912 func (rcv *InfoRequestRaw) GlobsLength() int { 913 o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) 914 if o != 0 { 915 return rcv._tab.VectorLen(o) 916 } 917 return 0 918 } 919 920 func InfoRequestRawStart(builder *flatbuffers.Builder) { 921 builder.StartObject(4) 922 } 923 func InfoRequestRawAddError(builder *flatbuffers.Builder, error flatbuffers.UOffsetT) { 924 builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(error), 0) 925 } 926 func InfoRequestRawAddFeatures(builder *flatbuffers.Builder, features flatbuffers.UOffsetT) { 927 builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(features), 0) 928 } 929 func InfoRequestRawStartFeaturesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { 930 return builder.StartVector(4, numElems, 4) 931 } 932 func InfoRequestRawAddFiles(builder *flatbuffers.Builder, files flatbuffers.UOffsetT) { 933 builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(files), 0) 934 } 935 func InfoRequestRawStartFilesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { 936 return builder.StartVector(4, numElems, 4) 937 } 938 func InfoRequestRawAddGlobs(builder *flatbuffers.Builder, globs flatbuffers.UOffsetT) { 939 builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(globs), 0) 940 } 941 func InfoRequestRawStartGlobsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { 942 return builder.StartVector(4, numElems, 4) 943 } 944 func InfoRequestRawEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 945 return builder.EndObject() 946 } 947 948 type InfoReplyRawT struct { 949 CoverFilter []byte `json:"cover_filter"` 950 } 951 952 func (t *InfoReplyRawT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 953 if t == nil { 954 return 0 955 } 956 coverFilterOffset := flatbuffers.UOffsetT(0) 957 if t.CoverFilter != nil { 958 coverFilterOffset = builder.CreateByteString(t.CoverFilter) 959 } 960 InfoReplyRawStart(builder) 961 InfoReplyRawAddCoverFilter(builder, coverFilterOffset) 962 return InfoReplyRawEnd(builder) 963 } 964 965 func (rcv *InfoReplyRaw) UnPackTo(t *InfoReplyRawT) { 966 t.CoverFilter = rcv.CoverFilterBytes() 967 } 968 969 func (rcv *InfoReplyRaw) UnPack() *InfoReplyRawT { 970 if rcv == nil { 971 return nil 972 } 973 t := &InfoReplyRawT{} 974 rcv.UnPackTo(t) 975 return t 976 } 977 978 type InfoReplyRaw struct { 979 _tab flatbuffers.Table 980 } 981 982 func GetRootAsInfoReplyRaw(buf []byte, offset flatbuffers.UOffsetT) *InfoReplyRaw { 983 n := flatbuffers.GetUOffsetT(buf[offset:]) 984 x := &InfoReplyRaw{} 985 x.Init(buf, n+offset) 986 return x 987 } 988 989 func GetSizePrefixedRootAsInfoReplyRaw(buf []byte, offset flatbuffers.UOffsetT) *InfoReplyRaw { 990 n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) 991 x := &InfoReplyRaw{} 992 x.Init(buf, n+offset+flatbuffers.SizeUint32) 993 return x 994 } 995 996 func (rcv *InfoReplyRaw) Init(buf []byte, i flatbuffers.UOffsetT) { 997 rcv._tab.Bytes = buf 998 rcv._tab.Pos = i 999 } 1000 1001 func (rcv *InfoReplyRaw) Table() flatbuffers.Table { 1002 return rcv._tab 1003 } 1004 1005 func (rcv *InfoReplyRaw) CoverFilter(j int) byte { 1006 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 1007 if o != 0 { 1008 a := rcv._tab.Vector(o) 1009 return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) 1010 } 1011 return 0 1012 } 1013 1014 func (rcv *InfoReplyRaw) CoverFilterLength() int { 1015 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 1016 if o != 0 { 1017 return rcv._tab.VectorLen(o) 1018 } 1019 return 0 1020 } 1021 1022 func (rcv *InfoReplyRaw) CoverFilterBytes() []byte { 1023 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 1024 if o != 0 { 1025 return rcv._tab.ByteVector(o + rcv._tab.Pos) 1026 } 1027 return nil 1028 } 1029 1030 func (rcv *InfoReplyRaw) MutateCoverFilter(j int, n byte) bool { 1031 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 1032 if o != 0 { 1033 a := rcv._tab.Vector(o) 1034 return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) 1035 } 1036 return false 1037 } 1038 1039 func InfoReplyRawStart(builder *flatbuffers.Builder) { 1040 builder.StartObject(1) 1041 } 1042 func InfoReplyRawAddCoverFilter(builder *flatbuffers.Builder, coverFilter flatbuffers.UOffsetT) { 1043 builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(coverFilter), 0) 1044 } 1045 func InfoReplyRawStartCoverFilterVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { 1046 return builder.StartVector(1, numElems, 1) 1047 } 1048 func InfoReplyRawEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 1049 return builder.EndObject() 1050 } 1051 1052 type FileInfoRawT struct { 1053 Name string `json:"name"` 1054 Exists bool `json:"exists"` 1055 Error string `json:"error"` 1056 Data []byte `json:"data"` 1057 } 1058 1059 func (t *FileInfoRawT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 1060 if t == nil { 1061 return 0 1062 } 1063 nameOffset := builder.CreateString(t.Name) 1064 errorOffset := builder.CreateString(t.Error) 1065 dataOffset := flatbuffers.UOffsetT(0) 1066 if t.Data != nil { 1067 dataOffset = builder.CreateByteString(t.Data) 1068 } 1069 FileInfoRawStart(builder) 1070 FileInfoRawAddName(builder, nameOffset) 1071 FileInfoRawAddExists(builder, t.Exists) 1072 FileInfoRawAddError(builder, errorOffset) 1073 FileInfoRawAddData(builder, dataOffset) 1074 return FileInfoRawEnd(builder) 1075 } 1076 1077 func (rcv *FileInfoRaw) UnPackTo(t *FileInfoRawT) { 1078 t.Name = string(rcv.Name()) 1079 t.Exists = rcv.Exists() 1080 t.Error = string(rcv.Error()) 1081 t.Data = rcv.DataBytes() 1082 } 1083 1084 func (rcv *FileInfoRaw) UnPack() *FileInfoRawT { 1085 if rcv == nil { 1086 return nil 1087 } 1088 t := &FileInfoRawT{} 1089 rcv.UnPackTo(t) 1090 return t 1091 } 1092 1093 type FileInfoRaw struct { 1094 _tab flatbuffers.Table 1095 } 1096 1097 func GetRootAsFileInfoRaw(buf []byte, offset flatbuffers.UOffsetT) *FileInfoRaw { 1098 n := flatbuffers.GetUOffsetT(buf[offset:]) 1099 x := &FileInfoRaw{} 1100 x.Init(buf, n+offset) 1101 return x 1102 } 1103 1104 func GetSizePrefixedRootAsFileInfoRaw(buf []byte, offset flatbuffers.UOffsetT) *FileInfoRaw { 1105 n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) 1106 x := &FileInfoRaw{} 1107 x.Init(buf, n+offset+flatbuffers.SizeUint32) 1108 return x 1109 } 1110 1111 func (rcv *FileInfoRaw) Init(buf []byte, i flatbuffers.UOffsetT) { 1112 rcv._tab.Bytes = buf 1113 rcv._tab.Pos = i 1114 } 1115 1116 func (rcv *FileInfoRaw) Table() flatbuffers.Table { 1117 return rcv._tab 1118 } 1119 1120 func (rcv *FileInfoRaw) Name() []byte { 1121 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 1122 if o != 0 { 1123 return rcv._tab.ByteVector(o + rcv._tab.Pos) 1124 } 1125 return nil 1126 } 1127 1128 func (rcv *FileInfoRaw) Exists() bool { 1129 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 1130 if o != 0 { 1131 return rcv._tab.GetBool(o + rcv._tab.Pos) 1132 } 1133 return false 1134 } 1135 1136 func (rcv *FileInfoRaw) MutateExists(n bool) bool { 1137 return rcv._tab.MutateBoolSlot(6, n) 1138 } 1139 1140 func (rcv *FileInfoRaw) Error() []byte { 1141 o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) 1142 if o != 0 { 1143 return rcv._tab.ByteVector(o + rcv._tab.Pos) 1144 } 1145 return nil 1146 } 1147 1148 func (rcv *FileInfoRaw) Data(j int) byte { 1149 o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) 1150 if o != 0 { 1151 a := rcv._tab.Vector(o) 1152 return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) 1153 } 1154 return 0 1155 } 1156 1157 func (rcv *FileInfoRaw) DataLength() int { 1158 o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) 1159 if o != 0 { 1160 return rcv._tab.VectorLen(o) 1161 } 1162 return 0 1163 } 1164 1165 func (rcv *FileInfoRaw) DataBytes() []byte { 1166 o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) 1167 if o != 0 { 1168 return rcv._tab.ByteVector(o + rcv._tab.Pos) 1169 } 1170 return nil 1171 } 1172 1173 func (rcv *FileInfoRaw) MutateData(j int, n byte) bool { 1174 o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) 1175 if o != 0 { 1176 a := rcv._tab.Vector(o) 1177 return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) 1178 } 1179 return false 1180 } 1181 1182 func FileInfoRawStart(builder *flatbuffers.Builder) { 1183 builder.StartObject(4) 1184 } 1185 func FileInfoRawAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { 1186 builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) 1187 } 1188 func FileInfoRawAddExists(builder *flatbuffers.Builder, exists bool) { 1189 builder.PrependBoolSlot(1, exists, false) 1190 } 1191 func FileInfoRawAddError(builder *flatbuffers.Builder, error flatbuffers.UOffsetT) { 1192 builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(error), 0) 1193 } 1194 func FileInfoRawAddData(builder *flatbuffers.Builder, data flatbuffers.UOffsetT) { 1195 builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(data), 0) 1196 } 1197 func FileInfoRawStartDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { 1198 return builder.StartVector(1, numElems, 1) 1199 } 1200 func FileInfoRawEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 1201 return builder.EndObject() 1202 } 1203 1204 type GlobInfoRawT struct { 1205 Name string `json:"name"` 1206 Files []string `json:"files"` 1207 } 1208 1209 func (t *GlobInfoRawT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 1210 if t == nil { 1211 return 0 1212 } 1213 nameOffset := builder.CreateString(t.Name) 1214 filesOffset := flatbuffers.UOffsetT(0) 1215 if t.Files != nil { 1216 filesLength := len(t.Files) 1217 filesOffsets := make([]flatbuffers.UOffsetT, filesLength) 1218 for j := 0; j < filesLength; j++ { 1219 filesOffsets[j] = builder.CreateString(t.Files[j]) 1220 } 1221 GlobInfoRawStartFilesVector(builder, filesLength) 1222 for j := filesLength - 1; j >= 0; j-- { 1223 builder.PrependUOffsetT(filesOffsets[j]) 1224 } 1225 filesOffset = builder.EndVector(filesLength) 1226 } 1227 GlobInfoRawStart(builder) 1228 GlobInfoRawAddName(builder, nameOffset) 1229 GlobInfoRawAddFiles(builder, filesOffset) 1230 return GlobInfoRawEnd(builder) 1231 } 1232 1233 func (rcv *GlobInfoRaw) UnPackTo(t *GlobInfoRawT) { 1234 t.Name = string(rcv.Name()) 1235 filesLength := rcv.FilesLength() 1236 t.Files = make([]string, filesLength) 1237 for j := 0; j < filesLength; j++ { 1238 t.Files[j] = string(rcv.Files(j)) 1239 } 1240 } 1241 1242 func (rcv *GlobInfoRaw) UnPack() *GlobInfoRawT { 1243 if rcv == nil { 1244 return nil 1245 } 1246 t := &GlobInfoRawT{} 1247 rcv.UnPackTo(t) 1248 return t 1249 } 1250 1251 type GlobInfoRaw struct { 1252 _tab flatbuffers.Table 1253 } 1254 1255 func GetRootAsGlobInfoRaw(buf []byte, offset flatbuffers.UOffsetT) *GlobInfoRaw { 1256 n := flatbuffers.GetUOffsetT(buf[offset:]) 1257 x := &GlobInfoRaw{} 1258 x.Init(buf, n+offset) 1259 return x 1260 } 1261 1262 func GetSizePrefixedRootAsGlobInfoRaw(buf []byte, offset flatbuffers.UOffsetT) *GlobInfoRaw { 1263 n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) 1264 x := &GlobInfoRaw{} 1265 x.Init(buf, n+offset+flatbuffers.SizeUint32) 1266 return x 1267 } 1268 1269 func (rcv *GlobInfoRaw) Init(buf []byte, i flatbuffers.UOffsetT) { 1270 rcv._tab.Bytes = buf 1271 rcv._tab.Pos = i 1272 } 1273 1274 func (rcv *GlobInfoRaw) Table() flatbuffers.Table { 1275 return rcv._tab 1276 } 1277 1278 func (rcv *GlobInfoRaw) Name() []byte { 1279 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 1280 if o != 0 { 1281 return rcv._tab.ByteVector(o + rcv._tab.Pos) 1282 } 1283 return nil 1284 } 1285 1286 func (rcv *GlobInfoRaw) Files(j int) []byte { 1287 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 1288 if o != 0 { 1289 a := rcv._tab.Vector(o) 1290 return rcv._tab.ByteVector(a + flatbuffers.UOffsetT(j*4)) 1291 } 1292 return nil 1293 } 1294 1295 func (rcv *GlobInfoRaw) FilesLength() int { 1296 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 1297 if o != 0 { 1298 return rcv._tab.VectorLen(o) 1299 } 1300 return 0 1301 } 1302 1303 func GlobInfoRawStart(builder *flatbuffers.Builder) { 1304 builder.StartObject(2) 1305 } 1306 func GlobInfoRawAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT) { 1307 builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(name), 0) 1308 } 1309 func GlobInfoRawAddFiles(builder *flatbuffers.Builder, files flatbuffers.UOffsetT) { 1310 builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(files), 0) 1311 } 1312 func GlobInfoRawStartFilesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { 1313 return builder.StartVector(4, numElems, 4) 1314 } 1315 func GlobInfoRawEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 1316 return builder.EndObject() 1317 } 1318 1319 type FeatureInfoRawT struct { 1320 Id Feature `json:"id"` 1321 NeedSetup bool `json:"need_setup"` 1322 Reason string `json:"reason"` 1323 } 1324 1325 func (t *FeatureInfoRawT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 1326 if t == nil { 1327 return 0 1328 } 1329 reasonOffset := builder.CreateString(t.Reason) 1330 FeatureInfoRawStart(builder) 1331 FeatureInfoRawAddId(builder, t.Id) 1332 FeatureInfoRawAddNeedSetup(builder, t.NeedSetup) 1333 FeatureInfoRawAddReason(builder, reasonOffset) 1334 return FeatureInfoRawEnd(builder) 1335 } 1336 1337 func (rcv *FeatureInfoRaw) UnPackTo(t *FeatureInfoRawT) { 1338 t.Id = rcv.Id() 1339 t.NeedSetup = rcv.NeedSetup() 1340 t.Reason = string(rcv.Reason()) 1341 } 1342 1343 func (rcv *FeatureInfoRaw) UnPack() *FeatureInfoRawT { 1344 if rcv == nil { 1345 return nil 1346 } 1347 t := &FeatureInfoRawT{} 1348 rcv.UnPackTo(t) 1349 return t 1350 } 1351 1352 type FeatureInfoRaw struct { 1353 _tab flatbuffers.Table 1354 } 1355 1356 func GetRootAsFeatureInfoRaw(buf []byte, offset flatbuffers.UOffsetT) *FeatureInfoRaw { 1357 n := flatbuffers.GetUOffsetT(buf[offset:]) 1358 x := &FeatureInfoRaw{} 1359 x.Init(buf, n+offset) 1360 return x 1361 } 1362 1363 func GetSizePrefixedRootAsFeatureInfoRaw(buf []byte, offset flatbuffers.UOffsetT) *FeatureInfoRaw { 1364 n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) 1365 x := &FeatureInfoRaw{} 1366 x.Init(buf, n+offset+flatbuffers.SizeUint32) 1367 return x 1368 } 1369 1370 func (rcv *FeatureInfoRaw) Init(buf []byte, i flatbuffers.UOffsetT) { 1371 rcv._tab.Bytes = buf 1372 rcv._tab.Pos = i 1373 } 1374 1375 func (rcv *FeatureInfoRaw) Table() flatbuffers.Table { 1376 return rcv._tab 1377 } 1378 1379 func (rcv *FeatureInfoRaw) Id() Feature { 1380 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 1381 if o != 0 { 1382 return Feature(rcv._tab.GetUint64(o + rcv._tab.Pos)) 1383 } 1384 return 0 1385 } 1386 1387 func (rcv *FeatureInfoRaw) MutateId(n Feature) bool { 1388 return rcv._tab.MutateUint64Slot(4, uint64(n)) 1389 } 1390 1391 func (rcv *FeatureInfoRaw) NeedSetup() bool { 1392 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 1393 if o != 0 { 1394 return rcv._tab.GetBool(o + rcv._tab.Pos) 1395 } 1396 return false 1397 } 1398 1399 func (rcv *FeatureInfoRaw) MutateNeedSetup(n bool) bool { 1400 return rcv._tab.MutateBoolSlot(6, n) 1401 } 1402 1403 func (rcv *FeatureInfoRaw) Reason() []byte { 1404 o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) 1405 if o != 0 { 1406 return rcv._tab.ByteVector(o + rcv._tab.Pos) 1407 } 1408 return nil 1409 } 1410 1411 func FeatureInfoRawStart(builder *flatbuffers.Builder) { 1412 builder.StartObject(3) 1413 } 1414 func FeatureInfoRawAddId(builder *flatbuffers.Builder, id Feature) { 1415 builder.PrependUint64Slot(0, uint64(id), 0) 1416 } 1417 func FeatureInfoRawAddNeedSetup(builder *flatbuffers.Builder, needSetup bool) { 1418 builder.PrependBoolSlot(1, needSetup, false) 1419 } 1420 func FeatureInfoRawAddReason(builder *flatbuffers.Builder, reason flatbuffers.UOffsetT) { 1421 builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(reason), 0) 1422 } 1423 func FeatureInfoRawEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 1424 return builder.EndObject() 1425 } 1426 1427 type HostMessageRawT struct { 1428 Msg *HostMessagesRawT `json:"msg"` 1429 } 1430 1431 func (t *HostMessageRawT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 1432 if t == nil { 1433 return 0 1434 } 1435 msgOffset := t.Msg.Pack(builder) 1436 1437 HostMessageRawStart(builder) 1438 if t.Msg != nil { 1439 HostMessageRawAddMsgType(builder, t.Msg.Type) 1440 } 1441 HostMessageRawAddMsg(builder, msgOffset) 1442 return HostMessageRawEnd(builder) 1443 } 1444 1445 func (rcv *HostMessageRaw) UnPackTo(t *HostMessageRawT) { 1446 msgTable := flatbuffers.Table{} 1447 if rcv.Msg(&msgTable) { 1448 t.Msg = rcv.MsgType().UnPack(msgTable) 1449 } 1450 } 1451 1452 func (rcv *HostMessageRaw) UnPack() *HostMessageRawT { 1453 if rcv == nil { 1454 return nil 1455 } 1456 t := &HostMessageRawT{} 1457 rcv.UnPackTo(t) 1458 return t 1459 } 1460 1461 type HostMessageRaw struct { 1462 _tab flatbuffers.Table 1463 } 1464 1465 func GetRootAsHostMessageRaw(buf []byte, offset flatbuffers.UOffsetT) *HostMessageRaw { 1466 n := flatbuffers.GetUOffsetT(buf[offset:]) 1467 x := &HostMessageRaw{} 1468 x.Init(buf, n+offset) 1469 return x 1470 } 1471 1472 func GetSizePrefixedRootAsHostMessageRaw(buf []byte, offset flatbuffers.UOffsetT) *HostMessageRaw { 1473 n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) 1474 x := &HostMessageRaw{} 1475 x.Init(buf, n+offset+flatbuffers.SizeUint32) 1476 return x 1477 } 1478 1479 func (rcv *HostMessageRaw) Init(buf []byte, i flatbuffers.UOffsetT) { 1480 rcv._tab.Bytes = buf 1481 rcv._tab.Pos = i 1482 } 1483 1484 func (rcv *HostMessageRaw) Table() flatbuffers.Table { 1485 return rcv._tab 1486 } 1487 1488 func (rcv *HostMessageRaw) MsgType() HostMessagesRaw { 1489 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 1490 if o != 0 { 1491 return HostMessagesRaw(rcv._tab.GetByte(o + rcv._tab.Pos)) 1492 } 1493 return 0 1494 } 1495 1496 func (rcv *HostMessageRaw) MutateMsgType(n HostMessagesRaw) bool { 1497 return rcv._tab.MutateByteSlot(4, byte(n)) 1498 } 1499 1500 func (rcv *HostMessageRaw) Msg(obj *flatbuffers.Table) bool { 1501 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 1502 if o != 0 { 1503 rcv._tab.Union(obj, o) 1504 return true 1505 } 1506 return false 1507 } 1508 1509 func HostMessageRawStart(builder *flatbuffers.Builder) { 1510 builder.StartObject(2) 1511 } 1512 func HostMessageRawAddMsgType(builder *flatbuffers.Builder, msgType HostMessagesRaw) { 1513 builder.PrependByteSlot(0, byte(msgType), 0) 1514 } 1515 func HostMessageRawAddMsg(builder *flatbuffers.Builder, msg flatbuffers.UOffsetT) { 1516 builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(msg), 0) 1517 } 1518 func HostMessageRawEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 1519 return builder.EndObject() 1520 } 1521 1522 type ExecutorMessageRawT struct { 1523 Msg *ExecutorMessagesRawT `json:"msg"` 1524 } 1525 1526 func (t *ExecutorMessageRawT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 1527 if t == nil { 1528 return 0 1529 } 1530 msgOffset := t.Msg.Pack(builder) 1531 1532 ExecutorMessageRawStart(builder) 1533 if t.Msg != nil { 1534 ExecutorMessageRawAddMsgType(builder, t.Msg.Type) 1535 } 1536 ExecutorMessageRawAddMsg(builder, msgOffset) 1537 return ExecutorMessageRawEnd(builder) 1538 } 1539 1540 func (rcv *ExecutorMessageRaw) UnPackTo(t *ExecutorMessageRawT) { 1541 msgTable := flatbuffers.Table{} 1542 if rcv.Msg(&msgTable) { 1543 t.Msg = rcv.MsgType().UnPack(msgTable) 1544 } 1545 } 1546 1547 func (rcv *ExecutorMessageRaw) UnPack() *ExecutorMessageRawT { 1548 if rcv == nil { 1549 return nil 1550 } 1551 t := &ExecutorMessageRawT{} 1552 rcv.UnPackTo(t) 1553 return t 1554 } 1555 1556 type ExecutorMessageRaw struct { 1557 _tab flatbuffers.Table 1558 } 1559 1560 func GetRootAsExecutorMessageRaw(buf []byte, offset flatbuffers.UOffsetT) *ExecutorMessageRaw { 1561 n := flatbuffers.GetUOffsetT(buf[offset:]) 1562 x := &ExecutorMessageRaw{} 1563 x.Init(buf, n+offset) 1564 return x 1565 } 1566 1567 func GetSizePrefixedRootAsExecutorMessageRaw(buf []byte, offset flatbuffers.UOffsetT) *ExecutorMessageRaw { 1568 n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) 1569 x := &ExecutorMessageRaw{} 1570 x.Init(buf, n+offset+flatbuffers.SizeUint32) 1571 return x 1572 } 1573 1574 func (rcv *ExecutorMessageRaw) Init(buf []byte, i flatbuffers.UOffsetT) { 1575 rcv._tab.Bytes = buf 1576 rcv._tab.Pos = i 1577 } 1578 1579 func (rcv *ExecutorMessageRaw) Table() flatbuffers.Table { 1580 return rcv._tab 1581 } 1582 1583 func (rcv *ExecutorMessageRaw) MsgType() ExecutorMessagesRaw { 1584 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 1585 if o != 0 { 1586 return ExecutorMessagesRaw(rcv._tab.GetByte(o + rcv._tab.Pos)) 1587 } 1588 return 0 1589 } 1590 1591 func (rcv *ExecutorMessageRaw) MutateMsgType(n ExecutorMessagesRaw) bool { 1592 return rcv._tab.MutateByteSlot(4, byte(n)) 1593 } 1594 1595 func (rcv *ExecutorMessageRaw) Msg(obj *flatbuffers.Table) bool { 1596 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 1597 if o != 0 { 1598 rcv._tab.Union(obj, o) 1599 return true 1600 } 1601 return false 1602 } 1603 1604 func ExecutorMessageRawStart(builder *flatbuffers.Builder) { 1605 builder.StartObject(2) 1606 } 1607 func ExecutorMessageRawAddMsgType(builder *flatbuffers.Builder, msgType ExecutorMessagesRaw) { 1608 builder.PrependByteSlot(0, byte(msgType), 0) 1609 } 1610 func ExecutorMessageRawAddMsg(builder *flatbuffers.Builder, msg flatbuffers.UOffsetT) { 1611 builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(msg), 0) 1612 } 1613 func ExecutorMessageRawEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 1614 return builder.EndObject() 1615 } 1616 1617 type ExecRequestRawT struct { 1618 Id int64 `json:"id"` 1619 ProgData []byte `json:"prog_data"` 1620 Flags RequestFlag `json:"flags"` 1621 ExecEnv ExecEnv `json:"exec_env"` 1622 ExecFlags ExecFlag `json:"exec_flags"` 1623 SandboxArg int64 `json:"sandbox_arg"` 1624 SignalFilter []uint32 `json:"signal_filter"` 1625 SignalFilterCall int32 `json:"signal_filter_call"` 1626 Repeat int32 `json:"repeat"` 1627 } 1628 1629 func (t *ExecRequestRawT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 1630 if t == nil { 1631 return 0 1632 } 1633 progDataOffset := flatbuffers.UOffsetT(0) 1634 if t.ProgData != nil { 1635 progDataOffset = builder.CreateByteString(t.ProgData) 1636 } 1637 signalFilterOffset := flatbuffers.UOffsetT(0) 1638 if t.SignalFilter != nil { 1639 signalFilterLength := len(t.SignalFilter) 1640 ExecRequestRawStartSignalFilterVector(builder, signalFilterLength) 1641 for j := signalFilterLength - 1; j >= 0; j-- { 1642 builder.PrependUint32(t.SignalFilter[j]) 1643 } 1644 signalFilterOffset = builder.EndVector(signalFilterLength) 1645 } 1646 ExecRequestRawStart(builder) 1647 ExecRequestRawAddId(builder, t.Id) 1648 ExecRequestRawAddProgData(builder, progDataOffset) 1649 ExecRequestRawAddFlags(builder, t.Flags) 1650 ExecRequestRawAddExecEnv(builder, t.ExecEnv) 1651 ExecRequestRawAddExecFlags(builder, t.ExecFlags) 1652 ExecRequestRawAddSandboxArg(builder, t.SandboxArg) 1653 ExecRequestRawAddSignalFilter(builder, signalFilterOffset) 1654 ExecRequestRawAddSignalFilterCall(builder, t.SignalFilterCall) 1655 ExecRequestRawAddRepeat(builder, t.Repeat) 1656 return ExecRequestRawEnd(builder) 1657 } 1658 1659 func (rcv *ExecRequestRaw) UnPackTo(t *ExecRequestRawT) { 1660 t.Id = rcv.Id() 1661 t.ProgData = rcv.ProgDataBytes() 1662 t.Flags = rcv.Flags() 1663 t.ExecEnv = rcv.ExecEnv() 1664 t.ExecFlags = rcv.ExecFlags() 1665 t.SandboxArg = rcv.SandboxArg() 1666 signalFilterLength := rcv.SignalFilterLength() 1667 t.SignalFilter = make([]uint32, signalFilterLength) 1668 for j := 0; j < signalFilterLength; j++ { 1669 t.SignalFilter[j] = rcv.SignalFilter(j) 1670 } 1671 t.SignalFilterCall = rcv.SignalFilterCall() 1672 t.Repeat = rcv.Repeat() 1673 } 1674 1675 func (rcv *ExecRequestRaw) UnPack() *ExecRequestRawT { 1676 if rcv == nil { 1677 return nil 1678 } 1679 t := &ExecRequestRawT{} 1680 rcv.UnPackTo(t) 1681 return t 1682 } 1683 1684 type ExecRequestRaw struct { 1685 _tab flatbuffers.Table 1686 } 1687 1688 func GetRootAsExecRequestRaw(buf []byte, offset flatbuffers.UOffsetT) *ExecRequestRaw { 1689 n := flatbuffers.GetUOffsetT(buf[offset:]) 1690 x := &ExecRequestRaw{} 1691 x.Init(buf, n+offset) 1692 return x 1693 } 1694 1695 func GetSizePrefixedRootAsExecRequestRaw(buf []byte, offset flatbuffers.UOffsetT) *ExecRequestRaw { 1696 n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) 1697 x := &ExecRequestRaw{} 1698 x.Init(buf, n+offset+flatbuffers.SizeUint32) 1699 return x 1700 } 1701 1702 func (rcv *ExecRequestRaw) Init(buf []byte, i flatbuffers.UOffsetT) { 1703 rcv._tab.Bytes = buf 1704 rcv._tab.Pos = i 1705 } 1706 1707 func (rcv *ExecRequestRaw) Table() flatbuffers.Table { 1708 return rcv._tab 1709 } 1710 1711 func (rcv *ExecRequestRaw) Id() int64 { 1712 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 1713 if o != 0 { 1714 return rcv._tab.GetInt64(o + rcv._tab.Pos) 1715 } 1716 return 0 1717 } 1718 1719 func (rcv *ExecRequestRaw) MutateId(n int64) bool { 1720 return rcv._tab.MutateInt64Slot(4, n) 1721 } 1722 1723 func (rcv *ExecRequestRaw) ProgData(j int) byte { 1724 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 1725 if o != 0 { 1726 a := rcv._tab.Vector(o) 1727 return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) 1728 } 1729 return 0 1730 } 1731 1732 func (rcv *ExecRequestRaw) ProgDataLength() int { 1733 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 1734 if o != 0 { 1735 return rcv._tab.VectorLen(o) 1736 } 1737 return 0 1738 } 1739 1740 func (rcv *ExecRequestRaw) ProgDataBytes() []byte { 1741 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 1742 if o != 0 { 1743 return rcv._tab.ByteVector(o + rcv._tab.Pos) 1744 } 1745 return nil 1746 } 1747 1748 func (rcv *ExecRequestRaw) MutateProgData(j int, n byte) bool { 1749 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 1750 if o != 0 { 1751 a := rcv._tab.Vector(o) 1752 return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) 1753 } 1754 return false 1755 } 1756 1757 func (rcv *ExecRequestRaw) Flags() RequestFlag { 1758 o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) 1759 if o != 0 { 1760 return RequestFlag(rcv._tab.GetUint64(o + rcv._tab.Pos)) 1761 } 1762 return 0 1763 } 1764 1765 func (rcv *ExecRequestRaw) MutateFlags(n RequestFlag) bool { 1766 return rcv._tab.MutateUint64Slot(8, uint64(n)) 1767 } 1768 1769 func (rcv *ExecRequestRaw) ExecEnv() ExecEnv { 1770 o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) 1771 if o != 0 { 1772 return ExecEnv(rcv._tab.GetUint64(o + rcv._tab.Pos)) 1773 } 1774 return 0 1775 } 1776 1777 func (rcv *ExecRequestRaw) MutateExecEnv(n ExecEnv) bool { 1778 return rcv._tab.MutateUint64Slot(10, uint64(n)) 1779 } 1780 1781 func (rcv *ExecRequestRaw) ExecFlags() ExecFlag { 1782 o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) 1783 if o != 0 { 1784 return ExecFlag(rcv._tab.GetUint64(o + rcv._tab.Pos)) 1785 } 1786 return 0 1787 } 1788 1789 func (rcv *ExecRequestRaw) MutateExecFlags(n ExecFlag) bool { 1790 return rcv._tab.MutateUint64Slot(12, uint64(n)) 1791 } 1792 1793 func (rcv *ExecRequestRaw) SandboxArg() int64 { 1794 o := flatbuffers.UOffsetT(rcv._tab.Offset(14)) 1795 if o != 0 { 1796 return rcv._tab.GetInt64(o + rcv._tab.Pos) 1797 } 1798 return 0 1799 } 1800 1801 func (rcv *ExecRequestRaw) MutateSandboxArg(n int64) bool { 1802 return rcv._tab.MutateInt64Slot(14, n) 1803 } 1804 1805 func (rcv *ExecRequestRaw) SignalFilter(j int) uint32 { 1806 o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) 1807 if o != 0 { 1808 a := rcv._tab.Vector(o) 1809 return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) 1810 } 1811 return 0 1812 } 1813 1814 func (rcv *ExecRequestRaw) SignalFilterLength() int { 1815 o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) 1816 if o != 0 { 1817 return rcv._tab.VectorLen(o) 1818 } 1819 return 0 1820 } 1821 1822 func (rcv *ExecRequestRaw) MutateSignalFilter(j int, n uint32) bool { 1823 o := flatbuffers.UOffsetT(rcv._tab.Offset(16)) 1824 if o != 0 { 1825 a := rcv._tab.Vector(o) 1826 return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) 1827 } 1828 return false 1829 } 1830 1831 func (rcv *ExecRequestRaw) SignalFilterCall() int32 { 1832 o := flatbuffers.UOffsetT(rcv._tab.Offset(18)) 1833 if o != 0 { 1834 return rcv._tab.GetInt32(o + rcv._tab.Pos) 1835 } 1836 return 0 1837 } 1838 1839 func (rcv *ExecRequestRaw) MutateSignalFilterCall(n int32) bool { 1840 return rcv._tab.MutateInt32Slot(18, n) 1841 } 1842 1843 func (rcv *ExecRequestRaw) Repeat() int32 { 1844 o := flatbuffers.UOffsetT(rcv._tab.Offset(20)) 1845 if o != 0 { 1846 return rcv._tab.GetInt32(o + rcv._tab.Pos) 1847 } 1848 return 0 1849 } 1850 1851 func (rcv *ExecRequestRaw) MutateRepeat(n int32) bool { 1852 return rcv._tab.MutateInt32Slot(20, n) 1853 } 1854 1855 func ExecRequestRawStart(builder *flatbuffers.Builder) { 1856 builder.StartObject(9) 1857 } 1858 func ExecRequestRawAddId(builder *flatbuffers.Builder, id int64) { 1859 builder.PrependInt64Slot(0, id, 0) 1860 } 1861 func ExecRequestRawAddProgData(builder *flatbuffers.Builder, progData flatbuffers.UOffsetT) { 1862 builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(progData), 0) 1863 } 1864 func ExecRequestRawStartProgDataVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { 1865 return builder.StartVector(1, numElems, 1) 1866 } 1867 func ExecRequestRawAddFlags(builder *flatbuffers.Builder, flags RequestFlag) { 1868 builder.PrependUint64Slot(2, uint64(flags), 0) 1869 } 1870 func ExecRequestRawAddExecEnv(builder *flatbuffers.Builder, execEnv ExecEnv) { 1871 builder.PrependUint64Slot(3, uint64(execEnv), 0) 1872 } 1873 func ExecRequestRawAddExecFlags(builder *flatbuffers.Builder, execFlags ExecFlag) { 1874 builder.PrependUint64Slot(4, uint64(execFlags), 0) 1875 } 1876 func ExecRequestRawAddSandboxArg(builder *flatbuffers.Builder, sandboxArg int64) { 1877 builder.PrependInt64Slot(5, sandboxArg, 0) 1878 } 1879 func ExecRequestRawAddSignalFilter(builder *flatbuffers.Builder, signalFilter flatbuffers.UOffsetT) { 1880 builder.PrependUOffsetTSlot(6, flatbuffers.UOffsetT(signalFilter), 0) 1881 } 1882 func ExecRequestRawStartSignalFilterVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { 1883 return builder.StartVector(4, numElems, 4) 1884 } 1885 func ExecRequestRawAddSignalFilterCall(builder *flatbuffers.Builder, signalFilterCall int32) { 1886 builder.PrependInt32Slot(7, signalFilterCall, 0) 1887 } 1888 func ExecRequestRawAddRepeat(builder *flatbuffers.Builder, repeat int32) { 1889 builder.PrependInt32Slot(8, repeat, 0) 1890 } 1891 func ExecRequestRawEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 1892 return builder.EndObject() 1893 } 1894 1895 type SignalUpdateRawT struct { 1896 NewMax []uint32 `json:"new_max"` 1897 DropMax []uint32 `json:"drop_max"` 1898 } 1899 1900 func (t *SignalUpdateRawT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 1901 if t == nil { 1902 return 0 1903 } 1904 newMaxOffset := flatbuffers.UOffsetT(0) 1905 if t.NewMax != nil { 1906 newMaxLength := len(t.NewMax) 1907 SignalUpdateRawStartNewMaxVector(builder, newMaxLength) 1908 for j := newMaxLength - 1; j >= 0; j-- { 1909 builder.PrependUint32(t.NewMax[j]) 1910 } 1911 newMaxOffset = builder.EndVector(newMaxLength) 1912 } 1913 dropMaxOffset := flatbuffers.UOffsetT(0) 1914 if t.DropMax != nil { 1915 dropMaxLength := len(t.DropMax) 1916 SignalUpdateRawStartDropMaxVector(builder, dropMaxLength) 1917 for j := dropMaxLength - 1; j >= 0; j-- { 1918 builder.PrependUint32(t.DropMax[j]) 1919 } 1920 dropMaxOffset = builder.EndVector(dropMaxLength) 1921 } 1922 SignalUpdateRawStart(builder) 1923 SignalUpdateRawAddNewMax(builder, newMaxOffset) 1924 SignalUpdateRawAddDropMax(builder, dropMaxOffset) 1925 return SignalUpdateRawEnd(builder) 1926 } 1927 1928 func (rcv *SignalUpdateRaw) UnPackTo(t *SignalUpdateRawT) { 1929 newMaxLength := rcv.NewMaxLength() 1930 t.NewMax = make([]uint32, newMaxLength) 1931 for j := 0; j < newMaxLength; j++ { 1932 t.NewMax[j] = rcv.NewMax(j) 1933 } 1934 dropMaxLength := rcv.DropMaxLength() 1935 t.DropMax = make([]uint32, dropMaxLength) 1936 for j := 0; j < dropMaxLength; j++ { 1937 t.DropMax[j] = rcv.DropMax(j) 1938 } 1939 } 1940 1941 func (rcv *SignalUpdateRaw) UnPack() *SignalUpdateRawT { 1942 if rcv == nil { 1943 return nil 1944 } 1945 t := &SignalUpdateRawT{} 1946 rcv.UnPackTo(t) 1947 return t 1948 } 1949 1950 type SignalUpdateRaw struct { 1951 _tab flatbuffers.Table 1952 } 1953 1954 func GetRootAsSignalUpdateRaw(buf []byte, offset flatbuffers.UOffsetT) *SignalUpdateRaw { 1955 n := flatbuffers.GetUOffsetT(buf[offset:]) 1956 x := &SignalUpdateRaw{} 1957 x.Init(buf, n+offset) 1958 return x 1959 } 1960 1961 func GetSizePrefixedRootAsSignalUpdateRaw(buf []byte, offset flatbuffers.UOffsetT) *SignalUpdateRaw { 1962 n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) 1963 x := &SignalUpdateRaw{} 1964 x.Init(buf, n+offset+flatbuffers.SizeUint32) 1965 return x 1966 } 1967 1968 func (rcv *SignalUpdateRaw) Init(buf []byte, i flatbuffers.UOffsetT) { 1969 rcv._tab.Bytes = buf 1970 rcv._tab.Pos = i 1971 } 1972 1973 func (rcv *SignalUpdateRaw) Table() flatbuffers.Table { 1974 return rcv._tab 1975 } 1976 1977 func (rcv *SignalUpdateRaw) NewMax(j int) uint32 { 1978 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 1979 if o != 0 { 1980 a := rcv._tab.Vector(o) 1981 return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) 1982 } 1983 return 0 1984 } 1985 1986 func (rcv *SignalUpdateRaw) NewMaxLength() int { 1987 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 1988 if o != 0 { 1989 return rcv._tab.VectorLen(o) 1990 } 1991 return 0 1992 } 1993 1994 func (rcv *SignalUpdateRaw) MutateNewMax(j int, n uint32) bool { 1995 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 1996 if o != 0 { 1997 a := rcv._tab.Vector(o) 1998 return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) 1999 } 2000 return false 2001 } 2002 2003 func (rcv *SignalUpdateRaw) DropMax(j int) uint32 { 2004 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 2005 if o != 0 { 2006 a := rcv._tab.Vector(o) 2007 return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) 2008 } 2009 return 0 2010 } 2011 2012 func (rcv *SignalUpdateRaw) DropMaxLength() int { 2013 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 2014 if o != 0 { 2015 return rcv._tab.VectorLen(o) 2016 } 2017 return 0 2018 } 2019 2020 func (rcv *SignalUpdateRaw) MutateDropMax(j int, n uint32) bool { 2021 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 2022 if o != 0 { 2023 a := rcv._tab.Vector(o) 2024 return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) 2025 } 2026 return false 2027 } 2028 2029 func SignalUpdateRawStart(builder *flatbuffers.Builder) { 2030 builder.StartObject(2) 2031 } 2032 func SignalUpdateRawAddNewMax(builder *flatbuffers.Builder, newMax flatbuffers.UOffsetT) { 2033 builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(newMax), 0) 2034 } 2035 func SignalUpdateRawStartNewMaxVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { 2036 return builder.StartVector(4, numElems, 4) 2037 } 2038 func SignalUpdateRawAddDropMax(builder *flatbuffers.Builder, dropMax flatbuffers.UOffsetT) { 2039 builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(dropMax), 0) 2040 } 2041 func SignalUpdateRawStartDropMaxVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { 2042 return builder.StartVector(4, numElems, 4) 2043 } 2044 func SignalUpdateRawEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 2045 return builder.EndObject() 2046 } 2047 2048 type ExecutingMessageRawT struct { 2049 Id int64 `json:"id"` 2050 ProcId int32 `json:"proc_id"` 2051 Try int32 `json:"try"` 2052 WaitDuration int64 `json:"wait_duration"` 2053 } 2054 2055 func (t *ExecutingMessageRawT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 2056 if t == nil { 2057 return 0 2058 } 2059 ExecutingMessageRawStart(builder) 2060 ExecutingMessageRawAddId(builder, t.Id) 2061 ExecutingMessageRawAddProcId(builder, t.ProcId) 2062 ExecutingMessageRawAddTry(builder, t.Try) 2063 ExecutingMessageRawAddWaitDuration(builder, t.WaitDuration) 2064 return ExecutingMessageRawEnd(builder) 2065 } 2066 2067 func (rcv *ExecutingMessageRaw) UnPackTo(t *ExecutingMessageRawT) { 2068 t.Id = rcv.Id() 2069 t.ProcId = rcv.ProcId() 2070 t.Try = rcv.Try() 2071 t.WaitDuration = rcv.WaitDuration() 2072 } 2073 2074 func (rcv *ExecutingMessageRaw) UnPack() *ExecutingMessageRawT { 2075 if rcv == nil { 2076 return nil 2077 } 2078 t := &ExecutingMessageRawT{} 2079 rcv.UnPackTo(t) 2080 return t 2081 } 2082 2083 type ExecutingMessageRaw struct { 2084 _tab flatbuffers.Table 2085 } 2086 2087 func GetRootAsExecutingMessageRaw(buf []byte, offset flatbuffers.UOffsetT) *ExecutingMessageRaw { 2088 n := flatbuffers.GetUOffsetT(buf[offset:]) 2089 x := &ExecutingMessageRaw{} 2090 x.Init(buf, n+offset) 2091 return x 2092 } 2093 2094 func GetSizePrefixedRootAsExecutingMessageRaw(buf []byte, offset flatbuffers.UOffsetT) *ExecutingMessageRaw { 2095 n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) 2096 x := &ExecutingMessageRaw{} 2097 x.Init(buf, n+offset+flatbuffers.SizeUint32) 2098 return x 2099 } 2100 2101 func (rcv *ExecutingMessageRaw) Init(buf []byte, i flatbuffers.UOffsetT) { 2102 rcv._tab.Bytes = buf 2103 rcv._tab.Pos = i 2104 } 2105 2106 func (rcv *ExecutingMessageRaw) Table() flatbuffers.Table { 2107 return rcv._tab 2108 } 2109 2110 func (rcv *ExecutingMessageRaw) Id() int64 { 2111 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 2112 if o != 0 { 2113 return rcv._tab.GetInt64(o + rcv._tab.Pos) 2114 } 2115 return 0 2116 } 2117 2118 func (rcv *ExecutingMessageRaw) MutateId(n int64) bool { 2119 return rcv._tab.MutateInt64Slot(4, n) 2120 } 2121 2122 func (rcv *ExecutingMessageRaw) ProcId() int32 { 2123 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 2124 if o != 0 { 2125 return rcv._tab.GetInt32(o + rcv._tab.Pos) 2126 } 2127 return 0 2128 } 2129 2130 func (rcv *ExecutingMessageRaw) MutateProcId(n int32) bool { 2131 return rcv._tab.MutateInt32Slot(6, n) 2132 } 2133 2134 func (rcv *ExecutingMessageRaw) Try() int32 { 2135 o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) 2136 if o != 0 { 2137 return rcv._tab.GetInt32(o + rcv._tab.Pos) 2138 } 2139 return 0 2140 } 2141 2142 func (rcv *ExecutingMessageRaw) MutateTry(n int32) bool { 2143 return rcv._tab.MutateInt32Slot(8, n) 2144 } 2145 2146 func (rcv *ExecutingMessageRaw) WaitDuration() int64 { 2147 o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) 2148 if o != 0 { 2149 return rcv._tab.GetInt64(o + rcv._tab.Pos) 2150 } 2151 return 0 2152 } 2153 2154 func (rcv *ExecutingMessageRaw) MutateWaitDuration(n int64) bool { 2155 return rcv._tab.MutateInt64Slot(10, n) 2156 } 2157 2158 func ExecutingMessageRawStart(builder *flatbuffers.Builder) { 2159 builder.StartObject(4) 2160 } 2161 func ExecutingMessageRawAddId(builder *flatbuffers.Builder, id int64) { 2162 builder.PrependInt64Slot(0, id, 0) 2163 } 2164 func ExecutingMessageRawAddProcId(builder *flatbuffers.Builder, procId int32) { 2165 builder.PrependInt32Slot(1, procId, 0) 2166 } 2167 func ExecutingMessageRawAddTry(builder *flatbuffers.Builder, try int32) { 2168 builder.PrependInt32Slot(2, try, 0) 2169 } 2170 func ExecutingMessageRawAddWaitDuration(builder *flatbuffers.Builder, waitDuration int64) { 2171 builder.PrependInt64Slot(3, waitDuration, 0) 2172 } 2173 func ExecutingMessageRawEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 2174 return builder.EndObject() 2175 } 2176 2177 type CallInfoRawT struct { 2178 Flags CallFlag `json:"flags"` 2179 Error int32 `json:"error"` 2180 Signal []uint32 `json:"signal"` 2181 Cover []uint32 `json:"cover"` 2182 Comps []*ComparisonRawT `json:"comps"` 2183 } 2184 2185 func (t *CallInfoRawT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 2186 if t == nil { 2187 return 0 2188 } 2189 signalOffset := flatbuffers.UOffsetT(0) 2190 if t.Signal != nil { 2191 signalLength := len(t.Signal) 2192 CallInfoRawStartSignalVector(builder, signalLength) 2193 for j := signalLength - 1; j >= 0; j-- { 2194 builder.PrependUint32(t.Signal[j]) 2195 } 2196 signalOffset = builder.EndVector(signalLength) 2197 } 2198 coverOffset := flatbuffers.UOffsetT(0) 2199 if t.Cover != nil { 2200 coverLength := len(t.Cover) 2201 CallInfoRawStartCoverVector(builder, coverLength) 2202 for j := coverLength - 1; j >= 0; j-- { 2203 builder.PrependUint32(t.Cover[j]) 2204 } 2205 coverOffset = builder.EndVector(coverLength) 2206 } 2207 compsOffset := flatbuffers.UOffsetT(0) 2208 if t.Comps != nil { 2209 compsLength := len(t.Comps) 2210 CallInfoRawStartCompsVector(builder, compsLength) 2211 for j := compsLength - 1; j >= 0; j-- { 2212 t.Comps[j].Pack(builder) 2213 } 2214 compsOffset = builder.EndVector(compsLength) 2215 } 2216 CallInfoRawStart(builder) 2217 CallInfoRawAddFlags(builder, t.Flags) 2218 CallInfoRawAddError(builder, t.Error) 2219 CallInfoRawAddSignal(builder, signalOffset) 2220 CallInfoRawAddCover(builder, coverOffset) 2221 CallInfoRawAddComps(builder, compsOffset) 2222 return CallInfoRawEnd(builder) 2223 } 2224 2225 func (rcv *CallInfoRaw) UnPackTo(t *CallInfoRawT) { 2226 t.Flags = rcv.Flags() 2227 t.Error = rcv.Error() 2228 signalLength := rcv.SignalLength() 2229 t.Signal = make([]uint32, signalLength) 2230 for j := 0; j < signalLength; j++ { 2231 t.Signal[j] = rcv.Signal(j) 2232 } 2233 coverLength := rcv.CoverLength() 2234 t.Cover = make([]uint32, coverLength) 2235 for j := 0; j < coverLength; j++ { 2236 t.Cover[j] = rcv.Cover(j) 2237 } 2238 compsLength := rcv.CompsLength() 2239 t.Comps = make([]*ComparisonRawT, compsLength) 2240 for j := 0; j < compsLength; j++ { 2241 x := ComparisonRaw{} 2242 rcv.Comps(&x, j) 2243 t.Comps[j] = x.UnPack() 2244 } 2245 } 2246 2247 func (rcv *CallInfoRaw) UnPack() *CallInfoRawT { 2248 if rcv == nil { 2249 return nil 2250 } 2251 t := &CallInfoRawT{} 2252 rcv.UnPackTo(t) 2253 return t 2254 } 2255 2256 type CallInfoRaw struct { 2257 _tab flatbuffers.Table 2258 } 2259 2260 func GetRootAsCallInfoRaw(buf []byte, offset flatbuffers.UOffsetT) *CallInfoRaw { 2261 n := flatbuffers.GetUOffsetT(buf[offset:]) 2262 x := &CallInfoRaw{} 2263 x.Init(buf, n+offset) 2264 return x 2265 } 2266 2267 func GetSizePrefixedRootAsCallInfoRaw(buf []byte, offset flatbuffers.UOffsetT) *CallInfoRaw { 2268 n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) 2269 x := &CallInfoRaw{} 2270 x.Init(buf, n+offset+flatbuffers.SizeUint32) 2271 return x 2272 } 2273 2274 func (rcv *CallInfoRaw) Init(buf []byte, i flatbuffers.UOffsetT) { 2275 rcv._tab.Bytes = buf 2276 rcv._tab.Pos = i 2277 } 2278 2279 func (rcv *CallInfoRaw) Table() flatbuffers.Table { 2280 return rcv._tab 2281 } 2282 2283 func (rcv *CallInfoRaw) Flags() CallFlag { 2284 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 2285 if o != 0 { 2286 return CallFlag(rcv._tab.GetByte(o + rcv._tab.Pos)) 2287 } 2288 return 0 2289 } 2290 2291 func (rcv *CallInfoRaw) MutateFlags(n CallFlag) bool { 2292 return rcv._tab.MutateByteSlot(4, byte(n)) 2293 } 2294 2295 func (rcv *CallInfoRaw) Error() int32 { 2296 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 2297 if o != 0 { 2298 return rcv._tab.GetInt32(o + rcv._tab.Pos) 2299 } 2300 return 0 2301 } 2302 2303 func (rcv *CallInfoRaw) MutateError(n int32) bool { 2304 return rcv._tab.MutateInt32Slot(6, n) 2305 } 2306 2307 func (rcv *CallInfoRaw) Signal(j int) uint32 { 2308 o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) 2309 if o != 0 { 2310 a := rcv._tab.Vector(o) 2311 return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) 2312 } 2313 return 0 2314 } 2315 2316 func (rcv *CallInfoRaw) SignalLength() int { 2317 o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) 2318 if o != 0 { 2319 return rcv._tab.VectorLen(o) 2320 } 2321 return 0 2322 } 2323 2324 func (rcv *CallInfoRaw) MutateSignal(j int, n uint32) bool { 2325 o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) 2326 if o != 0 { 2327 a := rcv._tab.Vector(o) 2328 return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) 2329 } 2330 return false 2331 } 2332 2333 func (rcv *CallInfoRaw) Cover(j int) uint32 { 2334 o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) 2335 if o != 0 { 2336 a := rcv._tab.Vector(o) 2337 return rcv._tab.GetUint32(a + flatbuffers.UOffsetT(j*4)) 2338 } 2339 return 0 2340 } 2341 2342 func (rcv *CallInfoRaw) CoverLength() int { 2343 o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) 2344 if o != 0 { 2345 return rcv._tab.VectorLen(o) 2346 } 2347 return 0 2348 } 2349 2350 func (rcv *CallInfoRaw) MutateCover(j int, n uint32) bool { 2351 o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) 2352 if o != 0 { 2353 a := rcv._tab.Vector(o) 2354 return rcv._tab.MutateUint32(a+flatbuffers.UOffsetT(j*4), n) 2355 } 2356 return false 2357 } 2358 2359 func (rcv *CallInfoRaw) Comps(obj *ComparisonRaw, j int) bool { 2360 o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) 2361 if o != 0 { 2362 x := rcv._tab.Vector(o) 2363 x += flatbuffers.UOffsetT(j) * 16 2364 obj.Init(rcv._tab.Bytes, x) 2365 return true 2366 } 2367 return false 2368 } 2369 2370 func (rcv *CallInfoRaw) CompsLength() int { 2371 o := flatbuffers.UOffsetT(rcv._tab.Offset(12)) 2372 if o != 0 { 2373 return rcv._tab.VectorLen(o) 2374 } 2375 return 0 2376 } 2377 2378 func CallInfoRawStart(builder *flatbuffers.Builder) { 2379 builder.StartObject(5) 2380 } 2381 func CallInfoRawAddFlags(builder *flatbuffers.Builder, flags CallFlag) { 2382 builder.PrependByteSlot(0, byte(flags), 0) 2383 } 2384 func CallInfoRawAddError(builder *flatbuffers.Builder, error int32) { 2385 builder.PrependInt32Slot(1, error, 0) 2386 } 2387 func CallInfoRawAddSignal(builder *flatbuffers.Builder, signal flatbuffers.UOffsetT) { 2388 builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(signal), 0) 2389 } 2390 func CallInfoRawStartSignalVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { 2391 return builder.StartVector(4, numElems, 4) 2392 } 2393 func CallInfoRawAddCover(builder *flatbuffers.Builder, cover flatbuffers.UOffsetT) { 2394 builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(cover), 0) 2395 } 2396 func CallInfoRawStartCoverVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { 2397 return builder.StartVector(4, numElems, 4) 2398 } 2399 func CallInfoRawAddComps(builder *flatbuffers.Builder, comps flatbuffers.UOffsetT) { 2400 builder.PrependUOffsetTSlot(4, flatbuffers.UOffsetT(comps), 0) 2401 } 2402 func CallInfoRawStartCompsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { 2403 return builder.StartVector(16, numElems, 8) 2404 } 2405 func CallInfoRawEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 2406 return builder.EndObject() 2407 } 2408 2409 type ComparisonRawT struct { 2410 Op1 uint64 `json:"op1"` 2411 Op2 uint64 `json:"op2"` 2412 } 2413 2414 func (t *ComparisonRawT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 2415 if t == nil { 2416 return 0 2417 } 2418 return CreateComparisonRaw(builder, t.Op1, t.Op2) 2419 } 2420 func (rcv *ComparisonRaw) UnPackTo(t *ComparisonRawT) { 2421 t.Op1 = rcv.Op1() 2422 t.Op2 = rcv.Op2() 2423 } 2424 2425 func (rcv *ComparisonRaw) UnPack() *ComparisonRawT { 2426 if rcv == nil { 2427 return nil 2428 } 2429 t := &ComparisonRawT{} 2430 rcv.UnPackTo(t) 2431 return t 2432 } 2433 2434 type ComparisonRaw struct { 2435 _tab flatbuffers.Struct 2436 } 2437 2438 func (rcv *ComparisonRaw) Init(buf []byte, i flatbuffers.UOffsetT) { 2439 rcv._tab.Bytes = buf 2440 rcv._tab.Pos = i 2441 } 2442 2443 func (rcv *ComparisonRaw) Table() flatbuffers.Table { 2444 return rcv._tab.Table 2445 } 2446 2447 func (rcv *ComparisonRaw) Op1() uint64 { 2448 return rcv._tab.GetUint64(rcv._tab.Pos + flatbuffers.UOffsetT(0)) 2449 } 2450 func (rcv *ComparisonRaw) MutateOp1(n uint64) bool { 2451 return rcv._tab.MutateUint64(rcv._tab.Pos+flatbuffers.UOffsetT(0), n) 2452 } 2453 2454 func (rcv *ComparisonRaw) Op2() uint64 { 2455 return rcv._tab.GetUint64(rcv._tab.Pos + flatbuffers.UOffsetT(8)) 2456 } 2457 func (rcv *ComparisonRaw) MutateOp2(n uint64) bool { 2458 return rcv._tab.MutateUint64(rcv._tab.Pos+flatbuffers.UOffsetT(8), n) 2459 } 2460 2461 func CreateComparisonRaw(builder *flatbuffers.Builder, op1 uint64, op2 uint64) flatbuffers.UOffsetT { 2462 builder.Prep(8, 16) 2463 builder.PrependUint64(op2) 2464 builder.PrependUint64(op1) 2465 return builder.Offset() 2466 } 2467 2468 type ProgInfoRawT struct { 2469 Calls []*CallInfoRawT `json:"calls"` 2470 Extra *CallInfoRawT `json:"extra"` 2471 Elapsed uint64 `json:"elapsed"` 2472 Freshness uint64 `json:"freshness"` 2473 } 2474 2475 func (t *ProgInfoRawT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 2476 if t == nil { 2477 return 0 2478 } 2479 callsOffset := flatbuffers.UOffsetT(0) 2480 if t.Calls != nil { 2481 callsLength := len(t.Calls) 2482 callsOffsets := make([]flatbuffers.UOffsetT, callsLength) 2483 for j := 0; j < callsLength; j++ { 2484 callsOffsets[j] = t.Calls[j].Pack(builder) 2485 } 2486 ProgInfoRawStartCallsVector(builder, callsLength) 2487 for j := callsLength - 1; j >= 0; j-- { 2488 builder.PrependUOffsetT(callsOffsets[j]) 2489 } 2490 callsOffset = builder.EndVector(callsLength) 2491 } 2492 extraOffset := t.Extra.Pack(builder) 2493 ProgInfoRawStart(builder) 2494 ProgInfoRawAddCalls(builder, callsOffset) 2495 ProgInfoRawAddExtra(builder, extraOffset) 2496 ProgInfoRawAddElapsed(builder, t.Elapsed) 2497 ProgInfoRawAddFreshness(builder, t.Freshness) 2498 return ProgInfoRawEnd(builder) 2499 } 2500 2501 func (rcv *ProgInfoRaw) UnPackTo(t *ProgInfoRawT) { 2502 callsLength := rcv.CallsLength() 2503 t.Calls = make([]*CallInfoRawT, callsLength) 2504 for j := 0; j < callsLength; j++ { 2505 x := CallInfoRaw{} 2506 rcv.Calls(&x, j) 2507 t.Calls[j] = x.UnPack() 2508 } 2509 t.Extra = rcv.Extra(nil).UnPack() 2510 t.Elapsed = rcv.Elapsed() 2511 t.Freshness = rcv.Freshness() 2512 } 2513 2514 func (rcv *ProgInfoRaw) UnPack() *ProgInfoRawT { 2515 if rcv == nil { 2516 return nil 2517 } 2518 t := &ProgInfoRawT{} 2519 rcv.UnPackTo(t) 2520 return t 2521 } 2522 2523 type ProgInfoRaw struct { 2524 _tab flatbuffers.Table 2525 } 2526 2527 func GetRootAsProgInfoRaw(buf []byte, offset flatbuffers.UOffsetT) *ProgInfoRaw { 2528 n := flatbuffers.GetUOffsetT(buf[offset:]) 2529 x := &ProgInfoRaw{} 2530 x.Init(buf, n+offset) 2531 return x 2532 } 2533 2534 func GetSizePrefixedRootAsProgInfoRaw(buf []byte, offset flatbuffers.UOffsetT) *ProgInfoRaw { 2535 n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) 2536 x := &ProgInfoRaw{} 2537 x.Init(buf, n+offset+flatbuffers.SizeUint32) 2538 return x 2539 } 2540 2541 func (rcv *ProgInfoRaw) Init(buf []byte, i flatbuffers.UOffsetT) { 2542 rcv._tab.Bytes = buf 2543 rcv._tab.Pos = i 2544 } 2545 2546 func (rcv *ProgInfoRaw) Table() flatbuffers.Table { 2547 return rcv._tab 2548 } 2549 2550 func (rcv *ProgInfoRaw) Calls(obj *CallInfoRaw, j int) bool { 2551 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 2552 if o != 0 { 2553 x := rcv._tab.Vector(o) 2554 x += flatbuffers.UOffsetT(j) * 4 2555 x = rcv._tab.Indirect(x) 2556 obj.Init(rcv._tab.Bytes, x) 2557 return true 2558 } 2559 return false 2560 } 2561 2562 func (rcv *ProgInfoRaw) CallsLength() int { 2563 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 2564 if o != 0 { 2565 return rcv._tab.VectorLen(o) 2566 } 2567 return 0 2568 } 2569 2570 func (rcv *ProgInfoRaw) Extra(obj *CallInfoRaw) *CallInfoRaw { 2571 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 2572 if o != 0 { 2573 x := rcv._tab.Indirect(o + rcv._tab.Pos) 2574 if obj == nil { 2575 obj = new(CallInfoRaw) 2576 } 2577 obj.Init(rcv._tab.Bytes, x) 2578 return obj 2579 } 2580 return nil 2581 } 2582 2583 func (rcv *ProgInfoRaw) Elapsed() uint64 { 2584 o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) 2585 if o != 0 { 2586 return rcv._tab.GetUint64(o + rcv._tab.Pos) 2587 } 2588 return 0 2589 } 2590 2591 func (rcv *ProgInfoRaw) MutateElapsed(n uint64) bool { 2592 return rcv._tab.MutateUint64Slot(8, n) 2593 } 2594 2595 func (rcv *ProgInfoRaw) Freshness() uint64 { 2596 o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) 2597 if o != 0 { 2598 return rcv._tab.GetUint64(o + rcv._tab.Pos) 2599 } 2600 return 0 2601 } 2602 2603 func (rcv *ProgInfoRaw) MutateFreshness(n uint64) bool { 2604 return rcv._tab.MutateUint64Slot(10, n) 2605 } 2606 2607 func ProgInfoRawStart(builder *flatbuffers.Builder) { 2608 builder.StartObject(4) 2609 } 2610 func ProgInfoRawAddCalls(builder *flatbuffers.Builder, calls flatbuffers.UOffsetT) { 2611 builder.PrependUOffsetTSlot(0, flatbuffers.UOffsetT(calls), 0) 2612 } 2613 func ProgInfoRawStartCallsVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { 2614 return builder.StartVector(4, numElems, 4) 2615 } 2616 func ProgInfoRawAddExtra(builder *flatbuffers.Builder, extra flatbuffers.UOffsetT) { 2617 builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(extra), 0) 2618 } 2619 func ProgInfoRawAddElapsed(builder *flatbuffers.Builder, elapsed uint64) { 2620 builder.PrependUint64Slot(2, elapsed, 0) 2621 } 2622 func ProgInfoRawAddFreshness(builder *flatbuffers.Builder, freshness uint64) { 2623 builder.PrependUint64Slot(3, freshness, 0) 2624 } 2625 func ProgInfoRawEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 2626 return builder.EndObject() 2627 } 2628 2629 type ExecResultRawT struct { 2630 Id int64 `json:"id"` 2631 Output []byte `json:"output"` 2632 Error string `json:"error"` 2633 Info *ProgInfoRawT `json:"info"` 2634 } 2635 2636 func (t *ExecResultRawT) Pack(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 2637 if t == nil { 2638 return 0 2639 } 2640 outputOffset := flatbuffers.UOffsetT(0) 2641 if t.Output != nil { 2642 outputOffset = builder.CreateByteString(t.Output) 2643 } 2644 errorOffset := builder.CreateString(t.Error) 2645 infoOffset := t.Info.Pack(builder) 2646 ExecResultRawStart(builder) 2647 ExecResultRawAddId(builder, t.Id) 2648 ExecResultRawAddOutput(builder, outputOffset) 2649 ExecResultRawAddError(builder, errorOffset) 2650 ExecResultRawAddInfo(builder, infoOffset) 2651 return ExecResultRawEnd(builder) 2652 } 2653 2654 func (rcv *ExecResultRaw) UnPackTo(t *ExecResultRawT) { 2655 t.Id = rcv.Id() 2656 t.Output = rcv.OutputBytes() 2657 t.Error = string(rcv.Error()) 2658 t.Info = rcv.Info(nil).UnPack() 2659 } 2660 2661 func (rcv *ExecResultRaw) UnPack() *ExecResultRawT { 2662 if rcv == nil { 2663 return nil 2664 } 2665 t := &ExecResultRawT{} 2666 rcv.UnPackTo(t) 2667 return t 2668 } 2669 2670 type ExecResultRaw struct { 2671 _tab flatbuffers.Table 2672 } 2673 2674 func GetRootAsExecResultRaw(buf []byte, offset flatbuffers.UOffsetT) *ExecResultRaw { 2675 n := flatbuffers.GetUOffsetT(buf[offset:]) 2676 x := &ExecResultRaw{} 2677 x.Init(buf, n+offset) 2678 return x 2679 } 2680 2681 func GetSizePrefixedRootAsExecResultRaw(buf []byte, offset flatbuffers.UOffsetT) *ExecResultRaw { 2682 n := flatbuffers.GetUOffsetT(buf[offset+flatbuffers.SizeUint32:]) 2683 x := &ExecResultRaw{} 2684 x.Init(buf, n+offset+flatbuffers.SizeUint32) 2685 return x 2686 } 2687 2688 func (rcv *ExecResultRaw) Init(buf []byte, i flatbuffers.UOffsetT) { 2689 rcv._tab.Bytes = buf 2690 rcv._tab.Pos = i 2691 } 2692 2693 func (rcv *ExecResultRaw) Table() flatbuffers.Table { 2694 return rcv._tab 2695 } 2696 2697 func (rcv *ExecResultRaw) Id() int64 { 2698 o := flatbuffers.UOffsetT(rcv._tab.Offset(4)) 2699 if o != 0 { 2700 return rcv._tab.GetInt64(o + rcv._tab.Pos) 2701 } 2702 return 0 2703 } 2704 2705 func (rcv *ExecResultRaw) MutateId(n int64) bool { 2706 return rcv._tab.MutateInt64Slot(4, n) 2707 } 2708 2709 func (rcv *ExecResultRaw) Output(j int) byte { 2710 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 2711 if o != 0 { 2712 a := rcv._tab.Vector(o) 2713 return rcv._tab.GetByte(a + flatbuffers.UOffsetT(j*1)) 2714 } 2715 return 0 2716 } 2717 2718 func (rcv *ExecResultRaw) OutputLength() int { 2719 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 2720 if o != 0 { 2721 return rcv._tab.VectorLen(o) 2722 } 2723 return 0 2724 } 2725 2726 func (rcv *ExecResultRaw) OutputBytes() []byte { 2727 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 2728 if o != 0 { 2729 return rcv._tab.ByteVector(o + rcv._tab.Pos) 2730 } 2731 return nil 2732 } 2733 2734 func (rcv *ExecResultRaw) MutateOutput(j int, n byte) bool { 2735 o := flatbuffers.UOffsetT(rcv._tab.Offset(6)) 2736 if o != 0 { 2737 a := rcv._tab.Vector(o) 2738 return rcv._tab.MutateByte(a+flatbuffers.UOffsetT(j*1), n) 2739 } 2740 return false 2741 } 2742 2743 func (rcv *ExecResultRaw) Error() []byte { 2744 o := flatbuffers.UOffsetT(rcv._tab.Offset(8)) 2745 if o != 0 { 2746 return rcv._tab.ByteVector(o + rcv._tab.Pos) 2747 } 2748 return nil 2749 } 2750 2751 func (rcv *ExecResultRaw) Info(obj *ProgInfoRaw) *ProgInfoRaw { 2752 o := flatbuffers.UOffsetT(rcv._tab.Offset(10)) 2753 if o != 0 { 2754 x := rcv._tab.Indirect(o + rcv._tab.Pos) 2755 if obj == nil { 2756 obj = new(ProgInfoRaw) 2757 } 2758 obj.Init(rcv._tab.Bytes, x) 2759 return obj 2760 } 2761 return nil 2762 } 2763 2764 func ExecResultRawStart(builder *flatbuffers.Builder) { 2765 builder.StartObject(4) 2766 } 2767 func ExecResultRawAddId(builder *flatbuffers.Builder, id int64) { 2768 builder.PrependInt64Slot(0, id, 0) 2769 } 2770 func ExecResultRawAddOutput(builder *flatbuffers.Builder, output flatbuffers.UOffsetT) { 2771 builder.PrependUOffsetTSlot(1, flatbuffers.UOffsetT(output), 0) 2772 } 2773 func ExecResultRawStartOutputVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT { 2774 return builder.StartVector(1, numElems, 1) 2775 } 2776 func ExecResultRawAddError(builder *flatbuffers.Builder, error flatbuffers.UOffsetT) { 2777 builder.PrependUOffsetTSlot(2, flatbuffers.UOffsetT(error), 0) 2778 } 2779 func ExecResultRawAddInfo(builder *flatbuffers.Builder, info flatbuffers.UOffsetT) { 2780 builder.PrependUOffsetTSlot(3, flatbuffers.UOffsetT(info), 0) 2781 } 2782 func ExecResultRawEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT { 2783 return builder.EndObject() 2784 }