summaryrefslogtreecommitdiff
path: root/docs/type_system/buffer.md
blob: bb863a2b53e3c94cd240ccb3491bcded2dbc46e7 (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
38
39
40
41
42
43
44
45
46
# Buffer

---

An sequence of bytes with unknown size and a byte representation

```text
Buffer[[TYPE | UTF8 | UTF16 | UTF32] TYPE]
```

# Alias

```text
String `alias Buffer[[UTF8] Void]

Array[Generic.T] `alias Buffer[[TYPE] Generic.T]
```

# Operators

## ``length`

## ``get`

## ``set`

## ``push`

## ``pop`

## ``join`

## ``split`

## Concatenate `,`

# Iterating

# Mutating

# Strings

```text
s : "asdf"
`log s String $ "asdf"
```