twos_comp

function of dascore.io.segy.utils source

twos_comp(
    bytes_ ,
    byteorder = big,
)

Decode a signed integer from bytes.