projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
indentation fixes
[oweals/gnunet.git]
/
src
/
set
/
gnunet-service-set_union_strata_estimator.h
diff --git
a/src/set/gnunet-service-set_union_strata_estimator.h
b/src/set/gnunet-service-set_union_strata_estimator.h
index 20be77d8fb7fb9b727b8a8ecb53e5454d8309564..4d8ab31a224680e3ad9a398e442bd8e5807d4311 100644
(file)
--- a/
src/set/gnunet-service-set_union_strata_estimator.h
+++ b/
src/set/gnunet-service-set_union_strata_estimator.h
@@
-1,6
+1,6
@@
/*
This file is part of GNUnet
/*
This file is part of GNUnet
- Copyright (C) 2012
Christian Grothoff (and other contributing authors)
+ Copyright (C) 2012
GNUnet e.V.
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
@@
-14,8
+14,8
@@
You should have received a copy of the GNU General Public License
along with GNUnet; see the file COPYING. If not, write to the
You should have received a copy of the GNU General Public License
along with GNUnet; see the file COPYING. If not, write to the
- Free Software Foundation, Inc., 5
9 Temple Place - Suite 330
,
- Boston, MA 0211
1-1307
, USA.
+ Free Software Foundation, Inc., 5
1 Franklin Street, Fifth Floor
,
+ Boston, MA 0211
0-1301
, USA.
*/
/**
*/
/**
@@
-66,9
+66,10
@@
struct StrataEstimator
* Write the given strata estimator to the buffer.
*
* @param se strata estimator to serialize
* Write the given strata estimator to the buffer.
*
* @param se strata estimator to serialize
- * @param buf buffer to write to, must be of appropriate size
+ * @param[out] buf buffer to write to, must be of appropriate size
+ * @return number of bytes written to @a buf
*/
*/
-void
+size_t
strata_estimator_write (const struct StrataEstimator *se,
void *buf);
strata_estimator_write (const struct StrataEstimator *se,
void *buf);
@@
-78,10
+79,15
@@
strata_estimator_write (const struct StrataEstimator *se,
* estimator. The strata estimator must already be allocated.
*
* @param buf buffer to read from
* estimator. The strata estimator must already be allocated.
*
* @param buf buffer to read from
- * @param se strata estimator to write to
+ * @param buf_len number of bytes in @a buf
+ * @param is_compressed is the data compressed?
+ * @param[out] se strata estimator to write to
+ * @return #GNUNET_OK on success
*/
*/
-void
+int
strata_estimator_read (const void *buf,
strata_estimator_read (const void *buf,
+ size_t buf_len,
+ int is_compressed,
struct StrataEstimator *se);
struct StrataEstimator *se);
@@
-91,7
+97,7
@@
strata_estimator_read (const void *buf,
* @param strata_count number of stratas, that is, number of ibfs in the estimator
* @param ibf_size size of each ibf stratum
* @param ibf_hashnum hashnum parameter of each ibf
* @param strata_count number of stratas, that is, number of ibfs in the estimator
* @param ibf_size size of each ibf stratum
* @param ibf_hashnum hashnum parameter of each ibf
- * @return a freshly allocated, empty strata estimator
+ * @return a freshly allocated, empty strata estimator
, NULL on error
*/
struct StrataEstimator *
strata_estimator_create (unsigned int strata_count,
*/
struct StrataEstimator *
strata_estimator_create (unsigned int strata_count,
@@
-161,4
+167,3
@@
strata_estimator_dup (struct StrataEstimator *se);
#endif
#endif
#endif
#endif
-