MCPcopy
hub / github.com/gorilla/websocket / maskBytesByByte

Function maskBytesByByte

mask_test.go:14–20  ·  view source on GitHub ↗
(key [4]byte, pos int, b []byte)

Source from the content-addressed store, hash-verified

12)
13
14func maskBytesByByte(key [4]byte, pos int, b []byte) int {
15 for i := range b {
16 b[i] ^= key[pos&3]
17 pos++
18 }
19 return pos & 3
20}
21
22func notzero(b []byte) int {
23 for i := range b {

Callers 1

TestMaskBytesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected