summaryrefslogtreecommitdiff
path: root/src/common/packed.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-05-02 12:04:35 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-05-02 12:04:35 (GMT)
commitdccdda3b7477fcc892b37b2bd94fc820a71a4090 (patch)
treec27c4db9dc14499e51cbf66de229b35c2119173e /src/common/packed.c
parent2d488a40520e64708b34f5e28102f606d9bcb38e (diff)
Removed debug output.
Diffstat (limited to 'src/common/packed.c')
-rw-r--r--src/common/packed.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/common/packed.c b/src/common/packed.c
index 21ba988..1abfa98 100644
--- a/src/common/packed.c
+++ b/src/common/packed.c
@@ -82,6 +82,29 @@ void exit_packed_buffer(packed_buffer *pbuf)
/******************************************************************************
* *
+* Paramètres : pbuf = paquet de données à consulter. *
+* *
+* Description : Indique le nombre d'octets de la charge utile d'un paquet. *
+* *
+* Retour : Quantité de données utiles. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+size_t get_packed_buffer_payload_length(const packed_buffer *pbuf)
+{
+ size_t result; /* Quantité à renvoyer */
+
+ result = pbuf->used;
+
+ return result;
+
+}
+
+
+/******************************************************************************
+* *
* Paramètres : pbuf = paquet de données à compléter. *
* buf = nouvelles données à ajouter. *
* len = quantité de ces données. *