(vm: &VirtualMachine, arg: PyObjectRef, buf: &mut [u8])
| 672 | } |
| 673 | |
| 674 | fn pack_string(vm: &VirtualMachine, arg: PyObjectRef, buf: &mut [u8]) -> PyResult<()> { |
| 675 | let b = ArgBytesLike::try_from_object(vm, arg)?; |
| 676 | b.with_ref(|data| write_string(buf, data)); |
| 677 | Ok(()) |
| 678 | } |
| 679 | |
| 680 | fn pack_pascal(vm: &VirtualMachine, arg: PyObjectRef, buf: &mut [u8]) -> PyResult<()> { |
| 681 | if buf.is_empty() { |
no test coverage detected