MCPcopy Create free account
hub / github.com/avicoder/spoodle / set_bits

Function set_bits

dnslib/bit.py:53–65  ·  view source on GitHub ↗

Set specified bits in integer >>> bin(set_bits(0,0b1010,0,4)) '0b1010' >>> bin(set_bits(0,0b1010,3,4)) '0b1010000'

(data,value,offset,bits=1)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 8

set_qrMethod · 0.90
set_opcodeMethod · 0.90
set_aaMethod · 0.90
set_tcMethod · 0.90
set_rdMethod · 0.90
set_raMethod · 0.90
set_rcodeMethod · 0.90
encode_nameMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected