MCPcopy Create free account
hub / github.com/segmentio/encoding / below

Function below

json/string.go:66–68  ·  view source on GitHub ↗

below return a mask that can be used to determine if any of the bytes in `n` are below `b`. If a byte's MSB is set in the mask then that byte was below `b`. The result is only valid if `b`, and each byte in `n`, is below 0x80.

(n uint64, b byte)

Source from the content-addressed store, hash-verified

64// below `b`. The result is only valid if `b`, and each byte in `n`, is below
65// 0x80.
66func below(n uint64, b byte) uint64 {
67 return n - expand(b)
68}
69
70// contains returns a mask that can be used to determine if any of the
71// bytes in `n` are equal to `b`. If a byte's MSB is set in the mask then

Callers 1

escapeIndexFunction · 0.85

Calls 1

expandFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…