CSFML - C binding of the Simple and Fast Multimedia Library

CSFML 2.6.1

- Main Page
- Related Pages
- Classes
- Files

- File List
- File Members

Loading...
Searching...
No Matches
Functions
Buffer.h File Reference
`#include <SFML/System/Export.h>`
`#include <SFML/System/Types.h>`
`#include <stddef.h>`

Go to the source code of this file.

## Functions
sfBuffer * | sfBuffer_create (void)
| Create an empty buffer.
void | sfBuffer_destroy (sfBuffer *buffer)
| Destroy an existing buffer.
size_t | sfBuffer_getSize (const sfBuffer *buffer)
| Return the size of a buffer.
const sfUint8 * | sfBuffer_getData (const sfBuffer *buffer)
| Get a read-only pointer to the array of bytes of a buffer.

## Function Documentation

## ◆ sfBuffer_create()

sfBuffer * sfBuffer_create | ( | void |  | ) |

Create an empty buffer.

Returns
  A new sfBuffer object, or NULL if it failed

## ◆ sfBuffer_destroy()

void sfBuffer_destroy | ( | sfBuffer * | buffer | ) |

Destroy an existing buffer.

Parameters

  buffer | Buffer to delete

## ◆ sfBuffer_getData()

const sfUint8 * sfBuffer_getData | ( | const sfBuffer * | buffer | ) |

Get a read-only pointer to the array of bytes of a buffer.

Parameters

  buffer | Buffer object

Returns
  Read-only pointer to the array of bytes

## ◆ sfBuffer_getSize()

size_t sfBuffer_getSize | ( | const sfBuffer * | buffer | ) |

Return the size of a buffer.

Parameters

  buffer | Buffer object

Returns
  Size in bytes