diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-12-31 15:58:07 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-12-31 16:03:01 +0000 |
commit | 5eae12fc804c677bc413a49c7bddaff30d249c9e (patch) | |
tree | e63427032020976b8c608ab6bcf8fb950383b3cb /lib/curl_endian.h | |
parent | b40e37f93ddbcce9db44e213e925d74d0df9858a (diff) | |
download | curl-5eae12fc804c677bc413a49c7bddaff30d249c9e.tar.gz |
endian: Added 16-bit integer write function
Diffstat (limited to 'lib/curl_endian.h')
-rw-r--r-- | lib/curl_endian.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/curl_endian.h b/lib/curl_endian.h index a8811c940..79eb3e8f6 100644 --- a/lib/curl_endian.h +++ b/lib/curl_endian.h @@ -28,6 +28,9 @@ unsigned short Curl_read16_le(unsigned char *buf); /* Converts a 32-bit integer from little endian */ unsigned int Curl_read32_le(unsigned char *buf); +/* Converts a 16-bit integer to little endian */ +void Curl_write16_le(const short value, unsigned char *buffer); + /* Converts a 32-bit integer to little endian */ void Curl_write32_le(const int value, unsigned char *buffer); |