measured_strings.c File Reference

Character string with measured length implementation. More...

#include <adt/measured_strings.h>
#include <malloc.h>
#include <mem.h>
#include <unistd.h>
#include <errno.h>
#include <async.h>

Go to the source code of this file.

Functions

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


Detailed Description

Character string with measured length implementation.

See also:
measured_strings.h

Definition in file measured_strings.c.


Generated on Thu Jun 2 07:45:52 2011 for HelenOS/USB by  doxygen 1.4.7