MCPcopy Index your code
hub / github.com/0x676e67/wreq-python / into_bytes_ref

Method into_bytes_ref

src/buffer.rs:38–41  ·  view source on GitHub ↗

Consume self to build a bytes

(self, py: Python<'py>)

Source from the content-addressed store, hash-verified

36
37 /// Consume self to build a bytes
38 fn into_bytes_ref(self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>> {
39 let buffer = self.into_py_any(py)?;
40 unsafe { Bound::from_owned_ptr_or_err(py, ffi::PyBytes_FromObject(buffer.as_ptr())) }
41 }
42}
43
44macro_rules! impl_buffer {

Callers 8

getMethod · 0.80
__next__Method · 0.80
get_cookiesMethod · 0.80
peer_certificateMethod · 0.80
dataMethod · 0.80
binaryMethod · 0.80
pingMethod · 0.80
pongMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected