FS_CreateFileFromMemory

Syntax

#include <nitro/fs.h>

BOOL FS_CreateFileFromMemory(FSFile *p_file, void *buf, u32 size);

Arguments

p_file Address of the FSFile structure.
buf Start of the memory region for the read or write.
size Byte size of buf.

Return Values

TRUE if the file opens properly; FALSE otherwise.

Description

Treats the address region in the specified memory map as a temporary file and opens the file. The file opened by this function supports only these following functions.

For more information, see the explanation for the Memory File Archive.

Note

See Also

FSFile
FSArchive
Memory File Archive

Revision History

2009/07/29 Added mention that copying structure values is not guaranteed.
2005/06/28 Initial version.


CONFIDENTIAL