> For the complete documentation index, see [llms.txt](https://docs.cheddar.vihan.org/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cheddar.vihan.org/docs/standard-library/string/bytes.md).

# Bytes

| type   | returns      |
| ------ | ------------ |
| Getter | `array<int>` |

## Explanation

Returns the bytes in the given string as an array of character codes.

## Examples

```swift
"foo".bytes == [102, 111, 111]
"".bytes == []
```
