libSystem Reference Manual: Buffer

## Buffer Buffer |

## Functions

Buffer * | buffer_new ()
Buffer * | buffer_new_copy ()
void | buffer_delete ()
char * | buffer_get_data ()
int | buffer_set ()
int | buffer_set_data ()
size_t | buffer_get_size ()
int | buffer_set_size ()

## Types and Values

| Buffer

## Description

## Functions

### buffer_new ()

    Buffer *
    buffer_new (size_t size,
                char const *data);

#### Returns

### buffer_new_copy ()

    Buffer *
    buffer_new_copy (Buffer *buffer);

#### Returns

### buffer_delete ()

    void
    buffer_delete (Buffer *buffer);

### buffer_get_data ()

    char *
    buffer_get_data (Buffer const *buffer);

#### Returns

### buffer_set ()

    int
    buffer_set (Buffer *buffer,
                size_t size,
                char *data);

#### Returns

### buffer_set_data ()

    int
    buffer_set_data (Buffer *buffer,
                     size_t offset,
                     char *data,
                     size_t size);

#### Returns

### buffer_get_size ()

    size_t
    buffer_get_size (Buffer const *buffer);

#### Returns

### buffer_set_size ()

    int
    buffer_set_size (Buffer *buffer,
                     size_t size);

#### Returns

## Types and Values

### Buffer

    typedef struct _Buffer Buffer;