-
Notifications
You must be signed in to change notification settings - Fork 0
Buffer_get_type
hpgDesigns edited this page Aug 8, 2021
·
1 revision
Gets the type of the given buffer and returns it.
| Parameter | Data Type | Description |
|---|---|---|
| buffer | integer | index of the buffer to get the type of |
integer: Returns the buffer constant of the buffer type.
// demonstrates getting the type of a buffer
switch (buffer_get_type(mybuffer)) {
case buffer_grow:
// dynamically allocated buffer
break;
case buffer_fixed:
// fixed size buffer
break;
default:
// fast or wrap buffer
break;
}
NOTOC
This is number 1