I/O & Encoding

PySndhdr

Python stdlib module — sndhdr. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.get_long_be()Neutral
#
Signature
get_long_be(b)

get_long_be function.

.get_long_le()Neutral
#
Signature
get_long_le(b)

get_long_le function.

.get_short_be()Neutral
#
Signature
get_short_be(b)

get_short_be function.

.get_short_le()Neutral
#
Signature
get_short_le(b)

get_short_le function.

.namedtuple()Neutral
#
Signature
namedtuple(typename, field_names, rename, defaults, module)

Returns a new subclass of tuple with named fields.

.test()Neutral
#
Signature
test()

test function.

.test_8svx()Neutral
#
Signature
test_8svx(h, f)

8SVX file

.test_aifc()Neutral
#
Signature
test_aifc(h, f)

AIFC and AIFF files

.test_au()Neutral
#
Signature
test_au(h, f)

AU and SND files

.test_hcom()Neutral
#
Signature
test_hcom(h, f)

HCOM file

Fully-Qualified Names

FQNField
sndhdrfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import sndhdr