(hex: string)
| 8 | export const encode = (text: string): Uint8Array => new TextEncoder().encode(text) |
| 9 | |
| 10 | export const bytes = (hex: string): Uint8Array => Result.getOrThrow(Hex.decode(hex)) |
| 11 | |
| 12 | // Copies bytes into the middle of a larger buffer, so implementations must |
| 13 | // respect the view's offset and length. |