Go to the source code of this file.
Functions | |
__cplusplus size_t | sdnv_encoding_len (u_int64_t val) |
Return the number of bytes needed to encode the given value. | |
int | sdnv_encode (u_int64_t val, u_char *bp, size_t len) |
Convert the given 64-bit integer into an SDNV. | |
int | sdnv_decode (const u_char *bp, size_t len, u_int64_t *val) |
Convert an SDNV pointed to by bp into a unsigned 64-bit integer. |
int sdnv_decode | ( | const u_char * | bp, | |
size_t | len, | |||
u_int64_t * | val | |||
) |
Convert an SDNV pointed to by bp into a unsigned 64-bit integer.
int sdnv_encode | ( | u_int64_t | val, | |
u_char * | bp, | |||
size_t | len | |||
) |
Convert the given 64-bit integer into an SDNV.
__cplusplus size_t sdnv_encoding_len | ( | u_int64_t | val | ) |
Return the number of bytes needed to encode the given value.
Referenced by dtn::CustodySignal::create_custody_signal(), and dtn::BundleStatusReport::create_status_report().