Function
latin_1_encode
(args: EncodeArgs, vm: &VirtualMachine)
Source from the content-addressed store, hash-verified
| 216 | |
| 217 | #[pyfunction] |
| 218 | fn latin_1_encode(args: EncodeArgs, vm: &VirtualMachine) -> EncodeResult { |
| 219 | if args.s.isascii() { |
| 220 | return Ok((args.s.as_bytes().to_vec(), args.s.byte_len())); |
| 221 | } |
| 222 | do_codec!(latin_1::encode, args, vm) |
| 223 | } |
| 224 | |
| 225 | #[pyfunction] |
| 226 | fn latin_1_decode(args: DecodeArgsNoFinal, vm: &VirtualMachine) -> DecodeResult { |
Callers
nothing calls this directly
Tested by
no test coverage detected