| 17442 | function isTextBinaryFrame(opcode) { |
| 17443 | return opcode === opcodes.TEXT || opcode === opcodes.BINARY; |
| 17444 | } |
| 17445 | function isValidOpcode(opcode) { |
| 17446 | return isTextBinaryFrame(opcode) || isContinuationFrame(opcode) || isControlFrame(opcode); |
| 17447 | } |
| 17448 | function parseExtensions(extensions) { |
| 17449 | const position = { position: 0 }; |
| 17450 | const extensionList = /* @__PURE__ */ new Map(); |
| 17451 | while (position.position < extensions.length) { |
| 17452 | const pair = collectASequenceOfCodePointsFast(";", extensions, position); |
| 17453 | const [name, value = ""] = pair.split("="); |