MCPcopy Create free account
hub / github.com/Monibuca/engine / Bit1

Function Bit1

util/index.go:59–61  ·  view source on GitHub ↗

Bit1 检查字节中的某一位是否为1 |0|1|2|3|4|5|6|7|

(b byte, index int)

Source from the content-addressed store, hash-verified

57
58// Bit1 检查字节中的某一位是否为1 |0|1|2|3|4|5|6|7|
59func Bit1(b byte, index int) bool {
60 return b&(1<<(7-index)) != 0
61}
62
63func WaitTerm(cancel context.CancelFunc) {
64 sigc := make(chan os.Signal, 1)

Callers 2

WriteRTPFrameMethod · 0.92
WriteRTPFrameMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected