Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
al_open_memfile(3)					    al_open_memfile(3)

NAME
       al_open_memfile - Allegro 5 API

SYNOPSIS
	      #include <allegro5/allegro_memfile.h>

	      ALLEGRO_FILE *al_open_memfile(void *mem, int64_t size, const char	*mode)

DESCRIPTION
       Returns a file handle to	the block of memory.  All read and write oper-
       ations act upon the memory directly, so it must not be freed while  the
       file remains open.

       The  mode  can be any combination of "r"	(readable) and "w" (writable).
       Regardless of the mode, the file	always opens at	position 0.  The  file
       size is fixed and cannot	be expanded.

       It  should  be closed with al_fclose(3).	 After the file	is closed, you
       are responsible for freeing the memory (if needed).

Allegro	reference manual				    al_open_memfile(3)

NAME | SYNOPSIS | DESCRIPTION

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=al_open_memfile&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help