From 252d6200c36e7eaa79f8d5205b7d731179e94897 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Fri, 5 Jun 2015 23:21:18 +0200 Subject: avio: Add avio_put_str16be --- libavformat/avio.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libavformat/avio.h') diff --git a/libavformat/avio.h b/libavformat/avio.h index 3360e8296e..a1497d9d65 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -178,10 +178,22 @@ int avio_put_str(AVIOContext *s, const char *str); /** * Convert an UTF-8 string to UTF-16LE and write it. + * @param s the AVIOContext + * @param str NULL-terminated UTF-8 string + * * @return number of bytes written. */ int avio_put_str16le(AVIOContext *s, const char *str); +/** + * Convert an UTF-8 string to UTF-16BE and write it. + * @param s the AVIOContext + * @param str NULL-terminated UTF-8 string + * + * @return number of bytes written. + */ +int avio_put_str16be(AVIOContext *s, const char *str); + /** * Passing this as the "whence" parameter to a seek function causes it to * return the filesize without seeking anywhere. Supporting this is optional. -- cgit v1.2.3