aboutsummaryrefslogtreecommitdiff
path: root/lib/endian.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-12-31 11:47:54 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-12-31 12:16:58 +0000
commit7873f9bdbd9ec1f0746ca0b4cd6468ecac0e2880 (patch)
tree71a2b2bb4169098429cb70df456ca2046f498f24 /lib/endian.h
parent920e684d4082e0ebed900e79d5523cf14fbf05b2 (diff)
endian: Moved write functions to new module
Diffstat (limited to 'lib/endian.h')
-rw-r--r--lib/endian.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/endian.h b/lib/endian.h
index 994b5dbd9..3b0e08d1c 100644
--- a/lib/endian.h
+++ b/lib/endian.h
@@ -25,4 +25,14 @@
unsigned short readshort_le(unsigned char *buf);
unsigned int readint_le(unsigned char *buf);
+void write32_le(const int value, unsigned char *buffer);
+
+#if (CURL_SIZEOF_CURL_OFF_T > 4)
+#if defined(HAVE_LONGLONG)
+void write64_le(const long long value, unsigned char *buffer);
+#else
+void write64_le(const __int64 value, unsigned char *buffer);
+#endif
+#endif
+
#endif /* HEADER_CURL_ENDIAN_H */