Function bsn1::contents::from_integer [−][src]
pub fn from_integer(val: i128) -> impl AsRef<[u8]>
Serializes integer as contents octets.
This function is common for BER, DER, and CER.
Wargnings
This function assumes that the CPU adopts 2’s complement to represent negative value.