MCPcopy Index your code
hub / github.com/RustPython/RustPython / make_bytes

Method make_bytes

crates/vm/src/stdlib/marshal.rs:405–407  ·  view source on GitHub ↗
(&self, value: &[u8])

Source from the content-addressed store, hash-verified

403 self.0.ctx.new_str(value).into()
404 }
405 fn make_bytes(&self, value: &[u8]) -> Self::Value {
406 self.0.ctx.new_bytes(value.to_vec()).into()
407 }
408 fn make_int(&self, value: BigInt) -> Self::Value {
409 self.0.ctx.new_int(value).into()
410 }

Callers

nothing calls this directly

Calls 2

to_vecMethod · 0.80
new_bytesMethod · 0.45

Tested by

no test coverage detected