2 * MessagePack for C FILE* buffer adaptor
4 * Copyright (C) 2013 Vladimir Volodko
6 * Distributed under the Boost Software License, Version 1.0.
7 * (See accompanying file LICENSE_1_0.txt or copy at
8 * http://www.boost.org/LICENSE_1_0.txt)
10 #ifndef MSGPACK_FBUFFER_H
11 #define MSGPACK_FBUFFER_H
21 * @defgroup msgpack_fbuffer FILE* buffer
22 * @ingroup msgpack_buffer
26 static inline int msgpack_fbuffer_write(void* data
, const char* buf
, size_t len
)
28 return (1 == fwrite(buf
, len
, 1, (FILE *)data
)) ? 0 : -1;
38 #endif /* msgpack/fbuffer.h */
This page took 0.038007 seconds and 4 git commands to generate.