Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
14
func
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
22
func
notzero(b []byte) int {
23
for
i :=
range
b {
Callers
1
TestMaskBytes
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected