Sha256: 2b99f745847ffb17f3145a675b7c4ec46e1792c4d0e6d11f8dea7965202b4bde
Contents?: true
Size: 945 Bytes
Versions: 2
Compression:
Stored size: 945 Bytes
Contents
/* * Copyright (C) 2009-2011 the libgit2 contributors * * This file is part of libgit2, distributed under the GNU GPL v2 with * a Linking Exception. For full terms see the included COPYING file. */ #ifndef INCLUDE_buffer_h__ #define INCLUDE_buffer_h__ #include "common.h" typedef struct { char *ptr; ssize_t asize, size; } git_buf; #define GIT_BUF_INIT {NULL, 0, 0} int git_buf_grow(git_buf *buf, size_t target_size); int git_buf_oom(const git_buf *buf); void git_buf_putc(git_buf *buf, char c); void git_buf_put(git_buf *buf, const char *data, size_t len); void git_buf_puts(git_buf *buf, const char *string); void git_buf_printf(git_buf *buf, const char *format, ...) GIT_FORMAT_PRINTF(2, 3); const char *git_buf_cstr(git_buf *buf); void git_buf_free(git_buf *buf); void git_buf_clear(git_buf *buf); void git_buf_consume(git_buf *buf, const char *end); #define git_buf_PUTS(buf, str) git_buf_put(buf, str, sizeof(str) - 1) #endif
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rugged-0.16.0 | ext/rugged/vendor/libgit2-dist/src/buffer.h |
rugged-0.16.0b1 | ext/rugged/vendor/libgit2-dist/src/buffer.h |