What is a buffer?

If anyone knows what this means could you explain it to me? What is a buffer?

local TOOLTIP_BUFFER = 6

i found this custom backpack script that does something to the tooltip but idk what a buffer is

A buffer is an object that represents a fixed-size mutable block of memory. If you need more information about it, here is the documentation.

1 Like

I don’t think that’s the correct answer. Heck, I bet OP used a free model, and, as it turns out, they tend not to contain up-to-date code. Also, what do buffers have to do with Tool.ToolTip?

The code OP has provided is incredibly vague, though. At least I wasn’t able to tell what it was.

its a part of a script that does something to the tooltip from the backpack and idk what a buffer is but the value changes the buffer

I did not ever heard buffer in Roblox but I used buffer many times in C# language.
It is used like to allocate memory. For example an arrays maximum lenght.

int[] intArray[5] = new int[] { 1, 2, 3, 4 } This C# array which is constructed by ints, can only take up to 5 elements. Thats used to save memory I think.

Now I think and TOOLTIP_BUFFER may be used for fixed-size of the text label.

1 Like

In this case, it’s declaring the length of a delay or lifespan.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.