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

Function get_bits

dnslib/bit.py:40–51  ·  view source on GitHub ↗

Get specified bits from integer >>> bin(get_bits(0b0011100,2)) '0b1' >>> bin(get_bits(0b0011100,0,4)) '0b1100'

(data,offset,bits=1)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 9

get_qrMethod · 0.90
get_opcodeMethod · 0.90
get_aaMethod · 0.90
get_tcMethod · 0.90
get_rdMethod · 0.90
get_raMethod · 0.90
get_rcodeMethod · 0.90
__init__Method · 0.90
decode_nameMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected