A collection of helper function to help manipulating nm_data. More...
Functions | |
| static void | nm_data_traversal_apply (const struct nm_data_s *p_data, nm_data_apply_t apply, void *_context) |
| helper function to apply iterator to data | |
| static void | nm_data_generator_init (const struct nm_data_s *p_data, struct nm_data_generator_s *p_generator) |
| build a new generator for the given data type | |
| static struct nm_data_chunk_s | nm_data_generator_next (struct nm_data_generator_s *p_generator) |
| get the next chunk of data | |
| static void | nm_data_generator_destroy (struct nm_data_generator_s *p_generator) |
| destroy the generator after use | |
| void | nm_data_chunk_extractor_traversal (const struct nm_data_s *p_data, nm_len_t chunk_offset, nm_len_t chunk_len, nm_data_apply_t apply, void *_context) |
| void | nm_data_aggregator_traversal (const struct nm_data_s *p_data, nm_data_apply_t apply, void *_context) |
| static const struct nm_data_properties_s * | nm_data_properties_get (const struct nm_data_s *p_data) |
| returns the properties block for the data | |
| static nm_len_t | nm_data_size (const struct nm_data_s *p_data) |
| returns the amount of data contained in the descriptor | |
| void * | nm_data_baseptr_get (const struct nm_data_s *p_data) |
| find base pointer for a data known to be contiguous | |
| void * | nm_data_chunk_baseptr_get (const struct nm_data_s *p_data, nm_len_t chunk_offset, nm_len_t chunk_len) |
| find base pointer for a data chunk known to be contiguous | |
| void | nm_data_chunk_properties_compute (const struct nm_data_s *p_data, nm_len_t chunk_offset, nm_len_t chunk_len, struct nm_data_properties_s *p_props) |
| compute properties of the given chunk inside the data | |
| uint32_t | nm_data_checksum (const struct nm_data_s *p_data) |
| checksum data | |
| void | nm_data_copy_from (const struct nm_data_s *p_data, nm_len_t offset, nm_len_t len, void *destbuf) |
| copy chunk of data from user layout to contiguous buffer | |
| void | nm_data_copy_to (const struct nm_data_s *p_data, nm_len_t offset, nm_len_t len, const void *srcbuf) |
| copy chunk of data from contiguous buffer to user layout | |
| void | nm_data_copy (struct nm_data_s *p_dest, struct nm_data_s *p_from) |
| copy from nm_data to another nm_data | |
A collection of helper function to help manipulating nm_data.
| void nm_data_aggregator_traversal | ( | const struct nm_data_s * | p_data, |
| nm_data_apply_t | apply, | ||
| void * | _context | ||
| ) |
| void * nm_data_baseptr_get | ( | const struct nm_data_s * | p_data | ) |
find base pointer for a data known to be contiguous
| uint32_t nm_data_checksum | ( | const struct nm_data_s * | p_data | ) |
checksum data
| void * nm_data_chunk_baseptr_get | ( | const struct nm_data_s * | p_data, |
| nm_len_t | chunk_offset, | ||
| nm_len_t | chunk_len | ||
| ) |
find base pointer for a data chunk known to be contiguous
| void nm_data_chunk_extractor_traversal | ( | const struct nm_data_s * | p_data, |
| nm_len_t | chunk_offset, | ||
| nm_len_t | chunk_len, | ||
| nm_data_apply_t | apply, | ||
| void * | _context | ||
| ) |
| void nm_data_chunk_properties_compute | ( | const struct nm_data_s * | p_data, |
| nm_len_t | chunk_offset, | ||
| nm_len_t | chunk_len, | ||
| struct nm_data_properties_s * | p_props | ||
| ) |
compute properties of the given chunk inside the data
Referenced by nm_req_chunk_init().
copy from nm_data to another nm_data
Referenced by nm_mpi_datatype_copy().
| void nm_data_copy_from | ( | const struct nm_data_s * | p_data, |
| nm_len_t | offset, | ||
| nm_len_t | len, | ||
| void * | destbuf | ||
| ) |
copy chunk of data from user layout to contiguous buffer
Referenced by nm_mpi_datatype_pack().
| void nm_data_copy_to | ( | const struct nm_data_s * | p_data, |
| nm_len_t | offset, | ||
| nm_len_t | len, | ||
| const void * | srcbuf | ||
| ) |
copy chunk of data from contiguous buffer to user layout
Referenced by nm_mpi_datatype_unpack().
|
inlinestatic |
destroy the generator after use
Definition at line 465 of file nm_data.h.
References nm_data_generator_s::_bytes, nm_data_s::ops, nm_data_generator_s::p_data, and nm_data_ops_s::p_generator_destroy.
|
inlinestatic |
build a new generator for the given data type
Definition at line 449 of file nm_data.h.
References nm_data_generator_s::_bytes, nm_data_s::ops, nm_data_generator_s::p_data, nm_data_excerpt_s::p_data, and nm_data_ops_s::p_generator_init.
|
inlinestatic |
|
inlinestatic |
returns the properties block for the data
Definition at line 477 of file nm_data.h.
References nm_data_s::props.
Referenced by nm_data_size(), and nm_tactic_req_data_density().
returns the amount of data contained in the descriptor
Definition at line 483 of file nm_data.h.
References nm_data_properties_get(), and nm_data_properties_s::size.
Referenced by nm_datav_size(), nm_mpi_datatype_pack(), nm_mpi_datatype_unpack(), nm_rpc_recv_header_data(), and nm_sr_recv_peek().

|
inlinestatic |
helper function to apply iterator to data
Definition at line 440 of file nm_data.h.
References nm_data_s::_content, nm_data_s::ops, nm_data_excerpt_s::p_data, and nm_data_ops_s::p_traversal.