()
| 1521 | * const decode = SchemaGetter.decodeHex<string>() |
| 1522 | * const result = await Effect.runPromise(decode.run(Option.some("010203"), {})) |
| 1523 | * Option.map(result, Array.from) // => Option.some([1, 2, 3]) |
| 1524 | * ``` |
| 1525 | * |
| 1526 | * @see {@link decodeHexString} to decode to `string` instead |
| 1527 | * @see {@link encodeHex} for the inverse operation |
| 1528 | * |
| 1529 | * @category decoding |
| 1530 | * @since 4.0.0 |
| 1531 | */ |
| 1532 | export function decodeHex<E extends string>(): Getter<Uint8Array, E> { |
| 1533 | return transformEffect((input, options) => |
| 1534 | Result.match(Encoding.decodeHex(input), { |
nothing calls this directly
no test coverage detected
searching dependent graphs…