aboutsummaryrefslogtreecommitdiff
path: root/shared/bin.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-26 19:17:33 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-26 19:17:33 +0200
commit266fd5ef0c45315fc0bf281a15630a9b4765e68c (patch)
treea34a86d72e25e3c858577feaff7f61c81b026c61 /shared/bin.c
parente75c48a4d79a838844aab071c81b2879aab2b5ee (diff)
implement SENS command0.2.0
Diffstat (limited to 'shared/bin.c')
-rw-r--r--shared/bin.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/shared/bin.c b/shared/bin.c
index 4b3dcc6..a0937e8 100644
--- a/shared/bin.c
+++ b/shared/bin.c
@@ -78,3 +78,8 @@ w2_s_bin *w2_bin_s_cat(w2_s_bin *a, w2_s_bin *b) {
free(b);
return c;
}
+
+void w2_bin_repl_hton32(uint32_t *h32) { *h32 = w2_bin_hton32(*h32); }
+void w2_bin_repl_hton16(uint16_t *h16) { *h16 = w2_bin_hton16(*h16); }
+void w2_bin_repl_ntoh32(uint32_t *h32) { *h32 = w2_bin_ntoh32(*h32); }
+void w2_bin_repl_ntoh16(uint16_t *h16) { *h16 = w2_bin_ntoh16(*h16); }