Table of Contents

ugBASIC User Manual

SIZE ✓

SYNTAX

   ... = SIZE([resource])

PURPOSE

To get the (static) size of a buffer you can use the SIZE command. This command will restore, in bytes, the size of the given buffer. It is possible to apply this command to any type of static data, such as BUFFER, IMAGE, IMAGES and constant strings.

EXAMPLE

  PRINT SIZE(image)

See also the following example files:

ABBREVIATION

 Sz

AVAILABLE ON

ANY PROBLEM?

If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!

POWERED BY