Function bsn1::contents::to_integer[][src]

pub fn to_integer(bytes: &[u8]) -> Result<i128, Error>

Parses bytes as a contents of Integer.

This function is common for BER, DER, and CER.

Wargnings

This function assumes that the CPU adopts 2’s complement to represent negative value.