Buffers

GameMaker has a number of specific functions related to creating, modifying and loading/saving buffers. A buffer is a region of physical memory used to temporarily hold data while it's being moved from one place to another or manipulated in some way. For example, you can use a buffer to hold packet data awaiting transmission over a network or for storing a packet that has been received over a network.

Usage Notes

Before using buffers please note the following points: 

The following pages explain how buffers work within the context of GameMaker and contain a couple of code examples for those users that are unsure of how to use them:

IMPORTANT When you create a buffer, a reference to the new buffer is returned. After the buffer is destroyed, we recommend that you set the variable that holds a buffer reference to -1.

Function Reference

General

Loading & Saving

Compression

Async Groups

Surfaces

Hashes & Checksums

Encoding

Loading & Saving Game States

NOTE These functions require a buffer to have been created previously.

Vertex Buffers