vfs: check userland buffers before reading them.
[haiku.git] / headers / private / system / convertutf.h
blob99403153a9f74321ded98850a306d3785fdad1f9
1 /*
2 * Copyright 2014 Jonathan Schleifer <js@webkeks.org>
3 * Copyright 2014 Haiku, Inc. All rights reserved.
5 * Distributed under the terms of the MIT License.
7 * Authors:
8 * Jonathan Schleifer, js@webkeks.org
9 * John Scipione, jscipione@gmail.com
11 #ifndef CONVERT_UTF_H
12 #define CONVERT_UTF_H
15 #include <SupportDefs.h>
18 ssize_t utf16le_to_utf8(const uint16* source, size_t sourceCodeUnitCount,
19 char* target, size_t targetLength);
21 ssize_t utf16be_to_utf8(const uint16* source, size_t sourceCodeUnitCount,
22 char* target, size_t targetLength);
25 #endif // CONVERT_UTF_H