Sha256: 314f1a1931854838ace4c520e28f5c1bc1bb2fd96a5fcfa4f3a177b329b7b9b5

Contents?: true

Size: 677 Bytes

Versions: 20

Compression:

Stored size: 677 Bytes

Contents

/*
 * MessagePack for C FILE* buffer adaptor
 *
 * Copyright (C) 2013 Vladimir Volodko
 *
 *    Distributed under the Boost Software License, Version 1.0.
 *    (See accompanying file LICENSE_1_0.txt or copy at
 *    http://www.boost.org/LICENSE_1_0.txt)
 */
#ifndef MSGPACK_FBUFFER_H
#define MSGPACK_FBUFFER_H

#include <stdio.h>

#ifdef __cplusplus
extern "C" {
#endif


/**
 * @defgroup msgpack_fbuffer FILE* buffer
 * @ingroup msgpack_buffer
 * @{
 */

static inline int msgpack_fbuffer_write(void* data, const char* buf, size_t len)
{
    return (1 == fwrite(buf, len, 1, (FILE *)data)) ? 0 : -1;
}

/** @} */


#ifdef __cplusplus
}
#endif

#endif /* msgpack/fbuffer.h */

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
script_core-0.3.2 ext/enterprise_script_service/msgpack/include/msgpack/fbuffer.h
script_core-0.3.0 ext/enterprise_script_service/msgpack/include/msgpack/fbuffer.h
script_core-0.2.7 ext/enterprise_script_service/msgpack/include/msgpack/fbuffer.h
script_core-0.2.6 ext/enterprise_script_service/msgpack/include/msgpack/fbuffer.h
script_core-0.2.5 ext/enterprise_script_service/msgpack/include/msgpack/fbuffer.h
script_core-0.2.4 ext/enterprise_script_service/msgpack/include/msgpack/fbuffer.h
script_core-0.2.3 ext/enterprise_script_service/msgpack/include/msgpack/fbuffer.h
script_core-0.2.2 ext/enterprise_script_service/msgpack/include/msgpack/fbuffer.h
rroonga-7.1.1-x64-mingw32 vendor/local/include/msgpack/fbuffer.h
rroonga-7.1.1-x86-mingw32 vendor/local/include/msgpack/fbuffer.h
rroonga-7.0.2-x86-mingw32 vendor/local/include/msgpack/fbuffer.h
rroonga-7.0.2-x64-mingw32 vendor/local/include/msgpack/fbuffer.h
rroonga-6.1.3-x64-mingw32 vendor/local/include/msgpack/fbuffer.h
rroonga-6.1.3-x86-mingw32 vendor/local/include/msgpack/fbuffer.h
rroonga-6.1.0-x86-mingw32 vendor/local/include/msgpack/fbuffer.h
rroonga-6.1.0-x64-mingw32 vendor/local/include/msgpack/fbuffer.h
rroonga-6.0.9-x64-mingw32 vendor/local/include/msgpack/fbuffer.h
rroonga-6.0.9-x86-mingw32 vendor/local/include/msgpack/fbuffer.h
rroonga-6.0.7-x86-mingw32 vendor/local/include/msgpack/fbuffer.h
rroonga-6.0.7-x64-mingw32 vendor/local/include/msgpack/fbuffer.h