measured_strings.c File Reference

Character string with measured length implementation. More...

#include <errno.h>
#include <malloc.h>
#include <mem.h>
#include <unistd.h>
#include <ipc/ipc.h>
#include "../err.h"
#include "../modules.h"
#include "measured_strings.h"
Include dependency graph for measured_strings.c:

Functions

size_t * prepare_lengths (const measured_string_ref strings, size_t count)
 Computes the lengths of the measured strings in the given array.
measured_string_ref measured_string_create_bulk (const char *string, size_t length)
 Creates a new measured string bundled with a copy of the given string itself as one memory block.
measured_string_ref measured_string_copy (measured_string_ref source)
 Copies the given measured string with separated header and data parts.
int measured_strings_receive (measured_string_ref *strings, char **data, size_t count)
 Receives a measured strings array from a calling module.
int measured_strings_reply (const measured_string_ref strings, size_t count)
 Replies the given measured strings array to a calling module.
int measured_strings_return (int phone, measured_string_ref *strings, char **data, size_t count)
 Receives a measured strings array from another module.
int measured_strings_send (int phone, const measured_string_ref strings, size_t count)
 Sends the given measured strings array to another module.

Detailed Description

Character string with measured length implementation.

See also:
measured_strings.h

Generated on Thu Mar 11 20:46:15 2010 for Networking and TCP/IP stack for HelenOS system by  doxygen 1.6.1