xdrpp
RFC4506 XDR compiler and message library
|
Common utility types and functions for all the marshaling classes. More...
#include <marshal.h>
Classes | |
struct | u64conv |
Static Public Member Functions | |
static void | get_bytes (const std::uint32_t *&pr, void *buf, std::size_t len) |
Copy len bytes to buf, then consume 0-3 bytes of padding to make the total number of bytes consumed divisible by 4. More... | |
static void | put_bytes (std::uint32_t *&pr, const void *buf, std::size_t len) |
Copy len bytes from buf, then add 0-3 zero-valued padding bytes to make the overall marshaled length a multiple of 4. More... | |
Common utility types and functions for all the marshaling classes.
|
static |
Copy len
bytes to buf, then consume 0-3 bytes of padding to make the total number of bytes consumed divisible by 4.
xdr_should_be_zero | if the padding bytes are not zero. |
Definition at line 25 of file marshal.cc.
|
static |
Copy len
bytes from buf, then add 0-3 zero-valued padding bytes to make the overall marshaled length a multiple of 4.
Definition at line 39 of file marshal.cc.