memfile

package
v1.0.1-0...-c7f6355 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package memfile provides support for Allegro's memfile addon.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(mem unsafe.Pointer, size int64, mode FileMode) (*allegro.File, error)

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

See https://liballeg.org/a5docs/5.2.6/memfile.html#al_open_memfile

func Version

func Version() (major, minor, revision, release uint8)

Returns the (compiled) version of the addon, in the same format as al_get_allegro_version.

See https://liballeg.org/a5docs/5.2.6/memfile.html#al_get_allegro_memfile_version

Types

type FileMode

type FileMode int
const (
	FILE_READ FileMode = 1 << iota
	FILE_WRITE
)

func (FileMode) String

func (m FileMode) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL