rust: Document read_callback_t and write_callback_t
This commit is contained in:
parent
88b3c377d1
commit
36874e7f07
|
@ -11,7 +11,9 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/// The type that Rust expects for its `CppStreamReader` callback.
|
||||||
typedef long (*read_callback_t)(void* context, unsigned char* pch, size_t nSize);
|
typedef long (*read_callback_t)(void* context, unsigned char* pch, size_t nSize);
|
||||||
|
/// The type that Rust expects for its `CppStreamWriter` callback.
|
||||||
typedef long (*write_callback_t)(void* context, const unsigned char* pch, size_t nSize);
|
typedef long (*write_callback_t)(void* context, const unsigned char* pch, size_t nSize);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
Loading…
Reference in New Issue