MCPcopy Create free account
hub / github.com/secdev/scapy / stror

Function stror

scapy/utils.py:700–706  ·  view source on GitHub ↗

Returns the binary OR of the 2 provided strings s1 and s2. s1 and s2 must be of same length.

(s1, s2)

Source from the content-addressed store, hash-verified

698
699
700def stror(s1, s2):
701 # type: (bytes, bytes) -> bytes
702 """
703 Returns the binary OR of the 2 provided strings s1 and s2. s1 and s2
704 must be of same length.
705 """
706 return b"".join(map(lambda x, y: struct.pack("!B", x | y), s1, s2))
707
708
709def strxor(s1, s2):

Callers 1

in6_orFunction · 0.90

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…