(key, buf []byte)
| 546 | } |
| 547 | |
| 548 | func wsMaskBuf(key, buf []byte) { |
| 549 | for i := 0; i < len(buf); i++ { |
| 550 | buf[i] ^= key[i&3] |
| 551 | } |
| 552 | } |
| 553 | |
| 554 | // Create the frame header. |
| 555 | // Encodes the frame type and optional compression flag, and the size of the payload. |
no outgoing calls
no test coverage detected