(data, hint)
| 15823 | } |
| 15824 | __name(createFrame, "createFrame"); |
| 15825 | function toBuffer(data, hint) { |
| 15826 | switch (hint) { |
| 15827 | case sendHints.text: |
| 15828 | case sendHints.typedArray: |
| 15829 | return new Uint8Array(data.buffer, data.byteOffset, data.byteLength); |
| 15830 | case sendHints.arrayBuffer: |
| 15831 | case sendHints.blob: |
| 15832 | return new Uint8Array(data); |
| 15833 | } |
| 15834 | } |
| 15835 | __name(toBuffer, "toBuffer"); |
| 15836 | module2.exports = { SendQueue }; |
| 15837 | } |
no outgoing calls
no test coverage detected