O'Reilly logo

DarkBASIC Pro Game Programming, Second Edition by Joshua R. Smith, Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Memory Blocks

One of the most powerful aspects of DB is the ability to create and manipulate memory blocks (memblocks). A memblock can be any size and can contain any data. Memblocks are powerful tools for passing multiple bits of information over a single network packet. They are a defined size that can be broken up into multiple bits of information.

Definition

Memory blocks (memblocks) are chunks of memory allocated to store multiple types of information in one location. They have a specific size but do not conform to any specific data type. Memblocks can contain many different types of information in the same memory block.

Creating Memory Blocks

Creating a memblock is similar to creating an image, bitmap, or sound. You simply call the

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required