Motr  M0
Serialization of ASCIIZ string
Collaboration diagram for Serialization of ASCIIZ string:

Functions

m0_bcount_t m0_net_test_str_serialize (enum m0_net_test_serialize_op op, char **str, struct m0_bufvec *bv, m0_bcount_t bv_offset)
 

Detailed Description

See also
Motr Network Benchmark

Function Documentation

◆ m0_net_test_str_serialize()

m0_bcount_t m0_net_test_str_serialize ( enum m0_net_test_serialize_op  op,
char **  str,
struct m0_bufvec bv,
m0_bcount_t  bv_offset 
)

Serialize or deserialize ASCIIZ string.

Precondition
op == M0_NET_TEST_SERIALIZE || op == M0_NET_TEST_DESERIALIZE
str != NULL
Note
str should be freed (with m0_free0()) after deserialisation to prevent memory leak.

Definition at line 57 of file str.c.

Here is the call graph for this function:
Here is the caller graph for this function: