summaryrefslogtreecommitdiff
path: root/docs/type_system/buffer.md
blob: c7c03548f6e49ff6067b3330ac661613b311884b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Buffer

---

An sequence of bytes with unknown size and a byte representation

```text
Buffer_repesentation: Enum[.type; .utf8; .utf16; .utf32]

Buffer[Buffer_repesentation; TYPE]
```

# Alias

```text
String `alias Buffer[.utf8; Void]

Array[Any] `alias Buffer[.type; Any]
```

# Operators

## ``length`

## ``get`

## ``set`

## ``push`

## ``pop`

## Concatenate `,`

# Iterating

# Mutating