MCPcopy Index your code
hub / github.com/coder/websocket / mask

Function mask

mask_asm.go:5–14  ·  view source on GitHub ↗
(b []byte, key uint32)

Source from the content-addressed store, hash-verified

3package websocket
4
5func mask(b []byte, key uint32) uint32 {
6 // TODO: Will enable in v1.9.0.
7 return maskGo(b, key)
8 /*
9 if len(b) > 0 {
10 return maskAsm(&b[0], len(b), key)
11 }
12 return key
13 */
14}
15
16// @nhooyr: I am not confident that the amd64 or the arm64 implementations of this
17// function are perfect. There are almost certainly missing optimizations or

Callers

nothing calls this directly

Calls 1

maskGoFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…