Skip to content

Commit

Permalink
temporarily back out reference to mtev_b64 functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidan Cully committed Mar 15, 2016
1 parent f0093b7 commit 705e6d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/histogram_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,14 @@ hist_serialize_estimate(const histogram_t *h) {
return len;
}

#if 0
ssize_t
hist_serialize_b64_estimate(const histogram_t *h) {
ssize_t len = hist_serialize_estimate(h);
// base 64 <=> 1 char == 6 bit <=> 4 chars = 3 Byte ==> n Bytpe = 4*ceil(len/3.) chars
return 4*(len/3+1);
}
#endif

#define ADVANCE(tracker, n) cp += (n), tracker += (n), len -= (n)
ssize_t
Expand All @@ -194,6 +196,7 @@ hist_serialize(const histogram_t *h, void *buff, ssize_t len) {
return written;
}

#if 0
ssize_t
hist_serialize_b64(const histogram_t *h, char *b64_serialized_histo_buff, ssize_t buff_len) {
ssize_t serialize_buff_length = hist_serialize_estimate(h);
Expand All @@ -202,6 +205,7 @@ hist_serialize_b64(const histogram_t *h, char *b64_serialized_histo_buff, ssize_

return mtev_b64_encode(serialize_buff, serialized_length, b64_serialized_histo_buff, buff_len);
}
#endif

ssize_t
hist_deserialize(histogram_t *h, const void *buff, ssize_t len) {
Expand Down

0 comments on commit 705e6d8

Please sign in to comment.