LMMS
Loading...
Searching...
No Matches
system.h File Reference
#include "attributes.h"
#include <stdio.h>

Go to the source code of this file.

Functions

FILE * serd_fopen (const char *path, const char *mode)
 Open a file configured for fast sequential reading.
SERD_MALLOC_FUNC voidserd_malloc_aligned (size_t alignment, size_t size)
 Allocate a buffer aligned to alignment bytes.
SERD_MALLOC_FUNC voidserd_allocate_buffer (size_t size)
 Allocate an aligned buffer for I/O.
void serd_free_aligned (void *ptr)
 Free a buffer allocated with an aligned allocation function.

Function Documentation

◆ serd_allocate_buffer()

SERD_MALLOC_FUNC void * serd_allocate_buffer ( size_t size)

Allocate an aligned buffer for I/O.

◆ serd_fopen()

FILE * serd_fopen ( const char * path,
const char * mode )

Open a file configured for fast sequential reading.

◆ serd_free_aligned()

void serd_free_aligned ( void * ptr)

Free a buffer allocated with an aligned allocation function.

◆ serd_malloc_aligned()

SERD_MALLOC_FUNC void * serd_malloc_aligned ( size_t alignment,
size_t size )

Allocate a buffer aligned to alignment bytes.