(type, index = 0)
| 413 | return this.#getUUID16ListType(index); |
| 414 | } |
| 415 | findIndex(type, index = 0) { |
| 416 | const data = this.#data; |
| 417 | const length = data.byteLength; |
| 418 | while (index < length) { |
| 419 | const adLength = data[index]; ++index; |
| 420 | const adType = data[index]; ++index; |
| 421 | if (type == adType) |
| 422 | return index - 2; |
| 423 | else |
| 424 | index += adLength - 1; |
| 425 | } |
| 426 | return -1; |
| 427 | } |
| 428 | static serialize(obj) { |
| 429 | let parts = []; |
| 430 | for (let key in obj) |
no outgoing calls
no test coverage detected