You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
allocates a new buffer in a fixed size of [bytes](https://github.com/DeveloperTryingToCodeLikeOtherOfThem/pxt-hardware-programming-docs/blob/master/docs/bytes.md).
3
3
```sig
4
4
Buffer.create(null);
5
5
```
6
-
A **buffer** is contiguous memory.
6
+
A **buffer** is a block of contiguous memory.
7
+
8
+
Additionally, when allocating a buffer, there is no meaning to represent the bytes.
9
+
This is because allocating the buffer is simply storing the amount of memory into the RAM (Random Access Memory).
10
+
11
+
The meaning comes from from how you write or read the bytes, such as using:
12
+
*`buf[index] = value` to set a byte at a specific offset
13
+
* Buffer methods like setNumber to store structured values
0 commit comments